Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270337
b: refs/heads/master
c: 1ebec5f
h: refs/heads/master
i:
  270335: 472def9
v: v3
  • Loading branch information
Takashi Iwai committed Aug 15, 2011
1 parent e526183 commit 8b4bd11
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 267 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: d8897da379f96c562b17af65496b37c5ac18dcdb
refs/heads/master: 1ebec5f2a220c5b372fad645055b01ac54e7b888
222 changes: 0 additions & 222 deletions trunk/sound/pci/hda/alc680_quirks.c

This file was deleted.

50 changes: 6 additions & 44 deletions trunk/sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -5314,14 +5314,9 @@ static int alc680_parse_auto_config(struct hda_codec *codec)

/*
*/
#ifdef CONFIG_SND_HDA_ENABLE_REALTEK_QUIRKS
#include "alc680_quirks.c"
#endif

static int patch_alc680(struct hda_codec *codec)
{
struct alc_spec *spec;
int board_config;
int err;

spec = kzalloc(sizeof(*spec), GFP_KERNEL);
Expand All @@ -5332,43 +5327,11 @@ static int patch_alc680(struct hda_codec *codec)

/* ALC680 has no aa-loopback mixer */

board_config = alc_board_config(codec, ALC680_MODEL_LAST,
alc680_models, alc680_cfg_tbl);

if (board_config < 0) {
printk(KERN_INFO "hda_codec: %s: BIOS auto-probing.\n",
codec->chip_name);
board_config = ALC_MODEL_AUTO;
}

if (board_config == ALC_MODEL_AUTO) {
/* automatic parse from the BIOS config */
err = alc680_parse_auto_config(codec);
if (err < 0) {
alc_free(codec);
return err;
}
#ifdef CONFIG_SND_HDA_ENABLE_REALTEK_QUIRKS
else if (!err) {
printk(KERN_INFO
"hda_codec: Cannot set up configuration "
"from BIOS. Using base mode...\n");
board_config = ALC680_BASE;
}
#endif
}

if (board_config != ALC_MODEL_AUTO) {
setup_preset(codec, &alc680_presets[board_config]);
#ifdef CONFIG_SND_HDA_ENABLE_REALTEK_QUIRKS
spec->stream_analog_capture = &alc680_pcm_analog_auto_capture;
#endif
}

if (!spec->no_analog && !spec->adc_nids) {
alc_auto_fill_adc_caps(codec);
alc_rebuild_imux_for_auto_mic(codec);
alc_remove_invalid_adc_nids(codec);
/* automatic parse from the BIOS config */
err = alc680_parse_auto_config(codec);
if (err < 0) {
alc_free(codec);
return err;
}

if (!spec->no_analog && !spec->cap_mixer)
Expand All @@ -5377,8 +5340,7 @@ static int patch_alc680(struct hda_codec *codec)
spec->vmaster_nid = 0x02;

codec->patch_ops = alc_patch_ops;
if (board_config == ALC_MODEL_AUTO)
spec->init_hook = alc_auto_init_std;
spec->init_hook = alc_auto_init_std;

return 0;
}
Expand Down

0 comments on commit 8b4bd11

Please sign in to comment.