Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 216678
b: refs/heads/master
c: 18675e4
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Sep 8, 2010
1 parent b6f7f33 commit bc67b1a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 033688a5a80f9d56b2e7d56c4cb8188ae1448919
refs/heads/master: 18675e4283f575594d55ef1239c14ab5b4de53b6
35 changes: 35 additions & 0 deletions trunk/sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -12205,6 +12205,35 @@ static struct hda_verb alc262_toshiba_rx1_unsol_verbs[] = {
{}
};

/*
* Pin config fixes
*/
enum {
PINFIX_FSC_H270,
};

static const struct alc_fixup alc262_fixups[] = {
[PINFIX_FSC_H270] = {
.pins = (const struct alc_pincfg[]) {
{ 0x14, 0x99130110 }, /* speaker */
{ 0x15, 0x0221142f }, /* front HP */
{ 0x1b, 0x0121141f }, /* rear HP */
{ }
}
},
[PINFIX_PB_M5210] = {
.verbs = (const struct hda_verb[]) {
{ 0x19, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREF50 },
{}
}
},
};

static struct snd_pci_quirk alc262_fixup_tbl[] = {
SND_PCI_QUIRK(0x1734, 0x1147, "FSC Celsius H270", PINFIX_FSC_H270),
{}
};


#ifdef CONFIG_SND_HDA_POWER_SAVE
#define alc262_loopbacks alc880_loopbacks
Expand Down Expand Up @@ -12628,6 +12657,9 @@ static int patch_alc262(struct hda_codec *codec)
board_config = ALC262_AUTO;
}

if (board_config == ALC262_AUTO)
alc_pick_fixup(codec, alc262_fixup_tbl, alc262_fixups, 1);

if (board_config == ALC262_AUTO) {
/* automatic parse from the BIOS config */
err = alc262_parse_auto_config(codec);
Expand Down Expand Up @@ -12696,6 +12728,9 @@ static int patch_alc262(struct hda_codec *codec)
if (!spec->no_analog && has_cdefine_beep(codec))
set_beep_amp(spec, 0x0b, 0x05, HDA_INPUT);

if (board_config == ALC262_AUTO)
alc_pick_fixup(codec, alc262_fixup_tbl, alc262_fixups, 0);

spec->vmaster_nid = 0x0c;

codec->patch_ops = alc_patch_ops;
Expand Down

0 comments on commit bc67b1a

Please sign in to comment.