sound fixes for 3.3-rc2
Linus,
please pull sound fixes for v3.3-rc2 from:
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-linus
The topmost commit is b4ead019afc201f71c39cd0dfcaafed4a97b3dd2
All commits are about HD-audio for regression fixes, quirk updates and clean-ups.
Thanks!
Takashi
===
Albert Pool (1):
snd-hda-intel: better Alienware M17x R3 quirk
David Henningsson (1):
ALSA: HDA: Use model=auto for Thinkpad T510
Takashi Iwai (6):
ALSA: hda/realtek - Avoid multi-ios conflicting with multi-speakers
ALSA: hda/realtek - Avoid conflict of unsol-events with static quirks
ALSA: hda/realtek - Remove use_jack_tbl field
ALSA: hda - Fix a unused variable warning
ALSA: hda - Fix buffer-alignment regression with Nvidia HDMI
ALSA: hda - Fix silent outputs from docking-station jacks of Dell laptops
--- sound/pci/hda/alc880_quirks.c | 17 ++++++++++---- sound/pci/hda/alc882_quirks.c | 15 ++++++++---- sound/pci/hda/hda_intel.c | 6 +++- sound/pci/hda/patch_conexant.c | 2 +- sound/pci/hda/patch_realtek.c | 47 +++++++++++++++++++++++++-------------- sound/pci/hda/patch_sigmatel.c | 10 +++++--- 6 files changed, 63 insertions(+), 34 deletions(-)
sound/pci/hda/alc880_quirks.c +12 -5
@@ -762,16 +762,22 @@ static void alc880_uniwill_unsol_event(struct hda_codec *codec,/* Looks like the unsol event is incompatible with the standard * definition. 4bit tag is placed at 28 bit! */ -switch (res >>28 ) { + res >>=28 ; +switch (res) {case ALC_MIC_EVENT :alc88x_simple_mic_automute (codec);break ;default : -alc_sku_unsol_event (codec, res); +alc_exec_unsol_event (codec, res);break ; } } +static void alc880_unsol_event (struct hda_codec *codec,unsigned int res) +{ +alc_exec_unsol_event (codec, res >>28 ); +} +static void alc880_uniwill_p53_setup (struct hda_codec *codec) {struct alc_spec *spec = codec->spec;
@@ -800,10 +806,11 @@ static void alc880_uniwill_p53_unsol_event(struct hda_codec *codec,/* Looks like the unsol event is incompatible with the standard * definition. 4bit tag is placed at 28 bit! */ -if ((res >>28 ) ==ALC_DCVOL_EVENT ) + res >>=28 ; +if (res ==ALC_DCVOL_EVENT )alc880_uniwill_p53_dcvol_automute (codec);else -alc_sku_unsol_event (codec, res); +alc_exec_unsol_event (codec, res); }/*
@@ -1677,7 +1684,7 @@ static const struct alc_config_preset alc880_presets[] = { .channel_mode = alc880_lg_ch_modes, .need_dac_fix = 1, .input_mux = &alc880_lg_capture_source, - .unsol_event = alc_sku_unsol_event, + .unsol_event = alc880_unsol_event, .setup = alc880_lg_setup, .init_hook = alc_hp_automute,#ifdef CONFIG_SND_HDA_POWER_SAVE
sound/pci/hda/alc882_quirks.c +10 -5
@@ -730,6 +730,11 @@ static void alc889A_mb31_unsol_event(struct hda_codec *codec, unsigned int res)alc889A_mb31_automute (codec); } +static void alc882_unsol_event (struct hda_codec *codec,unsigned int res) +{ +alc_exec_unsol_event (codec, res >>26 ); +} +/* * configuration and preset */
@@ -775,7 +780,7 @@ static const struct alc_config_preset alc882_presets[] = { .channel_mode = alc885_mba21_ch_modes, .num_channel_mode = ARRAY_SIZE(alc885_mba21_ch_modes), .input_mux = &alc882_capture_source, - .unsol_event = alc_sku_unsol_event, + .unsol_event = alc882_unsol_event, .setup = alc885_mba21_setup, .init_hook = alc_hp_automute, },
@@ -791,7 +796,7 @@ static const struct alc_config_preset alc882_presets[] = { .input_mux = &alc882_capture_source, .dig_out_nid = ALC882_DIGOUT_NID, .dig_in_nid = ALC882_DIGIN_NID, - .unsol_event = alc_sku_unsol_event, + .unsol_event = alc882_unsol_event, .setup = alc885_mbp3_setup, .init_hook = alc_hp_automute, },
@@ -806,7 +811,7 @@ static const struct alc_config_preset alc882_presets[] = { .input_mux = &mb5_capture_source, .dig_out_nid = ALC882_DIGOUT_NID, .dig_in_nid = ALC882_DIGIN_NID, - .unsol_event = alc_sku_unsol_event, + .unsol_event = alc882_unsol_event, .setup = alc885_mb5_setup, .init_hook = alc_hp_automute, },
@@ -821,7 +826,7 @@ static const struct alc_config_preset alc882_presets[] = { .input_mux = &macmini3_capture_source, .dig_out_nid = ALC882_DIGOUT_NID, .dig_in_nid = ALC882_DIGIN_NID, - .unsol_event = alc_sku_unsol_event, + .unsol_event = alc882_unsol_event, .setup = alc885_macmini3_setup, .init_hook = alc_hp_automute, },
@@ -836,7 +841,7 @@ static const struct alc_config_preset alc882_presets[] = { .input_mux = &alc889A_imac91_capture_source, .dig_out_nid = ALC882_DIGOUT_NID, .dig_in_nid = ALC882_DIGIN_NID, - .unsol_event = alc_sku_unsol_event, + .unsol_event = alc882_unsol_event, .setup = alc885_imac91_setup, .init_hook = alc_hp_automute, },
sound/pci/hda/hda_intel.c +4 -2
@@ -469,6 +469,7 @@ struct azx { unsigned int irq_pending_warned :1; unsigned int probing :1; /* codec probing phase */ unsigned int snoop:1; + unsigned int align_buffer_size:1;/* for debugging */ unsigned int last_cmd[AZX_MAX_CODECS ];
@@ -1690,7 +1691,7 @@ static int azx_pcm_open(struct snd_pcm_substream *substream) runtime->hw.rates = hinfo->rates;snd_pcm_limit_hw_rates (runtime);snd_pcm_hw_constraint_integer (runtime,SNDRV_PCM_HW_PARAM_PERIODS ); -if (align_buffer_size) +if (chip->align_buffer_size)/* constrain buffer sizes to be multiple of 128 bytes. This is more efficient in terms of memory access but isn't required by the HDA spec and
@@ -2773,8 +2774,9 @@ static int __devinit azx_create(struct snd_card *card, struct pci_dev *pci, }/* disable buffer size rounding to 128-byte multiples if supported */ + chip->align_buffer_size = align_buffer_size;if (chip->driver_caps &AZX_DCAPS_BUFSIZE ) - align_buffer_size =0 ; + chip->align_buffer_size =0 ;/* allow 64bit DMA address if supported by H/W */ if ((gcap &ICH6_GCAP_64OK ) && !pci_set_dma_mask (pci,DMA_BIT_MASK (64 )))
sound/pci/hda/patch_conexant.c +1 -1
@@ -3027,7 +3027,7 @@ static const struct snd_pci_quirk cxt5066_cfg_tbl[] = {SND_PCI_QUIRK (0x17aa ,0x20f2 ,"Lenovo T400s" ,CXT5066_THINKPAD ),SND_PCI_QUIRK (0x17aa ,0x21c5 ,"Thinkpad Edge 13" ,CXT5066_THINKPAD ),SND_PCI_QUIRK (0x17aa ,0x21c6 ,"Thinkpad Edge 13" ,CXT5066_ASUS ), -SND_PCI_QUIRK (0x17aa ,0x215e ,"Lenovo Thinkpad" ,CXT5066_THINKPAD ), +SND_PCI_QUIRK (0x17aa ,0x215e ,"Lenovo T510" ,CXT5066_AUTO ),SND_PCI_QUIRK (0x17aa ,0x21cf ,"Lenovo T520 & W520" ,CXT5066_AUTO ),SND_PCI_QUIRK (0x17aa ,0x21da ,"Lenovo X220" ,CXT5066_THINKPAD ), SND_PCI_QUIRK(0x17aa, 0x21db, "Lenovo X220-tablet", CXT5066_THINKPAD),
sound/pci/hda/patch_realtek.c +30 -17
110 lines not on this page · raw message
sound/pci/hda/patch_sigmatel.c +6 -4
@@ -1608,7 +1608,7 @@ static const struct snd_pci_quirk stac92hd73xx_codec_id_cfg_tbl[] = {SND_PCI_QUIRK (PCI_VENDOR_ID_DELL ,0x043a ,"Alienware M17x" ,STAC_ALIENWARE_M17X ),SND_PCI_QUIRK (PCI_VENDOR_ID_DELL ,0x0490 , - "Alienware M17x", STAC_ALIENWARE_M17X), + "Alienware M17x R3", STAC_DELL_EQ), {} /* terminator */ };
@@ -4163,13 +4163,15 @@ static int enable_pin_detect(struct hda_codec *codec, hda_nid_t nid,return 1 ; } -static int is_nid_hp_pin (struct auto_pin_cfg *cfg,hda_nid_t nid) +static int is_nid_out_jack_pin (struct auto_pin_cfg *cfg,hda_nid_t nid) {int i;for (i =0 ; i < cfg->hp_outs; i++)if (cfg->hp_pins[i] == nid)return 1 ;/* nid is a HP-Out */ - +for (i =0 ; i < cfg->line_outs; i++) +if (cfg->line_out_pins[i] == nid) +return 1 ;/* nid is a line-Out */ return 0 ;/* nid is not a HP-Out */ };
@@ -4375,7 +4377,7 @@ static int stac92xx_init(struct hda_codec *codec)continue ; } -if (is_nid_hp_pin (cfg, nid)) +if (is_nid_out_jack_pin (cfg, nid))continue ;/* already has an unsol event */ pinctl = snd_hda_codec_read(codec, nid, 0,