Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56114
b: refs/heads/master
c: d5ad630
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed May 11, 2007
1 parent 5ea5611 commit 641a940
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 6d7b1d7d09e00034325b09a3a7ac7b0ea5e29506
refs/heads/master: d5ad630b6dd00ea41e0c58b45c0912f72757b5cd
6 changes: 4 additions & 2 deletions trunk/sound/pci/hda/hda_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,9 @@ static const struct hda_codec_preset *find_codec_preset(struct hda_codec *codec)
{
const struct hda_codec_preset **tbl, *preset;

if (codec->bus->modelname && !strcmp(codec->bus->modelname, "generic"))
return NULL; /* use the generic parser */

for (tbl = hda_preset_tables; *tbl; tbl++) {
for (preset = *tbl; preset->id; preset++) {
u32 mask = preset->mask;
Expand Down Expand Up @@ -573,8 +576,7 @@ int snd_hda_codec_new(struct hda_bus *bus, unsigned int codec_addr,
0);
}

if (strcmp(codec->bus->modelname, "generic"))
codec->preset = find_codec_preset(codec);
codec->preset = find_codec_preset(codec);
if (! *bus->card->mixername)
snd_hda_get_codec_name(codec, bus->card->mixername,
sizeof(bus->card->mixername));
Expand Down

0 comments on commit 641a940

Please sign in to comment.