diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-08-16 09:15:40 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-08-16 09:15:40 -0400 |
commit | 6ebb80530b0ed6b2e93f2e6497890b4437807055 (patch) | |
tree | 5960a9e0524944cfb1d800d9b69ad89a33b96f79 /sound/pci/hda/patch_realtek.c | |
parent | 24519911673eb5ef3eafcee5d247a52f36347f79 (diff) |
ALSA: hda - Remove ALC268 model quirks
Get rid of the rest of ALC268 model quirks. They are all confirmed to
work with the auto-parser, too.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 44 |
1 files changed, 6 insertions, 38 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index e2fbe3664ab4..58717ab324fa 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -4232,14 +4232,9 @@ static int alc268_parse_auto_config(struct hda_codec *codec) | |||
4232 | 4232 | ||
4233 | /* | 4233 | /* |
4234 | */ | 4234 | */ |
4235 | #ifdef CONFIG_SND_HDA_ENABLE_REALTEK_QUIRKS | ||
4236 | #include "alc268_quirks.c" | ||
4237 | #endif | ||
4238 | |||
4239 | static int patch_alc268(struct hda_codec *codec) | 4235 | static int patch_alc268(struct hda_codec *codec) |
4240 | { | 4236 | { |
4241 | struct alc_spec *spec; | 4237 | struct alc_spec *spec; |
4242 | int board_config; | ||
4243 | int i, has_beep, err; | 4238 | int i, has_beep, err; |
4244 | 4239 | ||
4245 | spec = kzalloc(sizeof(*spec), GFP_KERNEL); | 4240 | spec = kzalloc(sizeof(*spec), GFP_KERNEL); |
@@ -4250,39 +4245,13 @@ static int patch_alc268(struct hda_codec *codec) | |||
4250 | 4245 | ||
4251 | /* ALC268 has no aa-loopback mixer */ | 4246 | /* ALC268 has no aa-loopback mixer */ |
4252 | 4247 | ||
4253 | board_config = alc_board_config(codec, ALC268_MODEL_LAST, | 4248 | /* automatic parse from the BIOS config */ |
4254 | alc268_models, alc268_cfg_tbl); | 4249 | err = alc268_parse_auto_config(codec); |
4255 | 4250 | if (err < 0) { | |
4256 | if (board_config < 0) | 4251 | alc_free(codec); |
4257 | board_config = alc_board_codec_sid_config(codec, | 4252 | return err; |
4258 | ALC268_MODEL_LAST, alc268_models, NULL); | ||
4259 | |||
4260 | if (board_config < 0) { | ||
4261 | printk(KERN_INFO "hda_codec: %s: BIOS auto-probing.\n", | ||
4262 | codec->chip_name); | ||
4263 | board_config = ALC_MODEL_AUTO; | ||
4264 | } | ||
4265 | |||
4266 | if (board_config == ALC_MODEL_AUTO) { | ||
4267 | /* automatic parse from the BIOS config */ | ||
4268 | err = alc268_parse_auto_config(codec); | ||
4269 | if (err < 0) { | ||
4270 | alc_free(codec); | ||
4271 | return err; | ||
4272 | } | ||
4273 | #ifdef CONFIG_SND_HDA_ENABLE_REALTEK_QUIRKS | ||
4274 | else if (!err) { | ||
4275 | printk(KERN_INFO | ||
4276 | "hda_codec: Cannot set up configuration " | ||
4277 | "from BIOS. Using base mode...\n"); | ||
4278 | board_config = ALC268_3ST; | ||
4279 | } | ||
4280 | #endif | ||
4281 | } | 4253 | } |
4282 | 4254 | ||
4283 | if (board_config != ALC_MODEL_AUTO) | ||
4284 | setup_preset(codec, &alc268_presets[board_config]); | ||
4285 | |||
4286 | has_beep = 0; | 4255 | has_beep = 0; |
4287 | for (i = 0; i < spec->num_mixers; i++) { | 4256 | for (i = 0; i < spec->num_mixers; i++) { |
4288 | if (spec->mixers[i] == alc268_beep_mixer) { | 4257 | if (spec->mixers[i] == alc268_beep_mixer) { |
@@ -4318,8 +4287,7 @@ static int patch_alc268(struct hda_codec *codec) | |||
4318 | spec->vmaster_nid = 0x02; | 4287 | spec->vmaster_nid = 0x02; |
4319 | 4288 | ||
4320 | codec->patch_ops = alc_patch_ops; | 4289 | codec->patch_ops = alc_patch_ops; |
4321 | if (board_config == ALC_MODEL_AUTO) | 4290 | spec->init_hook = alc_auto_init_std; |
4322 | spec->init_hook = alc_auto_init_std; | ||
4323 | spec->shutup = alc_eapd_shutup; | 4291 | spec->shutup = alc_eapd_shutup; |
4324 | 4292 | ||
4325 | alc_init_jacks(codec); | 4293 | alc_init_jacks(codec); |