diff options
author | Libin Yang <libin.yang@intel.com> | 2005-11-23 09:48:36 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:29:41 -0500 |
commit | 5014f193166d14e47525a34d65a1c7d77b0f6f38 (patch) | |
tree | 0350c8c4089aa66947cdd0aabece2d7b40e6e4a5 | |
parent | 18612048b3e951f7e0ae9be65efe9e8cfde868a6 (diff) |
[ALSA] hda-codec - Fix auto-probe of ALC880
Modules: HDA Codec driver
This patch is to fix the problem of calculating the nid incorrectly
when auto-probe for ALC880. The problem to be fixed often behaves
with such words when using dmesg, 'num_steps = 0 for NID=0x8' when
auto-probe for ALC880.
The patch contains:
- alsa-kernel/pci/hda/patch_realtek.c: replace 'alc880_dac_to_idx'
with 'alc880_idx_to_dac' in function 'alc880_auto_fill_dac_nids()'
Signed-off-by: Libin Yang <libin.yang@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 77c5f95ea55b..c5fb141f6222 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -1760,7 +1760,7 @@ static int alc880_auto_fill_dac_nids(struct alc_spec *spec, const struct auto_pi | |||
1760 | nid = cfg->line_out_pins[i]; | 1760 | nid = cfg->line_out_pins[i]; |
1761 | if (alc880_is_fixed_pin(nid)) { | 1761 | if (alc880_is_fixed_pin(nid)) { |
1762 | int idx = alc880_fixed_pin_idx(nid); | 1762 | int idx = alc880_fixed_pin_idx(nid); |
1763 | spec->multiout.dac_nids[i] = alc880_dac_to_idx(idx); | 1763 | spec->multiout.dac_nids[i] = alc880_idx_to_dac(idx); |
1764 | assigned[idx] = 1; | 1764 | assigned[idx] = 1; |
1765 | } | 1765 | } |
1766 | } | 1766 | } |