ALSA: hda - Add TLV_DB_SCALE_MUTE bit for relevant controls
authorTakashi Iwai <tiwai@suse.de>
Mon, 1 Sep 2014 08:07:04 +0000 (10:07 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 3 Sep 2014 14:39:29 +0000 (16:39 +0200)
commitd89c6c0c91af0344b52dd21ca48dd29821fee677
tree5d8a3b5c2e2c5aaf1c2c790386187b63c92c9825
parentaec856d0a8308cb34360c88a73b517c3a1fce170
ALSA: hda - Add TLV_DB_SCALE_MUTE bit for relevant controls

The DACs on Sigmatel/IDT codecs do mute at the lowest volume level,
and in the earlier drivers, we passed TLV_DB_SCALE_MUTE bit for each
volume control element like Speaker and Headphone as well as Master.
Along with the translation to the generic parser, however, the TLV bit
was lost for the slave controls (e.g. Speaker) but set only to
Master.  In theory this should have sufficed, but apps, particularly
PA, do care the slave volume bits, so we seem to see a regression in
the volume controls.

This patch adds a flag to hda_gen_spec to specify the DAC mute
feature, and adds the TLV bit properly for all relevant volume
controls.  Also, the TLV bit for vmaster is set in hda_generic.c, so
that we can get rid of all tricks from the codec driver side.

As the similar hack is applied to Conexant 5051 stuff, we can get rid
of it as well.

BugLink: https://bugs.launchpad.net/bugs/1357928
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_generic.c
sound/pci/hda/hda_generic.h
sound/pci/hda/patch_conexant.c
sound/pci/hda/patch_sigmatel.c