ASoC: rt5670: Remove 'HP Playback Switch' control
authorHans de Goede <hdegoede@redhat.com>
Mon, 15 Feb 2021 14:21:16 +0000 (15:21 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 24 Feb 2021 13:24:21 +0000 (13:24 +0000)
commit8022f09883e827855d86173756caa07b891100f0
tree6be8817ef0c0b5a17bf2d6afdd893388c589858f
parent30be2641848b2450f0f1b62e3a8aea42e14db640
ASoC: rt5670: Remove 'HP Playback Switch' control

The RT5670_L_MUTE_SFT and RT5670_R_MUTE_SFT bits (bits 15 and 7) of the
RT5670_HP_VOL register are set / unset by the headphones deplop code
run by rt5670_hp_event() on SND_SOC_DAPM_POST_PMU / SND_SOC_DAPM_PRE_PMD.

So we should not also export a control to userspace which toggles these
same bits.

This should not cause any issues for userspace. AFAICT the rt567x codecs
are only used on x86/ACPI devices and the UCM profiles used there do not
use the "HP Playback Switch" control.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20210215142118.308516-3-hdegoede@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5670.c