diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-03 14:10:18 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-03 14:10:18 -0400 |
commit | ff826b2b5b269ad440afa686ede879ccabfda387 (patch) | |
tree | 3ae51a53c7605a477eefbcb7ca72fe0929458e3b /sound/pci | |
parent | 3492ee727439efcd050985c314a85646b7a2bda2 (diff) | |
parent | 8663ff75cdca0a66f808e124c5592735793926af (diff) |
Merge tag 'sound-3.5' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
Pull sound fixes from Takashi Iwai:
"Just a few driver-specific fixes for ASoC and HD-audio."
* tag 'sound-3.5' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
ALSA: hda - Fix no sound from ALC662 after Windows reboot
ASoC: tlv320aic3x: Fix codec pll configure bug
ASoC: wm2200: Add missing BCLK rate
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 5ccf10a4d593..aa4c25e0f327 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -6688,6 +6688,31 @@ static const struct alc_model_fixup alc662_fixup_models[] = { | |||
6688 | {} | 6688 | {} |
6689 | }; | 6689 | }; |
6690 | 6690 | ||
6691 | static void alc662_fill_coef(struct hda_codec *codec) | ||
6692 | { | ||
6693 | int val, coef; | ||
6694 | |||
6695 | coef = alc_get_coef0(codec); | ||
6696 | |||
6697 | switch (codec->vendor_id) { | ||
6698 | case 0x10ec0662: | ||
6699 | if ((coef & 0x00f0) == 0x0030) { | ||
6700 | val = alc_read_coef_idx(codec, 0x4); /* EAPD Ctrl */ | ||
6701 | alc_write_coef_idx(codec, 0x4, val & ~(1<<10)); | ||
6702 | } | ||
6703 | break; | ||
6704 | case 0x10ec0272: | ||
6705 | case 0x10ec0273: | ||
6706 | case 0x10ec0663: | ||
6707 | case 0x10ec0665: | ||
6708 | case 0x10ec0670: | ||
6709 | case 0x10ec0671: | ||
6710 | case 0x10ec0672: | ||
6711 | val = alc_read_coef_idx(codec, 0xd); /* EAPD Ctrl */ | ||
6712 | alc_write_coef_idx(codec, 0xd, val | (1<<14)); | ||
6713 | break; | ||
6714 | } | ||
6715 | } | ||
6691 | 6716 | ||
6692 | /* | 6717 | /* |
6693 | */ | 6718 | */ |
@@ -6707,6 +6732,9 @@ static int patch_alc662(struct hda_codec *codec) | |||
6707 | 6732 | ||
6708 | alc_fix_pll_init(codec, 0x20, 0x04, 15); | 6733 | alc_fix_pll_init(codec, 0x20, 0x04, 15); |
6709 | 6734 | ||
6735 | spec->init_hook = alc662_fill_coef; | ||
6736 | alc662_fill_coef(codec); | ||
6737 | |||
6710 | alc_pick_fixup(codec, alc662_fixup_models, | 6738 | alc_pick_fixup(codec, alc662_fixup_models, |
6711 | alc662_fixup_tbl, alc662_fixups); | 6739 | alc662_fixup_tbl, alc662_fixups); |
6712 | alc_apply_fixup(codec, ALC_FIXUP_ACT_PRE_PROBE); | 6740 | alc_apply_fixup(codec, ALC_FIXUP_ACT_PRE_PROBE); |