diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-11-04 16:32:01 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-11-05 07:49:41 +0100 |
commit | a1114a8c681b0724d6ad905f53ff06aa756f5fb8 (patch) | |
tree | b482474baaaef3492e48a0acca2e99366974f4ed /sound/pci/hda/hda_generic.h | |
parent | ALSA: hda - Add sanity check of vmaster slave dB steps (diff) | |
download | linux-a1114a8c681b0724d6ad905f53ff06aa756f5fb8.tar.xz linux-a1114a8c681b0724d6ad905f53ff06aa756f5fb8.zip |
ALSA: hda - Introduce the bitmask for excluding output volume
Add a bitmask to hda_gen_spec indicating NIDs to exclude from the
possible volume controls. That is, when the bit is set, the NID
corresponding to the bit won't be picked as an output volume control
any longer.
Basically this is just a band-aid for working around the issue found
with CS4208 codec, where only the headphone pin has a volume AMP with
different dB steps.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=60811
Cc: <stable@vger.kernel.org> [v3.12+]
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_generic.h')
-rw-r--r-- | sound/pci/hda/hda_generic.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_generic.h b/sound/pci/hda/hda_generic.h index 48d44026705b..7e45cb44d151 100644 --- a/sound/pci/hda/hda_generic.h +++ b/sound/pci/hda/hda_generic.h @@ -242,6 +242,9 @@ struct hda_gen_spec { /* additional mute flags (only effective with auto_mute_via_amp=1) */ u64 mute_bits; + /* bitmask for skipping volume controls */ + u64 out_vol_mask; + /* badness tables for output path evaluations */ const struct badness_table *main_out_badness; const struct badness_table *extra_out_badness; |