sound fixes for 5.10-rc5
Subsystems (7)
Linus,
please pull sound fixes for v5.10-rc5 from:
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-5.10-rc5
The topmost commit is aecd1fbe7784e75226682afe7a9c3a34af35aa3e
----------------------------------------------------------------
sound fixes for 5.10-rc5
A collection of small fixes: the only core change is a minor error code handling in the control API, and all the rest are device-specific fixes, mostly quirks, fixups and ASoC Intel fixes.
It looks boring, and good so.
----------------------------------------------------------------
Cezary Rojewski (2):
ASoC: Intel: catpt: Skip position update for unprepared streams
ASoC: Intel: catpt: Correct clock selection for dai trigger
Dan Carpenter (1):
ALSA: firewire: Clean up a locking issue in copy_resp_to_buf()
Guenter Roeck (1):
ASOC: Intel: kbl_rt5663_rt5514_max98927: Do not try to disable disabled clock
Jack Yu (1):
ASoC: rt1015: add delay to fix pop noise from speaker
Joakim Tjernlund (1):
ALSA: usb-audio: Add delay quirk for all Logitech USB devices
Kai Vehmanen (1):
ALSA: hda: Add Alderlake-S PCI ID and HDMI codec vid
Kai-Heng Feng (1):
ALSA: usb-audio: Use ALC1220-VB-DT mapping for ASUS ROG Strix TRX40 mobo
Kailang Yang (3):
ALSA: hda/realtek - Add supported for Lenovo ThinkPad Headset Button
ALSA: hda/realtek - Add supported mute Led for HP
ALSA: hda/realtek - HP Headset Mic can't detect after boot
Michael Sit Wei Hong (1):
ASoC: Intel: KMB: Fix S24_LE configuration
PeiSen Hou (1):
ALSA: hda/realtek: Add some Clove SSID in the ALC293(ALC1220)
Shuming Fan (1):
ASoC: rt1015: increase the time to detect BCLK
Srinivasa Rao Mandadapu (1):
ASoC: qcom: lpass-platform: Fix memory leak
Takashi Iwai (2):
ALSA: hda/ca0132: Fix compile warning without PCI
ALSA: mixart: Fix mutex deadlock
Takashi Sakamoto (1):
ALSA: ctl: fix error path at adding user-defined element set
--- Documentation/devicetree/bindings/sound/rt1015.txt | 6 ++ include/sound/rt1015.h | 15 ++++ sound/core/control.c | 2 +- sound/firewire/fireworks/fireworks_transaction.c | 4 +- sound/pci/hda/hda_intel.c | 3 + sound/pci/hda/patch_ca0132.c | 2 + sound/pci/hda/patch_hdmi.c | 1 + sound/pci/hda/patch_realtek.c | 85 +++++++++++++++++++++- sound/pci/mixart/mixart_core.c | 5 +- sound/soc/codecs/rt1015.c | 22 +++++- sound/soc/codecs/rt1015.h | 2 + .../soc/intel/boards/kbl_rt5663_rt5514_max98927.c | 2 + sound/soc/intel/catpt/pcm.c | 9 +-- sound/soc/intel/keembay/kmb_platform.c | 6 +- sound/soc/qcom/lpass-platform.c | 5 +- sound/usb/card.c | 4 + sound/usb/mixer_maps.c | 3 +- sound/usb/quirks.c | 10 +-- 18 files changed, 163 insertions(+), 23 deletions(-) create mode 100644 include/sound/rt1015.h
Documentation/devicetree/bindings/sound/rt1015.txt +6 -0
@@ -8,10 +8,16 @@ Required properties: - reg : The I2C address of the device. +Optional properties: + +- realtek,power-up-delay-ms + Set a delay time for flush work to be completed, + this value is adjustable depending on platform. Example: rt1015: codec@28 { compatible = "realtek,rt1015"; reg = <0x28>; + realtek,power-up-delay-ms = <50>; };
include/sound/rt1015.h new file +15 -0
@@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* +* linux/sound/rt1015.h -- Platform data for RT1015 +* +* Copyright 2020 Realtek Microelectronics +*/ + +#ifndef __LINUX_SND_RT1015_H +#define __LINUX_SND_RT1015_H + +struct rt1015_platform_data { +unsigned int power_up_delay_ms; +}; + +#endif
sound/core/control.c +1 -1
@@ -1539,7 +1539,7 @@ static int snd_ctl_elem_add(struct snd_ctl_file *file, unlock:up_write (&card->controls_rwsem); -return 0 ; +return err; } static int snd_ctl_elem_add_user(struct snd_ctl_file *file,
sound/firewire/fireworks/fireworks_transaction.c +2 -2
@@ -123,7 +123,7 @@ copy_resp_to_buf(struct snd_efw *efw, void *data, size_t length, int *rcode) t = (struct snd_efw_transaction *)data; length =min_t (size_t,be32_to_cpu (t->length) *sizeof (u32), length); -spin_lock_irq (&efw->lock); +spin_lock (&efw->lock);if (efw->push_ptr < efw->pull_ptr) capacity = (unsigned int )(efw->pull_ptr - efw->push_ptr);
@@ -190,7 +190,7 @@ handle_resp_for_user(struct fw_card *card, int generation, int source,copy_resp_to_buf (efw, data, length, rcode); end: -spin_unlock_irq (&instances_lock); +spin_unlock (&instances_lock); } static void
sound/pci/hda/hda_intel.c +3 -0
@@ -2506,6 +2506,9 @@ static const struct pci_device_id azx_ids[] = {/* DG1 */ { PCI_DEVICE(0x8086, 0x490d), .driver_data = AZX_DRIVER_SKL | AZX_DCAPS_INTEL_SKYLAKE}, + /* Alderlake-S */ + { PCI_DEVICE(0x8086, 0x7ad0), + .driver_data = AZX_DRIVER_SKL | AZX_DCAPS_INTEL_SKYLAKE}, /* Elkhart Lake */ { PCI_DEVICE(0x8086, 0x4b55), .driver_data = AZX_DRIVER_SKL | AZX_DCAPS_INTEL_SKYLAKE},
sound/pci/hda/patch_ca0132.c +2 -0
@@ -9183,6 +9183,8 @@ static void ca0132_mmio_init(struct hda_codec *codec)case QUIRK_AE5 :ca0132_mmio_init_ae5 (codec);break ; +default : +break ; } }
sound/pci/hda/patch_hdmi.c +1 -0
@@ -4274,6 +4274,7 @@ HDA_CODEC_ENTRY(0x8086280d, "Geminilake HDMI", patch_i915_glk_hdmi),HDA_CODEC_ENTRY (0x8086280f ,"Icelake HDMI" , patch_i915_icl_hdmi),HDA_CODEC_ENTRY (0x80862812 ,"Tigerlake HDMI" , patch_i915_tgl_hdmi),HDA_CODEC_ENTRY (0x80862814 ,"DG1 HDMI" , patch_i915_tgl_hdmi), +HDA_CODEC_ENTRY (0x80862815 ,"Alderlake HDMI" , patch_i915_tgl_hdmi),HDA_CODEC_ENTRY (0x80862816 ,"Rocketlake HDMI" , patch_i915_tgl_hdmi),HDA_CODEC_ENTRY (0x8086281a ,"Jasperlake HDMI" , patch_i915_icl_hdmi), HDA_CODEC_ENTRY(0x8086281b, "Elkhartlake HDMI", patch_i915_icl_hdmi),
sound/pci/hda/patch_realtek.c +84 -1
150 lines not on this page · raw message
sound/pci/mixart/mixart_core.c +2 -3
@@ -70,7 +70,6 @@ static int get_msg(struct mixart_mgr *mgr, struct mixart_msg *resp,unsigned int i;#endif -mutex_lock (&mgr->msg_lock); err =0 ;/* copy message descriptor from miXart to driver */
@@ -119,8 +118,6 @@ static int get_msg(struct mixart_mgr *mgr, struct mixart_msg *resp,writel_be (headptr,MIXART_MEM (mgr,MSG_OUTBOUND_FREE_HEAD )); _clean_exit: -mutex_unlock (&mgr->msg_lock); -return err; }
@@ -258,7 +255,9 @@ int snd_mixart_send_msg(struct mixart_mgr *mgr, struct mixart_msg *request, int resp.data = resp_data; resp.size = max_resp_size; +mutex_lock (&mgr->msg_lock); err =get_msg (mgr, &resp, msg_frame); +mutex_unlock (&mgr->msg_lock);if ( request->message_id != resp.message_id )dev_err (&mgr->pci->dev,"RESPONSE ERROR!\n" );
sound/soc/codecs/rt1015.c +21 -1
@@ -27,10 +27,15 @@#include <sound/soc-dapm.h> #include <sound/soc.h> #include <sound/tlv.h> +#include <sound/rt1015.h> #include "rl6231.h" #include "rt1015.h" +static const struct rt1015_platform_data i2s_default_platform_data = { + .power_up_delay_ms =50 , +}; +static const struct reg_default rt1015_reg[] = { {0x0000 ,0x0000 }, {0x0004 ,0xa000 },
@@ -539,7 +544,7 @@ static void rt1015_flush_work(struct work_struct *work) struct rt1015_priv *rt1015 = container_of(work, struct rt1015_priv, flush_work.work);struct snd_soc_component *component = rt1015->component; -unsigned int val, i =0 , count =20 ; +unsigned int val, i =0 , count =200 ;while (i < count) {usleep_range (1000 ,1500 );
@@ -650,6 +655,7 @@ static int rt1015_amp_drv_event(struct snd_soc_dapm_widget *w,case SND_SOC_DAPM_POST_PMU :if (rt1015->hw_config ==RT1015_HW_28 )schedule_delayed_work (&rt1015->flush_work,msecs_to_jiffies (10 )); +msleep (rt1015->pdata.power_up_delay_ms);break ;default :break ;
@@ -1067,9 +1073,16 @@ static struct acpi_device_id rt1015_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, rt1015_acpi_match);#endif +static void rt1015_parse_dt (struct rt1015_priv *rt1015,struct device *dev) +{ +device_property_read_u32 (dev,"realtek,power-up-delay-ms" , + &rt1015->pdata.power_up_delay_ms); +} +static int rt1015_i2c_probe (struct i2c_client *i2c,const struct i2c_device_id *id) { +struct rt1015_platform_data *pdata =dev_get_platdata (&i2c->dev);struct rt1015_priv *rt1015;int ret;unsigned int val;
@@ -1081,6 +1094,13 @@ static int rt1015_i2c_probe(struct i2c_client *i2c,i2c_set_clientdata (i2c, rt1015); + rt1015->pdata = i2s_default_platform_data; + +if (pdata) + rt1015->pdata = *pdata; +else +rt1015_parse_dt (rt1015, &i2c->dev); + rt1015->regmap =devm_regmap_init_i2c (i2c, &rt1015_regmap);if (IS_ERR (rt1015->regmap)) { ret =PTR_ERR (rt1015->regmap);
sound/soc/codecs/rt1015.h +2 -0
@@ -12,6 +12,7 @@#ifndef __RT1015_H__#define __RT1015_H__ +#include <sound/rt1015.h> #define RT1015_DEVICE_ID_VAL 0x1011#define RT1015_DEVICE_ID_VAL2 0x1015
@@ -380,6 +381,7 @@ enum {struct rt1015_priv {struct snd_soc_component *component; +struct rt1015_platform_data pdata;struct regmap *regmap;int sysclk;int sysclk_src;
sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c +2 -0
@@ -700,6 +700,8 @@ static int kabylake_set_bias_level(struct snd_soc_card *card,switch (level) {case SND_SOC_BIAS_PREPARE :if (dapm->bias_level ==SND_SOC_BIAS_ON ) { +if (!__clk_is_enabled (priv->mclk)) +return 0 ;dev_dbg (card->dev,"Disable mclk" );clk_disable_unprepare (priv->mclk); }else {
sound/soc/intel/catpt/pcm.c +4 -5
@@ -458,10 +458,6 @@ static int catpt_dai_prepare(struct snd_pcm_substream *substream,if (ret)return CATPT_IPC_ERROR (ret); - ret =catpt_dsp_update_lpclock (cdev); -if (ret) -return ret; - ret =catpt_dai_apply_usettings (dai, stream);if (ret)return ret;
@@ -500,6 +496,7 @@ static int catpt_dai_trigger(struct snd_pcm_substream *substream, int cmd,case SNDRV_PCM_TRIGGER_RESUME :case SNDRV_PCM_TRIGGER_PAUSE_RELEASE : resume_stream: +catpt_dsp_update_lpclock (cdev); ret =catpt_ipc_resume_stream (cdev, stream->info.stream_hw_id);if (ret)return CATPT_IPC_ERROR (ret);
@@ -507,11 +504,11 @@ static int catpt_dai_trigger(struct snd_pcm_substream *substream, int cmd,case SNDRV_PCM_TRIGGER_STOP : stream->prepared = false; -catpt_dsp_update_lpclock (cdev); fallthrough;case SNDRV_PCM_TRIGGER_SUSPEND :case SNDRV_PCM_TRIGGER_PAUSE_PUSH : ret =catpt_ipc_pause_stream (cdev, stream->info.stream_hw_id); +catpt_dsp_update_lpclock (cdev);if (ret)return CATPT_IPC_ERROR (ret);break ;
@@ -534,6 +531,8 @@ void catpt_stream_update_position(struct catpt_dev *cdev, dsppos =bytes_to_frames (r, pos->stream_position); +if (!stream->prepared) + goto exit;/* only offload is set_write_pos driven */ if (stream->template->type !=CATPT_STRM_TYPE_RENDER ) goto exit;
sound/soc/intel/keembay/kmb_platform.c +3 -3
@@ -487,9 +487,9 @@ static int kmb_dai_hw_params(struct snd_pcm_substream *substream, kmb_i2s->xfer_resolution =0x02 ;break ;case SNDRV_PCM_FORMAT_S24_LE : - config->data_width =24 ; - kmb_i2s->ccr =0x08 ; - kmb_i2s->xfer_resolution =0x04 ; + config->data_width =32 ; + kmb_i2s->ccr =0x14 ; + kmb_i2s->xfer_resolution =0x05 ;break ;case SNDRV_PCM_FORMAT_S32_LE : config->data_width =32 ;
sound/soc/qcom/lpass-platform.c +4 -1
@@ -122,8 +122,10 @@ static int lpass_platform_pcmops_open(struct snd_soc_component *component,else dma_ch =0 ; -if (dma_ch <0 ) +if (dma_ch <0 ) { +kfree (data);return dma_ch; + }if (cpu_dai->driver->id ==LPASS_DP_RX ) { map = drvdata->hdmiif_map;
@@ -147,6 +149,7 @@ static int lpass_platform_pcmops_open(struct snd_soc_component *component, ret =snd_pcm_hw_constraint_integer (runtime,SNDRV_PCM_HW_PARAM_PERIODS );if (ret <0 ) { +kfree (data);dev_err (soc_runtime->dev,"setting constraints failed: %d\n" , ret);return -EINVAL ;
sound/usb/card.c +4 -0
@@ -379,6 +379,10 @@ static const struct usb_audio_device_name usb_audio_names[] = {DEVICE_NAME (0x046d ,0x0990 ,"Logitech, Inc." ,"QuickCam Pro 9000" ), +/* ASUS ROG Strix */ +PROFILE_NAME (0x0b05 ,0x1917 , +"Realtek" ,"ALC1220-VB-DT" ,"Realtek-ALC1220-VB-Desktop" ), +/* Dell WD15 Dock */ PROFILE_NAME(0x0bda, 0x4014, "Dell", "WD15 Dock", "Dell-WD15-Dock"),/* Dell WD19 Dock */
sound/usb/mixer_maps.c +2 -1
@@ -561,7 +561,8 @@ static const struct usbmix_ctl_map usbmix_ctl_maps[] = { }, {/* ASUS ROG Strix */ .id = USB_ID(0x0b05, 0x1917), - .map = asus_rog_map, + .map = trx40_mobo_map, + .connector_map = trx40_mobo_connector_map, }, {/* MSI TRX40 Creator */ .id = USB_ID(0x0db0, 0x0d64),
sound/usb/quirks.c +5 -5
@@ -1672,13 +1672,13 @@ void snd_usb_ctl_msg_quirk(struct usb_device *dev, unsigned int pipe, && (requesttype & USB_TYPE_MASK) == USB_TYPE_CLASS)msleep (20 ); -/* Zoom R16/24, Logitech H650e/H570e, Jabra 550a, Kingston HyperX -* needs a tiny delay here, otherwise requests like get/set -* frequency return as failed despite actually succeeding. +/* Zoom R16/24, many Logitech(at least H650e/H570e/BCC950), +* Jabra 550a, Kingston HyperX needs a tiny delay here, +* otherwise requests like get/set frequency return +* as failed despite actually succeeding. */ if ((chip->usb_id ==USB_ID (0x1686 ,0x00dd ) || - chip->usb_id ==USB_ID (0x046d ,0x0a46 ) || - chip->usb_id ==USB_ID (0x046d ,0x0a56 ) || +USB_ID_VENDOR (chip->usb_id) ==0x046d ||/* Logitech */ chip->usb_id ==USB_ID (0x0b0e ,0x0349 ) || chip->usb_id ==USB_ID (0x0951 ,0x16ad )) && (requesttype &USB_TYPE_MASK ) ==USB_TYPE_CLASS )
The pull request you sent on Fri, 20 Nov 2020 09:36:39 +0100:
The pull request you sent on Fri, 20 Nov 2020 09:36:39 +0100:
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.gittags/sound-5.10-rc5
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/e65b30951e50708cb306eb75231329a3a3029a7d
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html