Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157839
b: refs/heads/master
c: da2a2aa
h: refs/heads/master
i:
  157837: b445ed6
  157835: 12d38a6
  157831: 823386d
  157823: 5205898
v: v3
  • Loading branch information
Takashi Iwai committed Aug 10, 2009
1 parent fb11cd4 commit 9db1426
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 1972d02504b142a6f1442bd987a8831146031d3d
refs/heads/master: da2a2aaa8e3dddb41678af7e5295d9e3e6c030a4
5 changes: 3 additions & 2 deletions trunk/sound/pci/hda/patch_sigmatel.c
Original file line number Diff line number Diff line change
Expand Up @@ -3671,7 +3671,7 @@ static int set_mic_route(struct hda_codec *codec,
if (i < 0)
return -1;
mic->mux_idx = i;
} else {
} else if (spec->dmux_nids) {
/* digital pin */
mic->mux_idx = 0;
i = get_connection_index(codec, spec->dmux_nids[0], pin);
Expand Down Expand Up @@ -4373,7 +4373,8 @@ static int stac92xx_init(struct hda_codec *codec)
}
if (spec->auto_mic) {
/* initialize connection to analog input */
snd_hda_codec_write_cache(codec, spec->dmux_nids[0], 0,
if (spec->dmux_nids)
snd_hda_codec_write_cache(codec, spec->dmux_nids[0], 0,
AC_VERB_SET_CONNECT_SEL, 0);
if (enable_pin_detect(codec, spec->ext_mic.pin, STAC_MIC_EVENT))
stac_issue_unsol_event(codec, spec->ext_mic.pin);
Expand Down

0 comments on commit 9db1426

Please sign in to comment.