sound fixes for v3.10-rc1
Linus,
please pull sound fixes for v3.10-rc1 from:
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-3.10
The topmost commit is 6c35ae3c327ef4b5f51d3428d2ba47ac2153e882
----------------------------------------------------------------
sound fixes for v3.10-rc1
This contains small fixes since the previous pull request:
- A few regression fixes and small updates of HD-audio
- Yet another fix for Haswell HDMI audio
- A copule of trivial fixes in ASoC McASP, DPAM and WM8994
----------------------------------------------------------------
Dan Carpenter (1):
ASoC: wm8994: missing break in wm8994_aif3_hw_params()
David Henningsson (1):
ALSA: Add comment for control TLV API
Fabio Baltieri (1):
ASoC: dapm: use clk_prepare_enable and clk_disable_unprepare
Marek Belisko (2):
ASoC: McASP: Add pins output direction for rx clocks when configured in CBS_CFS format
ASoC: McASP: Fix receive clock polarity in DAIFMT_NB_NF mode.
Mike Travis (1):
ALSA: hda - Fix system panic when DMA > 40 bits for Nvidia audio controllers
Sachin Kamat (3):
ALSA: atmel: Remove redundant platform_set_drvdata()
ALSA: mips/hal2: Remove redundant platform_set_drvdata()
ALSA: mips/sgio2audio: Remove redundant platform_set_drvdata()
Takashi Iwai (4):
sound: Fix make allmodconfig on MIPS
ALSA: hda - Fix 3.9 regression of EAPD init on Conexant codecs
ALSA: hda - Apply pin-enablement workaround to all Haswell HDMI codecs Revert "ALSA: hda - Don't set up active streams twice"
Wang YanQing (1):
ALSA: HDA: Fix Oops caused by dereference NULL pointer
--- include/sound/tlv.h | 6 ++++- sound/atmel/abdac.c | 2 -- sound/atmel/ac97c.c | 2 -- sound/mips/hal2.c | 1 - sound/mips/sgio2audio.c | 1 - sound/oss/Kconfig | 1 + sound/pci/hda/hda_codec.c | 7 +++-- sound/pci/hda/hda_intel.c | 2 +- sound/pci/hda/patch_conexant.c | 17 +++++++++--- sound/pci/hda/patch_hdmi.c | 54 ++++++++++++++++----------------------- sound/soc/codecs/wm8994.c | 1 + sound/soc/davinci/davinci-mcasp.c | 7 +++-- sound/soc/soc-dapm.c | 4 +-- 13 files changed, 56 insertions(+), 49 deletions(-)
include/sound/tlv.h +5 -1
@@ -74,7 +74,11 @@#define DECLARE_TLV_DB_LINEAR (name, min_dB, max_dB) \ unsigned int name[] = { TLV_DB_LINEAR_ITEM(min_dB, max_dB) } -/* dB range container */ +/* dB range container: +* Items in dB range container must be ordered by their values and by their +* dB values. This implies that larger values must correspond with larger +* dB values (which is also required for all other mixer controls). +*/ /* Each item is: <min> <max> <TLV> */ #define TLV_DB_RANGE_ITEM (...) \ TLV_ITEM(SNDRV_CTL_TLVT_DB_RANGE, __VA_ARGS__)
sound/atmel/abdac.c +0 -2
@@ -583,8 +583,6 @@ static int atmel_abdac_remove(struct platform_device *pdev)free_irq (dac->irq, dac);snd_card_free (card); -platform_set_drvdata (pdev,NULL ); -return 0 ; }
sound/atmel/ac97c.c +0 -2
@@ -1199,8 +1199,6 @@ static int atmel_ac97c_remove(struct platform_device *pdev)snd_card_set_dev (card,NULL );snd_card_free (card); -platform_set_drvdata (pdev,NULL ); -return 0 ; }
sound/mips/hal2.c +0 -1
@@ -922,7 +922,6 @@ static int hal2_remove(struct platform_device *pdev)struct snd_card *card =platform_get_drvdata (pdev);snd_card_free (card); -platform_set_drvdata (pdev,NULL );return 0 ; }
sound/mips/sgio2audio.c +0 -1
@@ -963,7 +963,6 @@ static int snd_sgio2audio_remove(struct platform_device *pdev)struct snd_card *card =platform_get_drvdata (pdev);snd_card_free (card); -platform_set_drvdata (pdev,NULL );return 0 ; }
sound/oss/Kconfig +1 -0
@@ -250,6 +250,7 @@ config MSND_FIFOSIZE menuconfig SOUND_OSS tristate "OSS sound modules" depends on ISA_DMA_API && VIRT_TO_BUS + depends on !ISA_DMA_SUPPORT_BROKEN help OSS is the Open Sound System suite of sound card drivers. They make sound programming easier since they provide a common API. Say Y or
sound/pci/hda/hda_codec.c +5 -2
@@ -681,6 +681,9 @@ int snd_hda_queue_unsol_event(struct hda_bus *bus, u32 res, u32 res_ex)struct hda_bus_unsolicited *unsol;unsigned int wp; +if (!bus || !bus->workq) +return 0 ; +trace_hda_unsol_event (bus, res, res_ex); unsol = bus->unsol;if (!unsol)
@@ -1580,7 +1583,7 @@ void snd_hda_codec_setup_stream(struct hda_codec *codec, hda_nid_t nid,"NID=0x%x, stream=0x%x, channel=%d, format=0x%x\n" , nid, stream_tag, channel_id, format); p =get_hda_cvt_setup (codec, nid); -if (!p || p->active) +if (!p)return ;if (codec->pcm_format_first)
@@ -1627,7 +1630,7 @@ void __snd_hda_codec_cleanup_stream(struct hda_codec *codec, hda_nid_t nid,snd_printdd ("hda_codec_cleanup_stream: NID=0x%x\n" , nid); p =get_hda_cvt_setup (codec, nid); -if (p && p->active) { +if (p) {/* here we just clear the active flag when do_now isn't set; * actual clean-ups will be done later in * purify_inactive_streams() called from snd_hda_codec_prpapre()
sound/pci/hda/hda_intel.c +1 -1
@@ -615,7 +615,7 @@ enum {/* quirks for Nvidia */ #define AZX_DCAPS_PRESET_NVIDIA \ (AZX_DCAPS_NVIDIA_SNOOP | AZX_DCAPS_RIRB_DELAY | AZX_DCAPS_NO_MSI |\ - AZX_DCAPS_ALIGN_BUFSIZE) + AZX_DCAPS_ALIGN_BUFSIZE | AZX_DCAPS_NO_64BIT)#define AZX_DCAPS_PRESET_CTHDA \ (AZX_DCAPS_NO_MSI | AZX_DCAPS_POSFIX_LPIB | AZX_DCAPS_4K_BDLE_BOUNDARY)
sound/pci/hda/patch_conexant.c +14 -3
@@ -64,6 +64,7 @@ struct conexant_spec {/* extra EAPD pins */ unsigned int num_eapds;hda_nid_t eapds[4 ]; +bool dynamic_eapd;#ifdef ENABLE_CXT_STATIC_QUIRKS const struct snd_kcontrol_new *mixers[5 ];
@@ -3155,7 +3156,7 @@ static void cx_auto_parse_eapd(struct hda_codec *codec)* thus it might control over all pins. */ if (spec->num_eapds >2 ) - spec->gen.own_eapd_ctl =1 ; + spec->dynamic_eapd =1 ; } static void cx_auto_turn_eapd(struct hda_codec *codec, int num_pins,
@@ -3194,10 +3195,19 @@ static int cx_auto_build_controls(struct hda_codec *codec)return 0 ; } +static int cx_auto_init (struct hda_codec *codec) +{ +struct conexant_spec *spec = codec->spec; +snd_hda_gen_init (codec); +if (!spec->dynamic_eapd) +cx_auto_turn_eapd (codec, spec->num_eapds, spec->eapds, true); +return 0 ; +} +static const struct hda_codec_ops cx_auto_patch_ops = { .build_controls = cx_auto_build_controls, .build_pcms = snd_hda_gen_build_pcms, - .init = snd_hda_gen_init, + .init = cx_auto_init, .free = snd_hda_gen_free, .unsol_event = snd_hda_jack_unsol_event, #ifdef CONFIG_PM
@@ -3348,7 +3358,8 @@ static int patch_conexant_auto(struct hda_codec *codec)cx_auto_parse_beep (codec);cx_auto_parse_eapd (codec); -if (spec->gen.own_eapd_ctl) + spec->gen.own_eapd_ctl =1 ; +if (spec->dynamic_eapd) spec->gen.vmaster_mute.hook = cx_auto_vmaster_hook;switch (codec->vendor_id) {
sound/pci/hda/patch_hdmi.c +22 -32
89 lines not on this page · raw message
sound/soc/codecs/wm8994.c +1 -0
@@ -2882,6 +2882,7 @@ static int wm8994_aif3_hw_params(struct snd_pcm_substream *substream,default :return 0 ; } +break ;default :return 0 ; }
sound/soc/davinci/davinci-mcasp.c +5 -2
@@ -505,7 +505,10 @@ static int davinci_mcasp_set_dai_fmt(struct snd_soc_dai *cpu_dai,mcasp_set_bits (base +DAVINCI_MCASP_ACLKRCTL_REG ,ACLKRE );mcasp_set_bits (base +DAVINCI_MCASP_RXFMCTL_REG ,AFSRE ); -mcasp_set_bits (base +DAVINCI_MCASP_PDIR_REG ,ACLKX |AFSX ); +mcasp_set_bits (base +DAVINCI_MCASP_PDIR_REG , +ACLKX |ACLKR ); +mcasp_set_bits (base +DAVINCI_MCASP_PDIR_REG , +AFSX |AFSR );break ;case SND_SOC_DAIFMT_CBM_CFS :/* codec is clock master and frame slave */
@@ -565,7 +568,7 @@ static int davinci_mcasp_set_dai_fmt(struct snd_soc_dai *cpu_dai,mcasp_set_bits (base +DAVINCI_MCASP_ACLKXCTL_REG ,ACLKXPOL );mcasp_clr_bits (base +DAVINCI_MCASP_TXFMCTL_REG ,FSXPOL ); -mcasp_clr_bits (base +DAVINCI_MCASP_ACLKRCTL_REG ,ACLKRPOL ); +mcasp_set_bits (base +DAVINCI_MCASP_ACLKRCTL_REG ,ACLKRPOL );mcasp_clr_bits (base +DAVINCI_MCASP_RXFMCTL_REG ,FSRPOL );break ;
sound/soc/soc-dapm.c +2 -2
@@ -1095,9 +1095,9 @@ int dapm_clock_event(struct snd_soc_dapm_widget *w,#ifdef CONFIG_HAVE_CLK if (SND_SOC_DAPM_EVENT_ON (event)) { -return clk_enable (w->clk); +return clk_prepare_enable (w->clk); }else { -clk_disable (w->clk); +clk_disable_unprepare (w->clk);return 0 ; }#endif