sound fixes for 4.1-rc5
Linus,
please pull sound fixes for v4.1-rc5 from:
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-4.1-rc5
The topmost commit is 219f47e4f96442a7fe8fb646c59c6730690a9e66
----------------------------------------------------------------
sound fixes for 4.1-rc5
This batch became slightly large, just because I've been on vacation for the last two weeks. Nothing to scare much here, all device-specific fixes, mostly small patches.
Majority of patches are for HD-audio, especially Dell machines. The rest are small ASoC fixes for various codecs, and a USB-audio quirk.
One PCM fix is included to ease the faulty condition checks in the case of two periods PCM buffers.
----------------------------------------------------------------
Ansgar Hegerfeld (1):
ALSA: hda/realtek - ALC292 dock fix for Thinkpad L450
Arnd Bergmann (1):
ALSA: sound/atmel/ac97c.c: remove unused variable
Axel Lin (2):
ASoC: mc13783: Fix wrong mask value used in mc13xxx_reg_rmw() calls
ASoC: rt5645: Fix mask for setting RT5645_DMIC_2_DP_GPIO12 bit
David Henningsson (3):
ALSA: hda - Add headset mic quirk for Dell Inspiron 5548
ALSA: hda - Fix headset mic and mic-in for a Dell desktop
ALSA: hda - Add Conexant codecs CX20721, CX20722, CX20723 and CX20724
Fang, Yang A (1):
ASoC: rt5645: Add ACPI match ID
Kailang Yang (2):
ALSA: hda/realtek - Fix typo for ALC286/ALC288
ALSA: hda/realtek - Add ALC298 alias name for Dell
Koro Chen (2):
ASoC: dapm: Modify widget stream name according to prefix
ALSA: pcm: Modify double acknowledged interrupts check condition
Peter Ujfalusi (1):
ASoC: davinci-mcasp: Correct pm status check in suspend callback
Takashi Iwai (4):
ALSA: hda - Add headphone quirk for Lifebook E752
ALSA: usb-audio: Add quirk for MS LifeCam Studio
ALSA: hda - Reduce verbs by node power-saves
ALSA: hda - Disable widget power-saving for ALC292 & co
Vasily Khoruzhick (1):
ASoC: uda1380: Avoid accessing i2c bus when codec is disabled
Zidan Wang (2):
ASoC: wm8960: fix "RINPUT3" audio route error
ASoC: wm8994: correct BCLK DIV 348 to 384
--- sound/atmel/ac97c.c | 1 - sound/core/pcm_lib.c | 2 +- sound/pci/hda/hda_generic.c | 8 ++++++ sound/pci/hda/patch_conexant.c | 12 ++++++++ sound/pci/hda/patch_realtek.c | 60 +++++++++++++++++++++++++++++++++++++-- sound/soc/codecs/mc13783.c | 4 +-- sound/soc/codecs/uda1380.c | 2 +- sound/soc/codecs/wm8960.c | 2 +- sound/soc/codecs/wm8994.c | 2 +- sound/soc/davinci/davinci-mcasp.c | 2 +- sound/soc/soc-dapm.c | 11 +++++-- sound/usb/quirks.c | 1 + 12 files changed, 93 insertions(+), 14 deletions(-)
sound/atmel/ac97c.c +0 -1
@@ -916,7 +916,6 @@ static struct ac97c_platform_data *atmel_ac97c_probe_dt(struct device *dev) {struct ac97c_platform_data *pdata;struct device_node *node = dev->of_node; -const struct of_device_id *match;if (!node) {dev_err (dev,"Device does not have associated DT data\n" );
sound/core/pcm_lib.c +1 -1
@@ -339,7 +339,7 @@ static int snd_pcm_update_hw_ptr0(struct snd_pcm_substream *substream,if (delta > new_hw_ptr) {/* check for double acknowledged interrupts */ hdelta = curr_jiffies - runtime->hw_ptr_jiffies; -if (hdelta > runtime->hw_ptr_buffer_jiffies/2 ) { +if (hdelta > runtime->hw_ptr_buffer_jiffies/2 +1 ) { hw_base += runtime->buffer_size;if (hw_base >= runtime->boundary) { hw_base =0 ;
sound/pci/hda/hda_generic.c +8 -0
@@ -844,8 +844,16 @@ static hda_nid_t path_power_update(struct hda_codec *codec,snd_hda_codec_write (codec, nid,0 ,AC_VERB_SET_POWER_STATE , state); changed = nid; +/* all known codecs seem to be capable to handl +* widgets state even in D3, so far. +* if any new codecs need to restore the widget +* states after D0 transition, call the function +* below. +*/ +#if 0 /* disabled */ if (state ==AC_PWRST_D0 )snd_hdac_regmap_sync_node (&codec->core, nid); +#endif } }return changed;
sound/pci/hda/patch_conexant.c +12 -0
@@ -968,6 +968,14 @@ static const struct hda_codec_preset snd_hda_preset_conexant[] = { .patch = patch_conexant_auto }, { .id = 0x14f150b9, .name = "CX20665", .patch = patch_conexant_auto }, + { .id = 0x14f150f1, .name = "CX20721", + .patch = patch_conexant_auto }, + { .id = 0x14f150f2, .name = "CX20722", + .patch = patch_conexant_auto }, + { .id = 0x14f150f3, .name = "CX20723", + .patch = patch_conexant_auto }, + { .id = 0x14f150f4, .name = "CX20724", + .patch = patch_conexant_auto }, { .id = 0x14f1510f, .name = "CX20751/2", .patch = patch_conexant_auto }, { .id = 0x14f15110, .name = "CX20751/2",
@@ -1002,6 +1010,10 @@ MODULE_ALIAS("snd-hda-codec-id:14f150ab");MODULE_ALIAS ("snd-hda-codec-id:14f150ac" );MODULE_ALIAS ("snd-hda-codec-id:14f150b8" );MODULE_ALIAS ("snd-hda-codec-id:14f150b9" ); +MODULE_ALIAS ("snd-hda-codec-id:14f150f1" ); +MODULE_ALIAS ("snd-hda-codec-id:14f150f2" ); +MODULE_ALIAS ("snd-hda-codec-id:14f150f3" ); +MODULE_ALIAS ("snd-hda-codec-id:14f150f4" );MODULE_ALIAS ("snd-hda-codec-id:14f1510f" );MODULE_ALIAS ("snd-hda-codec-id:14f15110" );MODULE_ALIAS ("snd-hda-codec-id:14f15111" );
sound/pci/hda/patch_realtek.c +57 -3
133 lines not on this page · raw message
sound/soc/codecs/mc13783.c +2 -2
@@ -623,14 +623,14 @@ static int mc13783_probe(struct snd_soc_codec *codec) AUDIO_SSI_SEL, 0); else mc13xxx_reg_rmw(priv->mc13xxx, MC13783_AUDIO_CODEC, - 0, AUDIO_SSI_SEL); +AUDIO_SSI_SEL ,AUDIO_SSI_SEL );if (priv->dac_ssi_port ==MC13783_SSI1_PORT )mc13xxx_reg_rmw (priv->mc13xxx,MC13783_AUDIO_DAC ,AUDIO_SSI_SEL ,0 );else mc13xxx_reg_rmw (priv->mc13xxx,MC13783_AUDIO_DAC , -0 ,AUDIO_SSI_SEL ); +AUDIO_SSI_SEL ,AUDIO_SSI_SEL );return 0 ; }
sound/soc/codecs/uda1380.c +1 -1
@@ -437,7 +437,7 @@ static int uda1380_set_dai_fmt_both(struct snd_soc_dai *codec_dai,if ((fmt &SND_SOC_DAIFMT_MASTER_MASK ) !=SND_SOC_DAIFMT_CBS_CFS )return -EINVAL ; -uda1380_write (codec,UDA1380_IFACE , iface); +uda1380_write_reg_cache (codec,UDA1380_IFACE , iface);return 0 ; }
sound/soc/codecs/wm8960.c +1 -1
@@ -395,7 +395,7 @@ static const struct snd_soc_dapm_route audio_paths[] = { { "Right Input Mixer", "Boost Switch", "Right Boost Mixer", }, { "Right Input Mixer", NULL, "RINPUT1", }, /* Really Boost Switch */ { "Right Input Mixer", NULL, "RINPUT2" }, - { "Right Input Mixer", NULL, "LINPUT3" }, + { "Right Input Mixer", NULL, "RINPUT3" }, { "Left ADC", NULL, "Left Input Mixer" }, { "Right ADC", NULL, "Right Input Mixer" },
sound/soc/codecs/wm8994.c +1 -1
@@ -2754,7 +2754,7 @@ static struct { };static int fs_ratios[] = { -64 ,128 ,192 ,256 ,348 ,512 ,768 ,1024 ,1408 ,1536 +64 ,128 ,192 ,256 ,384 ,512 ,768 ,1024 ,1408 ,1536 };static int bclk_divs[] = {
sound/soc/davinci/davinci-mcasp.c +1 -1
@@ -1247,7 +1247,7 @@ static int davinci_mcasp_suspend(struct snd_soc_dai *dai)u32 reg;int i; - context->pm_state =pm_runtime_enabled (mcasp->dev); + context->pm_state =pm_runtime_active (mcasp->dev);if (!context->pm_state)pm_runtime_get_sync (mcasp->dev);
sound/soc/soc-dapm.c +8 -3
@@ -3100,11 +3100,16 @@ snd_soc_dapm_new_control(struct snd_soc_dapm_context *dapm, } prefix =soc_dapm_prefix (dapm); -if (prefix) +if (prefix) { w->name =kasprintf (GFP_KERNEL ,"%s %s" , prefix, widget->name); -else +if (widget->sname) + w->sname =kasprintf (GFP_KERNEL ,"%s %s" , prefix, + widget->sname); + }else { w->name =kasprintf (GFP_KERNEL ,"%s" , widget->name); - +if (widget->sname) + w->sname =kasprintf (GFP_KERNEL ,"%s" , widget->sname); + }if (w->name ==NULL ) {kfree (w);return NULL ;
sound/usb/quirks.c +1 -0
@@ -1117,6 +1117,7 @@ bool snd_usb_get_sample_rate_quirk(struct snd_usb_audio *chip)switch (chip->usb_id) {case USB_ID (0x045E ,0x075D ):/* MS Lifecam Cinema */ case USB_ID (0x045E ,0x076D ):/* MS Lifecam HD-5000 */ +case USB_ID (0x045E ,0x0772 ):/* MS Lifecam Studio */ case USB_ID (0x04D8 ,0xFEEA ):/* Benchmark DAC1 Pre */ return true; }