Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: samsung: midas_wm1811: Fix 'Headphone Switch' control creation

'Headphone Switch' control is already registered from
sound/soc/codecs/wm_hubs.c:479, so duplicating it in midas_wm1811
causes following probe failure:

midas-audio sound: control 2:0:0:Headphone Switch:0 is already present
midas-audio sound: ASoC: Failed to add Headphone Switch: -16
midas-audio sound: Failed to register card: -16
midas-audio: probe of sound failed with error -16

Fix this by dropping duplicated control.

Fixes: d27224a45e54 ("ASoC: samsung: midas_wm1811: Map missing jack kcontrols")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20230809100446.2105825-1-m.szyprowski@samsung.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Marek Szyprowski and committed by
Mark Brown
48c6253f 1a5ca2aa

-1
-1
sound/soc/samsung/midas_wm1811.c
··· 257 257 SOC_DAPM_PIN_SWITCH("Main Mic"), 258 258 SOC_DAPM_PIN_SWITCH("Sub Mic"), 259 259 SOC_DAPM_PIN_SWITCH("Headset Mic"), 260 - SOC_DAPM_PIN_SWITCH("Headphone"), 261 260 262 261 SOC_DAPM_PIN_SWITCH("FM In"), 263 262 };