Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232910
b: refs/heads/master
c: 70f7db1
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Feb 2, 2011
1 parent c48fe43 commit bfa70ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: 6abb31908f3ed7d38e93d06b704c9342029ca9a0
refs/heads/master: 70f7db11c45a313b23922cacf248c613c3b2144c
8 changes: 7 additions & 1 deletion trunk/sound/pci/hda/patch_conexant.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,10 +407,16 @@ static int conexant_add_jack(struct hda_codec *codec,
struct conexant_spec *spec;
struct conexant_jack *jack;
const char *name;
int err;
int i, err;

spec = codec->spec;
snd_array_init(&spec->jacks, sizeof(*jack), 32);

jack = spec->jacks.list;
for (i = 0; i < spec->jacks.used; i++, jack++)
if (jack->nid == nid)
return 0 ; /* already present */

jack = snd_array_new(&spec->jacks);
name = (type == SND_JACK_HEADPHONE) ? "Headphone" : "Mic" ;

Expand Down

0 comments on commit bfa70ec

Please sign in to comment.