From: Libin Yang Date: Wed, 23 Nov 2005 14:48:36 +0000 (+0100) Subject: [ALSA] hda-codec - Fix auto-probe of ALC880 X-Git-Tag: v2.6.16-rc1~169^2~16^2~28^2~65 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5014f193166d14e47525a34d65a1c7d77b0f6f38;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git [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 Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 77c5f95..c5fb141 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 nid = cfg->line_out_pins[i]; if (alc880_is_fixed_pin(nid)) { int idx = alc880_fixed_pin_idx(nid); - spec->multiout.dac_nids[i] = alc880_dac_to_idx(idx); + spec->multiout.dac_nids[i] = alc880_idx_to_dac(idx); assigned[idx] = 1; } }