Message ID | 20190521103619.4707-3-oleksandr.suvorov@toradex.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | VAG power control improvement for sgtl5000 codec | expand |
On Tue, 2019-05-21 at 13:36 +0300, Oleksandr Suvorov wrote: > This control mute/unmute the ADC input of SGTL5000 > using its CHIP_ANA_CTRL register. > > Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> Reviewed-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> > --- > > sound/soc/codecs/sgtl5000.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git sound/soc/codecs/sgtl5000.c sound/soc/codecs/sgtl5000.c > index 5e49523ee0b6..bb58c997c691 100644 > --- sound/soc/codecs/sgtl5000.c > +++ sound/soc/codecs/sgtl5000.c > @@ -556,6 +556,7 @@ static const struct snd_kcontrol_new > sgtl5000_snd_controls[] = { > SGTL5000_CHIP_ANA_ADC_CTRL, > 8, 1, 0, capture_6db_attenuate), > SOC_SINGLE("Capture ZC Switch", SGTL5000_CHIP_ANA_CTRL, 1, 1, > 0), > + SOC_SINGLE("Capture Switch", SGTL5000_CHIP_ANA_CTRL, 0, 1, 1), > > SOC_DOUBLE_TLV("Headphone Playback Volume", > SGTL5000_CHIP_ANA_HP_CTRL, > -- > 2.20.1
diff --git sound/soc/codecs/sgtl5000.c sound/soc/codecs/sgtl5000.c index 5e49523ee0b6..bb58c997c691 100644 --- sound/soc/codecs/sgtl5000.c +++ sound/soc/codecs/sgtl5000.c @@ -556,6 +556,7 @@ static const struct snd_kcontrol_new sgtl5000_snd_controls[] = { SGTL5000_CHIP_ANA_ADC_CTRL, 8, 1, 0, capture_6db_attenuate), SOC_SINGLE("Capture ZC Switch", SGTL5000_CHIP_ANA_CTRL, 1, 1, 0), + SOC_SINGLE("Capture Switch", SGTL5000_CHIP_ANA_CTRL, 0, 1, 1), SOC_DOUBLE_TLV("Headphone Playback Volume", SGTL5000_CHIP_ANA_HP_CTRL,
This control mute/unmute the ADC input of SGTL5000 using its CHIP_ANA_CTRL register. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> --- sound/soc/codecs/sgtl5000.c | 1 + 1 file changed, 1 insertion(+)