diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-03-07 18:40:58 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-03-07 18:43:27 +0100 |
commit | 8ba955cef30921417dffba901a8af5a2662a1dec (patch) | |
tree | 5a9120a3171086af5a7a39706b78e0a9b4c3a22d /sound/pci/hda/hda_generic.h | |
parent | f811c3cf8fae63ecc8a937ba7376490e2565f8f1 (diff) | |
download | linux-stable-8ba955cef30921417dffba901a8af5a2662a1dec.tar.gz linux-stable-8ba955cef30921417dffba901a8af5a2662a1dec.tar.bz2 linux-stable-8ba955cef30921417dffba901a8af5a2662a1dec.zip |
ALSA: hda - Avoid automatic pin-ctl update for hp/mic when jack ctl exists
When the headphone mic jack enum control is created (via explicitly
specification by user), it doesn't make much sense to change the I/O
direction dynamically per capture source change, since the I/O
direction is rather controlled over the enum ctl.
This also reduces the implicit dependency between the capture source
and the hp mic jack enum ctls, which might confuse a program accessing
the whole control elements at once like alsactl.
In addition, this patch introduces update_hp_automute_hook() function
to call the proper hook function. It's just to remove the open codes
in multiple places in hda_generic.c.
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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_generic.h b/sound/pci/hda/hda_generic.h index 984bf301ebbb..094e6af7a107 100644 --- a/sound/pci/hda/hda_generic.h +++ b/sound/pci/hda/hda_generic.h @@ -221,6 +221,7 @@ struct hda_gen_spec { unsigned int dyn_adc_switch:1; /* switch ADCs (for ALC275) */ unsigned int indep_hp_enabled:1; /* independent HP enabled */ unsigned int have_aamix_ctl:1; + unsigned int hp_mic_jack_modes:1; /* loopback mixing mode */ bool aamix_mode; |