Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270388
b: refs/heads/master
c: 6c5c04e
h: refs/heads/master
v: v3
  • Loading branch information
Charles Chin authored and Takashi Iwai committed Oct 13, 2011
1 parent 9228cd9 commit 935092b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d5cf9911988287e819ce98ccd9f61ca82fbc90c6
refs/heads/master: 6c5c04e509b7000617b09d4301f0b9b6d171d1e6
18 changes: 0 additions & 18 deletions trunk/sound/pci/hda/patch_sigmatel.c
Original file line number Diff line number Diff line change
Expand Up @@ -5589,9 +5589,7 @@ static void stac92hd8x_fill_auto_spec(struct hda_codec *codec)
static int patch_stac92hd83xxx(struct hda_codec *codec)
{
struct sigmatel_spec *spec;
hda_nid_t conn[STAC92HD83_DAC_COUNT + 1];
int err;
int num_dacs;

spec = kzalloc(sizeof(*spec), GFP_KERNEL);
if (spec == NULL)
Expand Down Expand Up @@ -5693,22 +5691,6 @@ static int patch_stac92hd83xxx(struct hda_codec *codec)
return err;
}

/* docking output support */
num_dacs = snd_hda_get_connections(codec, 0xF,
conn, STAC92HD83_DAC_COUNT + 1) - 1;
/* skip non-DAC connections */
while (num_dacs >= 0 &&
(get_wcaps_type(get_wcaps(codec, conn[num_dacs]))
!= AC_WID_AUD_OUT))
num_dacs--;
/* set port E and F to select the last DAC */
if (num_dacs >= 0) {
snd_hda_codec_write_cache(codec, 0xE, 0,
AC_VERB_SET_CONNECT_SEL, num_dacs);
snd_hda_codec_write_cache(codec, 0xF, 0,
AC_VERB_SET_CONNECT_SEL, num_dacs);
}

codec->proc_widget_hook = stac92hd_proc_hook;

return 0;
Expand Down

0 comments on commit 935092b

Please sign in to comment.