Skip to content

Commit

Permalink
ALSA: hda - Connect to primary DAC if no individual DAC is available
Browse files Browse the repository at this point in the history
In stac92xx_auto_fill_dac_nids[], connect to the primary DAC if no
individual DAC is available for each pin.  This ensures that the pin
works somehow at least.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Mar 6, 2009
1 parent 668b965 commit ee58a7c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sound/pci/hda/patch_sigmatel.c
Original file line number Diff line number Diff line change
Expand Up @@ -2871,6 +2871,16 @@ static hda_nid_t get_unassigned_dac(struct hda_codec *codec, hda_nid_t nid)
return conn[j];
}
}
/* if all DACs are already assigned, connect to the primary DAC */
if (conn_len > 1) {
for (j = 0; j < conn_len; j++) {
if (conn[j] == spec->multiout.dac_nids[0]) {
snd_hda_codec_write_cache(codec, nid, 0,
AC_VERB_SET_CONNECT_SEL, j);
break;
}
}
}
return 0;
}

Expand Down

0 comments on commit ee58a7c

Please sign in to comment.