]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: SDCA: Limit values user can write to Selected Mode
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Wed, 4 Feb 2026 12:59:43 +0000 (12:59 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 4 Feb 2026 14:10:51 +0000 (14:10 +0000)
commit812ff1baa764080ba37bb0729e0c23c0e869b542
tree794a59609f3ce62978d5085afd140641eea8b466
parent02d851b46b366b69dfe0842ab45313d8a4d6c960
ASoC: SDCA: Limit values user can write to Selected Mode

Prevent the user from both updating the Selected Mode control
whilst the jack is not present, and from writing values that don't
correspond to a valid jack type (Unknown, in progress, etc.).

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20260204125944.1134011-7-ckeepax@opensource.cirrus.com
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sdca/sdca_asoc.c
sound/soc/sdca/sdca_jack.c