sound fixes for 4.4-rc5
Linus,
please pull sound fixes for v4.4-rc5 from:
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-4.4-rc5
The topmost commit is 5328e1ea87fb2b5cf695115df4325c1913209e97
----------------------------------------------------------------
sound fixes for 4.4-rc5
Again less intensive changes in this rc: you can find only a few HD-audio fixes (noise fixes for Intel Broxton chip and a few Thinkpad models, quirks for Alienware 17 and Packard Bell DOTS) in addition to a long-standing rme96 bug fix.
----------------------------------------------------------------
David Henningsson (1):
ALSA: hda - Add inverted dmic for Packard Bell DOTS
Gabriele Martino (1):
ALSA: hda/ca0132 - quirk for Alienware 17 2015
Hui Wang (1):
ALSA: hda - Fixing speaker noise on the two latest thinkpad models
Lu, Han (1):
ALSA: hda - Fix playback noise with 24/32 bit sample size on BXT
Takashi Iwai (2):
ALSA: rme96: Fix unexpected volume reset after rate changes
ALSA: hda - Fix noise problems on Thinkpad T440s
--- include/sound/hda_register.h | 3 +++ sound/pci/hda/hda_intel.c | 23 +++++++++++++++++++++++ sound/pci/hda/patch_ca0132.c | 3 ++- sound/pci/hda/patch_realtek.c | 32 +++++++++++++++++++++++++++++++- sound/pci/rme96.c | 41 ++++++++++++++++++++++++++--------------- 5 files changed, 85 insertions(+), 17 deletions(-)
include/sound/hda_register.h +3 -0
@@ -93,6 +93,9 @@ enum { SDI0, SDI1, SDI2, SDI3, SDO0, SDO1, SDO2, SDO3 };#define AZX_REG_HSW_EM4 0x100c#define AZX_REG_HSW_EM5 0x1010 +/* Skylake/Broxton display HD-A controller Extended Mode registers */ +#define AZX_REG_SKL_EM4L 0x1040 +/* PCI space */ #define AZX_PCIREG_TCSEL 0x44
sound/pci/hda/hda_intel.c +23 -0
@@ -355,6 +355,8 @@ enum { ((pci)->device == 0x0d0c) || \ ((pci)->device == 0x160c)) +#define IS_BROXTON (pci) ((pci)->device == 0x5a98) +static char *driver_short_names[] = { [AZX_DRIVER_ICH ] ="HDA Intel" , [AZX_DRIVER_PCH ] ="HDA Intel PCH" ,
@@ -506,15 +508,36 @@ static void azx_init_pci(struct azx *chip) } } +/* +* In BXT-P A0, HD-Audio DMA requests is later than expected, +* and makes an audio stream sensitive to system latencies when +* 24/32 bits are playing. +* Adjusting threshold of DMA fifo to force the DMA request +* sooner to improve latency tolerance at the expense of power. +*/ +static void bxt_reduce_dma_latency (struct azx *chip) +{ +u32 val; + + val =azx_readl (chip,SKL_EM4L ); + val &= (0x3 <<20 ); +azx_writel (chip,SKL_EM4L , val); +} +static void hda_intel_init_chip (struct azx *chip,bool full_reset) {struct hdac_bus *bus =azx_bus (chip); +struct pci_dev *pci = chip->pci;if (chip->driver_caps &AZX_DCAPS_I915_POWERWELL )snd_hdac_set_codec_wakeup (bus, true);azx_init_chip (chip, full_reset);if (chip->driver_caps &AZX_DCAPS_I915_POWERWELL )snd_hdac_set_codec_wakeup (bus, false); + +/* reduce dma latency to avoid noise */ +if (IS_BROXTON (pci)) +bxt_reduce_dma_latency (chip); }/* calculate runtime delay from LPIB */
sound/pci/hda/patch_ca0132.c +2 -1
@@ -778,7 +778,8 @@ static const struct hda_pintbl alienware_pincfgs[] = { };static const struct snd_pci_quirk ca0132_quirks[] = { -SND_PCI_QUIRK (0x1028 ,0x0685 ,"Alienware 15" ,QUIRK_ALIENWARE ), +SND_PCI_QUIRK (0x1028 ,0x0685 ,"Alienware 15 2015" ,QUIRK_ALIENWARE ), +SND_PCI_QUIRK (0x1028 ,0x0688 ,"Alienware 17 2015" ,QUIRK_ALIENWARE ), {} };
sound/pci/hda/patch_realtek.c +31 -1
@@ -4204,6 +4204,18 @@ static void alc_fixup_tpt440_dock(struct hda_codec *codec, } } +/* additional fixup for Thinkpad T440s noise problem */ +static void alc_fixup_tpt440 (struct hda_codec *codec, +const struct hda_fixup *fix,int action) +{ +struct alc_spec *spec = codec->spec; + +if (action ==HDA_FIXUP_ACT_PRE_PROBE ) { + spec->shutup = alc_no_shutup;/* reduce click noise */ + spec->gen.mixer_nid =0 ;/* reduce background noise */ + } +} +static void alc_shutup_dell_xps13 (struct hda_codec *codec) {struct alc_spec *spec = codec->spec;
@@ -4578,6 +4590,7 @@ enum {ALC255_FIXUP_HEADSET_MODE_NO_HP_MIC ,ALC293_FIXUP_DELL1_MIC_NO_PRESENCE ,ALC292_FIXUP_TPT440_DOCK , +ALC292_FIXUP_TPT440 ,ALC283_FIXUP_BXBT2807_MIC ,ALC255_FIXUP_DELL_WMI_MIC_MUTE_LED , ALC282_FIXUP_ASPIRE_V5_PINS,
@@ -4596,6 +4609,7 @@ enum {ALC298_FIXUP_DELL1_MIC_NO_PRESENCE ,ALC275_FIXUP_DELL_XPS ,ALC256_FIXUP_DELL_XPS_13_HEADPHONE_NOISE , + ALC293_FIXUP_LENOVO_SPK_NOISE, }; static const struct hda_fixup alc269_fixups[] = {
@@ -5050,6 +5064,12 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id =ALC269_FIXUP_LIMIT_INT_MIC_BOOST }, + [ALC292_FIXUP_TPT440] = { + .type = HDA_FIXUP_FUNC, + .v.func = alc_fixup_tpt440, + .chained = true, + .chain_id = ALC292_FIXUP_TPT440_DOCK, + }, [ALC283_FIXUP_BXBT2807_MIC] = { .type = HDA_FIXUP_PINS, .v.pins = (const struct hda_pintbl []) {
@@ -5187,6 +5207,12 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id =ALC255_FIXUP_DELL1_MIC_NO_PRESENCE }, + [ALC293_FIXUP_LENOVO_SPK_NOISE] = { + .type = HDA_FIXUP_FUNC, + .v.func = alc_fixup_disable_aamix, + .chained = true, + .chain_id =ALC269_FIXUP_THINKPAD_ACPI + }, };static const struct snd_pci_quirk alc269_fixup_tbl[] = {
@@ -5325,7 +5351,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {SND_PCI_QUIRK (0x17aa ,0x21fb ,"Thinkpad T430s" ,ALC269_FIXUP_LENOVO_DOCK ),SND_PCI_QUIRK (0x17aa ,0x2203 ,"Thinkpad X230 Tablet" ,ALC269_FIXUP_LENOVO_DOCK ),SND_PCI_QUIRK (0x17aa ,0x2208 ,"Thinkpad T431s" ,ALC269_FIXUP_LENOVO_DOCK ), -SND_PCI_QUIRK (0x17aa ,0x220c ,"Thinkpad T440s" ,ALC292_FIXUP_TPT440_DOCK ), +SND_PCI_QUIRK (0x17aa ,0x220c ,"Thinkpad T440s" ,ALC292_FIXUP_TPT440 ),SND_PCI_QUIRK (0x17aa ,0x220e ,"Thinkpad T440p" ,ALC292_FIXUP_TPT440_DOCK ),SND_PCI_QUIRK (0x17aa ,0x2210 ,"Thinkpad T540p" ,ALC292_FIXUP_TPT440_DOCK ), SND_PCI_QUIRK(0x17aa, 0x2211, "Thinkpad W541", ALC292_FIXUP_TPT440_DOCK),
@@ -5334,6 +5360,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {SND_PCI_QUIRK (0x17aa ,0x2215 ,"Thinkpad" ,ALC269_FIXUP_LIMIT_INT_MIC_BOOST ),SND_PCI_QUIRK (0x17aa ,0x2223 ,"ThinkPad T550" ,ALC292_FIXUP_TPT440_DOCK ),SND_PCI_QUIRK (0x17aa ,0x2226 ,"ThinkPad X250" ,ALC292_FIXUP_TPT440_DOCK ), +SND_PCI_QUIRK (0x17aa ,0x2233 ,"Thinkpad" ,ALC293_FIXUP_LENOVO_SPK_NOISE ),SND_PCI_QUIRK (0x17aa ,0x3977 ,"IdeaPad S210" ,ALC283_FIXUP_INT_MIC ),SND_PCI_QUIRK (0x17aa ,0x3978 ,"IdeaPad Y410P" ,ALC269_FIXUP_NO_SHUTUP ), SND_PCI_QUIRK(0x17aa, 0x5013, "Thinkpad", ALC269_FIXUP_LIMIT_INT_MIC_BOOST),
@@ -5343,6 +5370,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {SND_PCI_QUIRK (0x17aa ,0x5034 ,"Thinkpad T450" ,ALC292_FIXUP_TPT440_DOCK ),SND_PCI_QUIRK (0x17aa ,0x5036 ,"Thinkpad T450s" ,ALC292_FIXUP_TPT440_DOCK ),SND_PCI_QUIRK (0x17aa ,0x503c ,"Thinkpad L450" ,ALC292_FIXUP_TPT440_DOCK ), +SND_PCI_QUIRK (0x17aa ,0x504b ,"Thinkpad" ,ALC293_FIXUP_LENOVO_SPK_NOISE ),SND_PCI_QUIRK (0x17aa ,0x5109 ,"Thinkpad" ,ALC269_FIXUP_LIMIT_INT_MIC_BOOST ),SND_PCI_QUIRK (0x17aa ,0x3bf8 ,"Quanta FL1" ,ALC269_FIXUP_PCM_44K ), SND_PCI_QUIRK(0x17aa, 0x9e54, "LENOVO NB", ALC269_FIXUP_LENOVO_EAPD),
@@ -5423,6 +5451,7 @@ static const struct hda_model_fixup alc269_fixup_models[] = { {.id = ALC283_FIXUP_CHROME_BOOK, .name = "alc283-dac-wcaps"}, {.id = ALC283_FIXUP_SENSE_COMBO_JACK, .name = "alc283-sense-combo"}, {.id = ALC292_FIXUP_TPT440_DOCK, .name = "tpt440-dock"}, + {.id = ALC292_FIXUP_TPT440, .name = "tpt440"}, {} };
@@ -6409,6 +6438,7 @@ static const struct hda_fixup alc662_fixups[] = {static const struct snd_pci_quirk alc662_fixup_tbl[] = {SND_PCI_QUIRK (0x1019 ,0x9087 ,"ECS" ,ALC662_FIXUP_ASUS_MODE2 ),SND_PCI_QUIRK (0x1025 ,0x022f ,"Acer Aspire One" ,ALC662_FIXUP_INV_DMIC ), +SND_PCI_QUIRK (0x1025 ,0x0241 ,"Packard Bell DOTS" ,ALC662_FIXUP_INV_DMIC ),SND_PCI_QUIRK (0x1025 ,0x0308 ,"Acer Aspire 8942G" ,ALC662_FIXUP_ASPIRE ),SND_PCI_QUIRK (0x1025 ,0x031c ,"Gateway NV79" ,ALC662_FIXUP_SKU_IGNORE ),SND_PCI_QUIRK (0x1025 ,0x0349 ,"eMachines eM250" ,ALC662_FIXUP_INV_DMIC ),
sound/pci/rme96.c +26 -15
75 lines not on this page · raw message