Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288391
b: refs/heads/master
c: 526af6e
h: refs/heads/master
i:
  288389: e08861c
  288387: b916223
  288383: 40eebdc
v: v3
  • Loading branch information
Kailang Yang authored and Takashi Iwai committed Mar 7, 2012
1 parent b830840 commit f96cf8d
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 8f2392142346f2754c8292a94cc62a157ed1e093
refs/heads/master: 526af6eb4dc71302f59806e2ccac7793963a7fe0
8 changes: 8 additions & 0 deletions trunk/sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -2068,12 +2068,16 @@ static int alc_build_controls(struct hda_codec *codec)
*/

static void alc_init_special_input_src(struct hda_codec *codec);
static int alc269_fill_coef(struct hda_codec *codec);

static int alc_init(struct hda_codec *codec)
{
struct alc_spec *spec = codec->spec;
unsigned int i;

if (codec->vendor_id == 0x10ec0269)
alc269_fill_coef(codec);

alc_fix_pll(codec);
alc_auto_init_amp(codec, spec->init_amp);

Expand Down Expand Up @@ -5476,8 +5480,12 @@ static const struct alc_model_fixup alc269_fixup_models[] = {

static int alc269_fill_coef(struct hda_codec *codec)
{
struct alc_spec *spec = codec->spec;
int val;

if (spec->codec_variant != ALC269_TYPE_ALC269VB)
return 0;

if ((alc_get_coef0(codec) & 0x00ff) < 0x015) {
alc_write_coef_idx(codec, 0xf, 0x960b);
alc_write_coef_idx(codec, 0xe, 0x8817);
Expand Down

0 comments on commit f96cf8d

Please sign in to comment.