diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-11-21 10:33:22 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:29:27 -0500 |
commit | 54d174031576a2855c49611d83d4946bde81b504 (patch) | |
tree | 6bdcefaccb78bddfa1a3ea7b429e1178b479999d /sound/pci/hda/patch_realtek.c | |
parent | 1b98ea4791892399d8c23c93e117567eeff38887 (diff) |
[ALSA] hda-codec - Fix connection list parsing
Modules: HDA Codec driver,HDA generic driver
- Fix connection list parsing (with ranged flag).
- Increase the max number of connections
- Introduce widget capabilities cache
- Power up/down widgets at init, suspend and resume
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 62e6993056e..77c5f95ea55 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -2091,8 +2091,7 @@ static int patch_alc880(struct hda_codec *codec) | |||
2091 | 2091 | ||
2092 | if (! spec->adc_nids && spec->input_mux) { | 2092 | if (! spec->adc_nids && spec->input_mux) { |
2093 | /* check whether NID 0x07 is valid */ | 2093 | /* check whether NID 0x07 is valid */ |
2094 | unsigned int wcap = snd_hda_param_read(codec, alc880_adc_nids[0], | 2094 | unsigned int wcap = get_wcaps(codec, alc880_adc_nids[0]); |
2095 | AC_PAR_AUDIO_WIDGET_CAP); | ||
2096 | wcap = (wcap & AC_WCAP_TYPE) >> AC_WCAP_TYPE_SHIFT; /* get type */ | 2095 | wcap = (wcap & AC_WCAP_TYPE) >> AC_WCAP_TYPE_SHIFT; /* get type */ |
2097 | if (wcap != AC_WID_AUD_IN) { | 2096 | if (wcap != AC_WID_AUD_IN) { |
2098 | spec->adc_nids = alc880_adc_nids_alt; | 2097 | spec->adc_nids = alc880_adc_nids_alt; |