Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34935
b: refs/heads/master
c: bd25b7c
h: refs/heads/master
i:
  34933: 248dbff
  34931: 5d8b0cd
  34927: 483fa4c
v: v3
  • Loading branch information
Ville Syrjala authored and Jaroslav Kysela committed Sep 23, 2006
1 parent 02f39cc commit a6bad02
Show file tree
Hide file tree
Showing 2 changed files with 13 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: 93ed150375187ae7917ed1e3b9b830b9d4065bad
refs/heads/master: bd25b7cae1e763b292f359170e16bccd01c7ee5c
12 changes: 12 additions & 0 deletions trunk/sound/pci/ac97/ac97_patch.c
Original file line number Diff line number Diff line change
Expand Up @@ -1395,13 +1395,25 @@ static void ad1888_resume(struct snd_ac97 *ac97)

#endif

static const struct snd_ac97_res_table ad1819_restbl[] = {
{ AC97_PHONE, 0x9f1f },
{ AC97_MIC, 0x9f1f },
{ AC97_LINE, 0x9f1f },
{ AC97_CD, 0x9f1f },
{ AC97_VIDEO, 0x9f1f },
{ AC97_AUX, 0x9f1f },
{ AC97_PCM, 0x9f1f },
{ } /* terminator */
};

int patch_ad1819(struct snd_ac97 * ac97)
{
unsigned short scfg;

// patch for Analog Devices
scfg = snd_ac97_read(ac97, AC97_AD_SERIAL_CFG);
snd_ac97_write_cache(ac97, AC97_AD_SERIAL_CFG, scfg | 0x7000); /* select all codecs */
ac97->res_table = ad1819_restbl;
return 0;
}

Expand Down

0 comments on commit a6bad02

Please sign in to comment.