diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-12-25 08:17:48 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-12-25 08:17:48 -0500 |
commit | 15e7f8b92aed71819411025279cd3df37f8c636b (patch) | |
tree | 6bc90fd9fcdd4e58321e3f881b2fbcb108a6a654 /sound/pci/hda/hda_codec.c | |
parent | 21949f00a022e090a7e8bc9a01dfca88273c6146 (diff) | |
parent | ef18beded8ddbaafdf4914bab209f77e60ae3a18 (diff) |
Merge branch 'fix/hda' into topic/hda
Diffstat (limited to 'sound/pci/hda/hda_codec.c')
-rw-r--r-- | sound/pci/hda/hda_codec.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index 29c90d748c91..b3554df740ff 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c | |||
@@ -1088,11 +1088,6 @@ int snd_hda_codec_configure(struct hda_codec *codec) | |||
1088 | if (err < 0) | 1088 | if (err < 0) |
1089 | return err; | 1089 | return err; |
1090 | } | 1090 | } |
1091 | /* audio codec should override the mixer name */ | ||
1092 | if (codec->afg || !*codec->bus->card->mixername) | ||
1093 | snprintf(codec->bus->card->mixername, | ||
1094 | sizeof(codec->bus->card->mixername), | ||
1095 | "%s %s", codec->vendor_name, codec->chip_name); | ||
1096 | 1091 | ||
1097 | if (is_generic_config(codec)) { | 1092 | if (is_generic_config(codec)) { |
1098 | err = snd_hda_parse_generic_codec(codec); | 1093 | err = snd_hda_parse_generic_codec(codec); |
@@ -1111,6 +1106,11 @@ int snd_hda_codec_configure(struct hda_codec *codec) | |||
1111 | patched: | 1106 | patched: |
1112 | if (!err && codec->patch_ops.unsol_event) | 1107 | if (!err && codec->patch_ops.unsol_event) |
1113 | err = init_unsol_queue(codec->bus); | 1108 | err = init_unsol_queue(codec->bus); |
1109 | /* audio codec should override the mixer name */ | ||
1110 | if (!err && (codec->afg || !*codec->bus->card->mixername)) | ||
1111 | snprintf(codec->bus->card->mixername, | ||
1112 | sizeof(codec->bus->card->mixername), | ||
1113 | "%s %s", codec->vendor_name, codec->chip_name); | ||
1114 | return err; | 1114 | return err; |
1115 | } | 1115 | } |
1116 | EXPORT_SYMBOL_HDA(snd_hda_codec_configure); | 1116 | EXPORT_SYMBOL_HDA(snd_hda_codec_configure); |