]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: Intel: catpt: Simplify procedure of applying user settings
authorCezary Rojewski <cezary.rojewski@intel.com>
Mon, 9 Mar 2026 09:16:03 +0000 (10:16 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 11 Mar 2026 13:34:11 +0000 (13:34 +0000)
commit2464febd81e4c98f78466462da938ed2f8c37e17
tree5a1fc49a6c23d9776fb52929e0c79a545a772ed5
parentd16b942aa7fa6135a44d156246d98e50b5a0aad3
ASoC: Intel: catpt: Simplify procedure of applying user settings

Existing catpt_dai_apply_usettings() applies all the individual control
settings but why-what is covered behind if-statements. Refactor the
operation into:

catpt_apply_controls()
|__ catpt_apply_volume()
|__ catpt_apply_mute()

to make it easy to understand why and what is going on. The update also
enlists snd_ctl_find_id_mixer() for the query purpose, removing code
duplication.

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