]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: catpt: Optimize applying user settings
authorCezary Rojewski <cezary.rojewski@intel.com>
Mon, 16 Nov 2020 13:33:30 +0000 (14:33 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 16 Nov 2020 20:03:29 +0000 (20:03 +0000)
commit9e54a8e0967c7126658a12f64c8a8a8f1e0dd335
tree4712269fed7dc9e1d976186fbddcff21857b9bed
parentee4af7cbd27728cfc7a341a6e32e75fe0f50cdde
ASoC: Intel: catpt: Optimize applying user settings

Initial user settings such as volume control need to be applied only
once after stream is allocated. As prepare() operation can be invoked
multiple times during the stream's lifetime, relocate
catpt_dai_apply_usettings() and call it directly within
catpt_dai_hw_params() rather than on every catpt_dai_prepare().

catpt_dai_apply_usettings() remains unchanged.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20201116133332.8530-4-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/catpt/pcm.c