sound fixes for 3.18-rc6
Subsystems (10)
Linus,
please pull sound fixes for v3.18-rc6 from:
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-3.18-rc6
The topmost commit is 6676f3081f7e3dae64e05b87d47a041b782f898a
----------------------------------------------------------------
sound fixes for 3.18-rc6
This batch ended up as a relatively high volume due to pending ASoC fixes. But most of fixes there are trivial and/or device- specific fixes and quirks, so safe to apply. The only (ASoC) core fixes are the DPCM race fix and the machine-driver matching fix for componentization.
----------------------------------------------------------------
Andreas Färber (1):
ASoC: samsung: Add MODULE_DEVICE_TABLE for Snow
Axel Lin (1):
ASoC: es8328-i2c: Fix i2c_device_id name field in es8328_id
Bard Liao (2):
ASoC: rt5670: correct the incorrect default values
ASoC: rt5670: change dapm routes of PLL connection
Charles Keepax (1):
ASoC: wm_adsp: Avoid attempt to free buffers that might still be in use
Dylan Reid (1):
ASoC: max98090: Correct pclk divisor settings
Fabio Estevam (1):
ASoC: sgtl5000: Fix SMALL_POP bit definition
Fang, Yang A (1):
ASoC: rt5645: Mark RT5645_TDM_CTRL_3 as readable
Hui Wang (2):
ALSA: hda - move DELL_WMI_MIC_MUTE_LED to the tail in the quirk chain
ALSA: hda - fix the mic mute led problem for Latitude E5550
Jianqun (1):
ASoC: rockchip-i2s: fix infinite loop in rockchip_snd_rxctrl
Johan Rastén (1):
ALSA: usb-audio: Set the Control Selector to SU_SELECTOR_CONTROL for UAC2
Jurgen Kramer (1):
ALSA: usb-audio: Add ctrl message delay quirk for Marantz/Denon devices
Kuninori Morimoto (2):
ASoC: fsi: remove unsupported PAUSE flag
ASoC: rsnd: remove unsupported PAUSE flag
Lars-Peter Clausen (1):
ASoC: Fix snd_soc_find_dai() matching component by name
Nicolin Chen (1):
ASoC: fsl_asrc: Add reg_defaults for regmap to fix kernel dump
Takashi Iwai (1):
ASoC: dpcm: Fix race between FE/BE updates and trigger
Thomas Petazzoni (1):
ASoC: cs42l51: re-hook of_match_table pointer
--- include/sound/soc-dpcm.h | 2 ++ sound/pci/hda/patch_realtek.c | 8 ++--- sound/soc/codecs/cs42l51-i2c.c | 1 + sound/soc/codecs/cs42l51.c | 4 ++- sound/soc/codecs/cs42l51.h | 1 + sound/soc/codecs/es8328-i2c.c | 2 +- sound/soc/codecs/max98090.c | 6 ++-- sound/soc/codecs/rt5645.c | 2 ++ sound/soc/codecs/rt5670.c | 36 ++++++++++---------- sound/soc/codecs/sgtl5000.c | 3 +- sound/soc/codecs/sgtl5000.h | 2 +- sound/soc/codecs/wm_adsp.c | 1 + sound/soc/fsl/fsl_asrc.c | 26 ++++++++++++++ sound/soc/rockchip/rockchip_i2s.c | 4 ++- sound/soc/samsung/snow.c | 1 + sound/soc/sh/fsi.c | 3 +- sound/soc/sh/rcar/core.c | 3 +- sound/soc/soc-core.c | 2 +- sound/soc/soc-pcm.c | 72 ++++++++++++++++++++++++++++++--------- sound/usb/mixer.c | 7 ++-- sound/usb/quirks.c | 14 ++++++++ 21 files changed, 145 insertions(+), 55 deletions(-)
include/sound/soc-dpcm.h +2 -0
@@ -102,6 +102,8 @@ struct snd_soc_dpcm_runtime {/* state and update */ enum snd_soc_dpcm_update runtime_update;enum snd_soc_dpcm_state state; + +int trigger_pending;/* trigger cmd + 1 if pending, 0 if not */ };/* can this BE stop and free */
sound/pci/hda/patch_realtek.c +4 -4
@@ -4520,6 +4520,8 @@ static const struct hda_fixup alc269_fixups[] = { [ALC269_FIXUP_HEADSET_MODE] = { .type = HDA_FIXUP_FUNC, .v.func = alc_fixup_headset_mode, + .chained = true, + .chain_id =ALC255_FIXUP_DELL_WMI_MIC_MUTE_LED }, [ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC] = { .type = HDA_FIXUP_FUNC,
@@ -4709,6 +4711,8 @@ static const struct hda_fixup alc269_fixups[] = { [ALC255_FIXUP_HEADSET_MODE] = { .type = HDA_FIXUP_FUNC, .v.func = alc_fixup_headset_mode_alc255, + .chained = true, + .chain_id =ALC255_FIXUP_DELL_WMI_MIC_MUTE_LED }, [ALC255_FIXUP_HEADSET_MODE_NO_HP_MIC] = { .type = HDA_FIXUP_FUNC,
@@ -4744,8 +4748,6 @@ static const struct hda_fixup alc269_fixups[] = { [ALC255_FIXUP_DELL_WMI_MIC_MUTE_LED] = { .type = HDA_FIXUP_FUNC, .v.func = alc_fixup_dell_wmi, - .chained_before = true, - .chain_id =ALC255_FIXUP_DELL1_MIC_NO_PRESENCE }, [ALC282_FIXUP_ASPIRE_V5_PINS] = { .type = HDA_FIXUP_PINS,
@@ -4783,10 +4785,8 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {SND_PCI_QUIRK (0x1028 ,0x05f4 ,"Dell" ,ALC269_FIXUP_DELL1_MIC_NO_PRESENCE ),SND_PCI_QUIRK (0x1028 ,0x05f5 ,"Dell" ,ALC269_FIXUP_DELL1_MIC_NO_PRESENCE ),SND_PCI_QUIRK (0x1028 ,0x05f6 ,"Dell" ,ALC269_FIXUP_DELL1_MIC_NO_PRESENCE ), -SND_PCI_QUIRK (0x1028 ,0x0610 ,"Dell" ,ALC255_FIXUP_DELL_WMI_MIC_MUTE_LED ),SND_PCI_QUIRK (0x1028 ,0x0615 ,"Dell Vostro 5470" ,ALC290_FIXUP_SUBWOOFER_HSJACK ),SND_PCI_QUIRK (0x1028 ,0x0616 ,"Dell Vostro 5470" ,ALC290_FIXUP_SUBWOOFER_HSJACK ), -SND_PCI_QUIRK (0x1028 ,0x061f ,"Dell" ,ALC255_FIXUP_DELL_WMI_MIC_MUTE_LED ),SND_PCI_QUIRK (0x1028 ,0x0638 ,"Dell Inspiron 5439" ,ALC290_FIXUP_MONO_SPEAKERS_HSJACK ),SND_PCI_QUIRK (0x1028 ,0x064a ,"Dell" ,ALC293_FIXUP_DELL1_MIC_NO_PRESENCE ), SND_PCI_QUIRK(0x1028, 0x064b, "Dell", ALC293_FIXUP_DELL1_MIC_NO_PRESENCE),
sound/soc/codecs/cs42l51-i2c.c +1 -0
@@ -46,6 +46,7 @@ static struct i2c_driver cs42l51_i2c_driver = { .driver = { .name = "cs42l51", .owner = THIS_MODULE, + .of_match_table = cs42l51_of_match, }, .probe = cs42l51_i2c_probe, .remove = cs42l51_i2c_remove,
sound/soc/codecs/cs42l51.c +3 -1
@@ -558,11 +558,13 @@ error: }EXPORT_SYMBOL_GPL (cs42l51_probe); -static const struct of_device_id cs42l51_of_match[] = { +const struct of_device_id cs42l51_of_match[] = { { .compatible ="cirrus,cs42l51" , }, { } };MODULE_DEVICE_TABLE (of, cs42l51_of_match); +EXPORT_SYMBOL_GPL (cs42l51_of_match); +MODULE_AUTHOR ("Arnaud Patard <[email protected]>" );MODULE_DESCRIPTION ("Cirrus Logic CS42L51 ALSA SoC Codec Driver" );MODULE_LICENSE ("GPL" );
sound/soc/codecs/cs42l51.h +1 -0
@@ -22,6 +22,7 @@ struct device;extern const struct regmap_config cs42l51_regmap;int cs42l51_probe (struct device *dev,struct regmap *regmap); +extern const struct of_device_id cs42l51_of_match[];#define CS42L51_CHIP_ID 0x1B#define CS42L51_CHIP_REV_A 0x00
sound/soc/codecs/es8328-i2c.c +1 -1
@@ -19,7 +19,7 @@#include "es8328.h" static const struct i2c_device_id es8328_id[] = { - {"everest,es8328" ,0 }, + {"es8328" ,0 }, { } };MODULE_DEVICE_TABLE (i2c, es8328_id);
sound/soc/codecs/max98090.c +3 -3
@@ -1941,13 +1941,13 @@ static int max98090_dai_set_sysclk(struct snd_soc_dai *dai,* 0x02 (when master clk is 20MHz to 40MHz).. * 0x03 (when master clk is 40MHz to 60MHz).. */ -if ((freq >=10000000 ) && (freq <20000000 )) { +if ((freq >=10000000 ) && (freq <=20000000 )) {snd_soc_write (codec,M98090_REG_SYSTEM_CLOCK ,M98090_PSCLK_DIV1 ); - }else if ((freq >=20000000 ) && (freq <40000000 )) { + }else if ((freq >20000000 ) && (freq <=40000000 )) {snd_soc_write (codec,M98090_REG_SYSTEM_CLOCK ,M98090_PSCLK_DIV2 ); - }else if ((freq >=40000000 ) && (freq <60000000 )) { + }else if ((freq >40000000 ) && (freq <=60000000 )) {snd_soc_write (codec,M98090_REG_SYSTEM_CLOCK ,M98090_PSCLK_DIV4 ); }else {
sound/soc/codecs/rt5645.c +2 -0
@@ -139,6 +139,7 @@ static const struct reg_default rt5645_reg[] = { { 0x76, 0x000a }, { 0x77, 0x0c00 }, { 0x78, 0x0000 }, + { 0x79, 0x0123 }, { 0x80, 0x0000 }, { 0x81, 0x0000 }, { 0x82, 0x0000 },
@@ -334,6 +335,7 @@ static bool rt5645_readable_register(struct device *dev, unsigned int reg)case RT5645_DMIC_CTRL2 :case RT5645_TDM_CTRL_1 :case RT5645_TDM_CTRL_2 : +case RT5645_TDM_CTRL_3 :case RT5645_GLB_CLK :case RT5645_PLL_CTRL1 :case RT5645_PLL_CTRL2 :
sound/soc/codecs/rt5670.c +18 -18
@@ -100,18 +100,18 @@ static const struct reg_default rt5670_reg[] = { { 0x4c, 0x5380 }, { 0x4f, 0x0073 }, { 0x52, 0x00d3 }, - { 0x53, 0xf0f0 }, + { 0x53, 0xf000 }, { 0x61, 0x0000 }, { 0x62, 0x0001 }, { 0x63, 0x00c3 }, { 0x64, 0x0000 }, - { 0x65, 0x0000 }, + { 0x65, 0x0001 }, { 0x66, 0x0000 }, { 0x6f, 0x8000 }, { 0x70, 0x8000 }, { 0x71, 0x8000 }, { 0x72, 0x8000 }, - { 0x73, 0x1110 }, + { 0x73, 0x7770 }, { 0x74, 0x0e00 }, { 0x75, 0x1505 }, { 0x76, 0x0015 },
@@ -125,21 +125,21 @@ static const struct reg_default rt5670_reg[] = { { 0x83, 0x0000 }, { 0x84, 0x0000 }, { 0x85, 0x0000 }, - { 0x86, 0x0008 }, + { 0x86, 0x0004 }, { 0x87, 0x0000 }, { 0x88, 0x0000 }, { 0x89, 0x0000 }, { 0x8a, 0x0000 }, { 0x8b, 0x0000 }, - { 0x8c, 0x0007 }, + { 0x8c, 0x0003 }, { 0x8d, 0x0000 }, { 0x8e, 0x0004 }, { 0x8f, 0x1100 }, { 0x90, 0x0646 }, { 0x91, 0x0c06 }, { 0x93, 0x0000 }, - { 0x94, 0x0000 }, - { 0x95, 0x0000 }, + { 0x94, 0x1270 }, + { 0x95, 0x1000 }, { 0x97, 0x0000 }, { 0x98, 0x0000 }, { 0x99, 0x0000 },
@@ -150,11 +150,11 @@ static const struct reg_default rt5670_reg[] = { { 0x9e, 0x0400 }, { 0xae, 0x7000 }, { 0xaf, 0x0000 }, - { 0xb0, 0x6000 }, + { 0xb0, 0x7000 }, { 0xb1, 0x0000 }, { 0xb2, 0x0000 }, { 0xb3, 0x001f }, - { 0xb4, 0x2206 }, + { 0xb4, 0x220c }, { 0xb5, 0x1f00 }, { 0xb6, 0x0000 }, { 0xb7, 0x0000 },
@@ -171,25 +171,25 @@ static const struct reg_default rt5670_reg[] = { { 0xcf, 0x1813 }, { 0xd0, 0x0690 }, { 0xd1, 0x1c17 }, - { 0xd3, 0xb320 }, + { 0xd3, 0xa220 }, { 0xd4, 0x0000 }, { 0xd6, 0x0400 }, { 0xd9, 0x0809 }, { 0xda, 0x0000 }, { 0xdb, 0x0001 }, { 0xdc, 0x0049 }, - { 0xdd, 0x0009 }, + { 0xdd, 0x0024 }, { 0xe6, 0x8000 }, { 0xe7, 0x0000 }, - { 0xec, 0xb300 }, + { 0xec, 0xa200 }, { 0xed, 0x0000 }, - { 0xee, 0xb300 }, + { 0xee, 0xa200 }, { 0xef, 0x0000 }, { 0xf8, 0x0000 }, { 0xf9, 0x0000 }, { 0xfa, 0x8010 }, { 0xfb, 0x0033 }, - { 0xfc, 0x0080 }, + { 0xfc, 0x0100 }, };static bool rt5670_volatile_register (struct device *dev,unsigned int reg)
@@ -1877,6 +1877,10 @@ static const struct snd_soc_dapm_route rt5670_dapm_routes[] = { { "DAC1 MIXR", "DAC1 Switch", "DAC1 R Mux" }, { "DAC1 MIXR", NULL, "DAC Stereo1 Filter" }, + { "DAC Stereo1 Filter", NULL, "PLL1", is_sys_clk_from_pll }, + { "DAC Mono Left Filter", NULL, "PLL1", is_sys_clk_from_pll }, + { "DAC Mono Right Filter", NULL, "PLL1", is_sys_clk_from_pll }, + { "DAC MIX", NULL, "DAC1 MIXL" }, { "DAC MIX", NULL, "DAC1 MIXR" },
@@ -1926,14 +1930,10 @@ static const struct snd_soc_dapm_route rt5670_dapm_routes[] = { { "DAC L1", NULL, "DAC L1 Power" }, { "DAC L1", NULL, "Stereo DAC MIXL" }, - { "DAC L1", NULL, "PLL1", is_sys_clk_from_pll }, { "DAC R1", NULL, "DAC R1 Power" }, { "DAC R1", NULL, "Stereo DAC MIXR" }, - { "DAC R1", NULL, "PLL1", is_sys_clk_from_pll }, { "DAC L2", NULL, "Mono DAC MIXL" }, - { "DAC L2", NULL, "PLL1", is_sys_clk_from_pll }, { "DAC R2", NULL, "Mono DAC MIXR" }, - { "DAC R2", NULL, "PLL1", is_sys_clk_from_pll }, { "OUT MIXL", "BST1 Switch", "BST1" }, { "OUT MIXL", "INL Switch", "INL VOL" },
sound/soc/codecs/sgtl5000.c +1 -2
@@ -1299,8 +1299,7 @@ static int sgtl5000_probe(struct snd_soc_codec *codec)/* enable small pop, introduce 400ms delay in turning off */ snd_soc_update_bits (codec,SGTL5000_CHIP_REF_CTRL , -SGTL5000_SMALL_POP , -SGTL5000_SMALL_POP ); +SGTL5000_SMALL_POP ,1 );/* disable short cut detector */ snd_soc_write (codec,SGTL5000_CHIP_SHORT_CTRL ,0 );
sound/soc/codecs/sgtl5000.h +1 -1
@@ -275,7 +275,7 @@#define SGTL5000_BIAS_CTRL_MASK 0x000e#define SGTL5000_BIAS_CTRL_SHIFT 1#define SGTL5000_BIAS_CTRL_WIDTH 3 -#define SGTL5000_SMALL_POP 0x0001 +#define SGTL5000_SMALL_POP 0/* * SGTL5000_CHIP_MIC_CTRL
sound/soc/codecs/wm_adsp.c +1 -0
@@ -1355,6 +1355,7 @@ static int wm_adsp_load_coeff(struct wm_adsp *dsp) file, blocks, pos - firmware->size); out_fw: +regmap_async_complete (regmap);release_firmware (firmware);wm_adsp_buf_free (&buf_list); out:
sound/soc/fsl/fsl_asrc.c +26 -0
@@ -684,12 +684,38 @@ static bool fsl_asrc_writeable_reg(struct device *dev, unsigned int reg) } } +static struct reg_default fsl_asrc_reg[] = { + {REG_ASRCTR ,0x0000 }, {REG_ASRIER ,0x0000 }, + {REG_ASRCNCR ,0x0000 }, {REG_ASRCFG ,0x0000 }, + {REG_ASRCSR ,0x0000 }, {REG_ASRCDR1 ,0x0000 }, + {REG_ASRCDR2 ,0x0000 }, {REG_ASRSTR ,0x0000 }, + {REG_ASRRA ,0x0000 }, {REG_ASRRB ,0x0000 }, + {REG_ASRRC ,0x0000 }, {REG_ASRPM1 ,0x0000 }, + {REG_ASRPM2 ,0x0000 }, {REG_ASRPM3 ,0x0000 }, + {REG_ASRPM4 ,0x0000 }, {REG_ASRPM5 ,0x0000 }, + {REG_ASRTFR1 ,0x0000 }, {REG_ASRCCR ,0x0000 }, + {REG_ASRDIA ,0x0000 }, {REG_ASRDOA ,0x0000 }, + {REG_ASRDIB ,0x0000 }, {REG_ASRDOB ,0x0000 }, + {REG_ASRDIC ,0x0000 }, {REG_ASRDOC ,0x0000 }, + {REG_ASRIDRHA ,0x0000 }, {REG_ASRIDRLA ,0x0000 }, + {REG_ASRIDRHB ,0x0000 }, {REG_ASRIDRLB ,0x0000 }, + {REG_ASRIDRHC ,0x0000 }, {REG_ASRIDRLC ,0x0000 }, + {REG_ASR76K ,0x0A47 }, {REG_ASR56K ,0x0DF3 }, + {REG_ASRMCRA ,0x0000 }, {REG_ASRFSTA ,0x0000 }, + {REG_ASRMCRB ,0x0000 }, {REG_ASRFSTB ,0x0000 }, + {REG_ASRMCRC ,0x0000 }, {REG_ASRFSTC ,0x0000 }, + {REG_ASRMCR1A ,0x0000 }, {REG_ASRMCR1B ,0x0000 }, + {REG_ASRMCR1C ,0x0000 }, +}; +static const struct regmap_config fsl_asrc_regmap_config = { .reg_bits =32 , .reg_stride =4 , .val_bits =32 , .max_register =REG_ASRMCR1C , + .reg_defaults = fsl_asrc_reg, + .num_reg_defaults =ARRAY_SIZE (fsl_asrc_reg), .readable_reg = fsl_asrc_readable_reg, .volatile_reg = fsl_asrc_volatile_reg, .writeable_reg = fsl_asrc_writeable_reg,
sound/soc/rockchip/rockchip_i2s.c +3 -1
@@ -154,8 +154,10 @@ static void rockchip_snd_rxctrl(struct rk_i2s_dev *i2s, int on)while (val) {regmap_read (i2s->regmap,I2S_CLR , &val); retry--; -if (!retry) +if (!retry) {dev_warn (i2s->dev,"fail to clear\n" ); +break ; + } } } }
sound/soc/samsung/snow.c +1 -0
@@ -110,6 +110,7 @@ static const struct of_device_id snow_of_match[] = { { .compatible = "google,snow-audio-max98095", }, {}, }; +MODULE_DEVICE_TABLE (of, snow_of_match);static struct platform_driver snow_driver = { .driver = {
sound/soc/sh/fsi.c +1 -2
@@ -1711,8 +1711,7 @@ static const struct snd_soc_dai_ops fsi_dai_ops = {static struct snd_pcm_hardware fsi_pcm_hardware = { .info =SNDRV_PCM_INFO_INTERLEAVED |SNDRV_PCM_INFO_MMAP | -SNDRV_PCM_INFO_MMAP_VALID | -SNDRV_PCM_INFO_PAUSE , +SNDRV_PCM_INFO_MMAP_VALID , .buffer_bytes_max =64 *1024 , .period_bytes_min =32 , .period_bytes_max =8192 ,
sound/soc/sh/rcar/core.c +1 -2
@@ -886,8 +886,7 @@ static int rsnd_dai_probe(struct platform_device *pdev,static struct snd_pcm_hardware rsnd_pcm_hardware = { .info =SNDRV_PCM_INFO_INTERLEAVED |SNDRV_PCM_INFO_MMAP | -SNDRV_PCM_INFO_MMAP_VALID | -SNDRV_PCM_INFO_PAUSE , +SNDRV_PCM_INFO_MMAP_VALID , .buffer_bytes_max =64 *1024 , .period_bytes_min =32 , .period_bytes_max =8192 ,
sound/soc/soc-core.c +1 -1
@@ -884,7 +884,7 @@ static struct snd_soc_dai *snd_soc_find_dai(list_for_each_entry (component, &component_list, list) {if (dlc->of_node && component->dev->of_node != dlc->of_node)continue ; -if (dlc->name &&strcmp (dev_name (component->dev), dlc->name)) +if (dlc->name &&strcmp (component->name, dlc->name))continue ;list_for_each_entry (dai, &component->dai_list, list) {if (dlc->dai_name &&strcmp (dai->name, dlc->dai_name))
sound/soc/soc-pcm.c +56 -16
173 lines not on this page · raw message
sound/usb/mixer.c +4 -3
@@ -2033,10 +2033,11 @@ static int parse_audio_selector_unit(struct mixer_build *state, int unitid, cval->res =1 ; cval->initialized =1 ; -if (desc->bDescriptorSubtype ==UAC2_CLOCK_SELECTOR ) - cval->control =UAC2_CX_CLOCK_SELECTOR ; -else +if (state->mixer->protocol ==UAC_VERSION_1 ) cval->control =0 ; +else /* UAC_VERSION_2 */ + cval->control = (desc->bDescriptorSubtype ==UAC2_CLOCK_SELECTOR ) ? +UAC2_CX_CLOCK_SELECTOR :UAC2_SU_SELECTOR ; namelist =kmalloc (sizeof (char *) * desc->bNrInPins,GFP_KERNEL );if (!namelist) {
sound/usb/quirks.c +14 -0
@@ -1146,6 +1146,20 @@ void snd_usb_ctl_msg_quirk(struct usb_device *dev, unsigned int pipe,if ((le16_to_cpu (dev->descriptor.idVendor) ==0x23ba ) && (requesttype &USB_TYPE_MASK ) ==USB_TYPE_CLASS )mdelay (20 ); + +/* Marantz/Denon devices with USB DAC functionality need a delay +* after each class compliant request +*/ +if ((le16_to_cpu (dev->descriptor.idVendor) ==0x154e ) && + (requesttype &USB_TYPE_MASK ) ==USB_TYPE_CLASS ) { + +switch (le16_to_cpu (dev->descriptor.idProduct)) { +case 0x3005 :/* Marantz HD-DAC1 */ +case 0x3006 :/* Marantz SA-14S1 */ +mdelay (20 ); +break ; + } + } }/*