Merge branch 'fix/hda' into topic/hda

This commit is contained in:
Takashi Iwai
2010-03-25 15:06:58 +01:00
3 changed files with 31 additions and 9 deletions

View File

@@ -2601,8 +2601,6 @@ static int alc_build_controls(struct hda_codec *codec)
return err;
}
alc_free_kctls(codec); /* no longer needed */
/* assign Capture Source enums to NID */
kctl = snd_hda_find_mixer_ctl(codec, "Capture Source");
if (!kctl)
@@ -2671,6 +2669,9 @@ static int alc_build_controls(struct hda_codec *codec)
}
}
}
alc_free_kctls(codec); /* no longer needed */
return 0;
}
@@ -10122,8 +10123,11 @@ static void alc882_auto_set_output_and_unmute(struct hda_codec *codec,
alc_set_pin_output(codec, nid, pin_type);
if (spec->multiout.dac_nids[dac_idx] == 0x25)
idx = 4;
else
else {
if (spec->multiout.num_dacs >= dac_idx)
return;
idx = spec->multiout.dac_nids[dac_idx] - 2;
}
snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_CONNECT_SEL, idx);
}