Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 335511
b: refs/heads/master
c: ef4da45
h: refs/heads/master
i:
  335509: 286943f
  335507: 4f40476
  335503: 4ced19d
v: v3
  • Loading branch information
Takashi Iwai committed Nov 7, 2012
1 parent 393955b commit c9a78e7
Show file tree
Hide file tree
Showing 2 changed files with 15 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: 5b3761954dac2d1393beef8210eb8cee81d16b8d
refs/heads/master: ef4da45828603df57e5e21b8aa21a66ce309f79b
14 changes: 14 additions & 0 deletions trunk/sound/pci/hda/patch_via.c
Original file line number Diff line number Diff line change
Expand Up @@ -3646,6 +3646,18 @@ static const struct snd_pci_quirk vt2002p_fixups[] = {
{}
};

/* NIDs 0x24 and 0x33 on VT1802 have connections to non-existing NID 0x3e
* Replace this with mixer NID 0x1c
*/
static void fix_vt1802_connections(struct hda_codec *codec)
{
static hda_nid_t conn_24[] = { 0x14, 0x1c };
static hda_nid_t conn_33[] = { 0x1c };

snd_hda_override_conn_list(codec, 0x24, ARRAY_SIZE(conn_24), conn_24);
snd_hda_override_conn_list(codec, 0x33, ARRAY_SIZE(conn_33), conn_33);
}

/* patch for vt2002P */
static int patch_vt2002P(struct hda_codec *codec)
{
Expand All @@ -3660,6 +3672,8 @@ static int patch_vt2002P(struct hda_codec *codec)
spec->aa_mix_nid = 0x21;
override_mic_boost(codec, 0x2b, 0, 3, 40);
override_mic_boost(codec, 0x29, 0, 3, 40);
if (spec->codec_type == VT1802)
fix_vt1802_connections(codec);
add_secret_dac_path(codec);

snd_hda_pick_fixup(codec, NULL, vt2002p_fixups, via_fixups);
Expand Down

0 comments on commit c9a78e7

Please sign in to comment.