[PATCH 6/8] ASoC: sunxi: sun4i-spdif: fix kernel-doc

2020-07-02 Thread Pierre-Louis Bossart
Fix W=1 warning - typo in field description Signed-off-by: Pierre-Louis Bossart --- sound/soc/sunxi/sun4i-spdif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/sunxi/sun4i-spdif.c b/sound/soc/sunxi/sun4i-spdif.c index 86779a99df75..326dd45e39da 100644 --- a/sound

[PATCH 4/8] ASoC: qcom: q6asm: fix kernel-doc

2020-07-02 Thread Pierre-Louis Bossart
Fix W=1 warning - missing parameter description Signed-off-by: Pierre-Louis Bossart --- sound/soc/qcom/qdsp6/q6asm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/qcom/qdsp6/q6asm.c b/sound/soc/qcom/qdsp6/q6asm.c index ae4b2cabdf2d..d67b23a5f397 100644

[PATCH 7/8] ASoC: tegra: tegra20_das: remove always-true comparison

2020-07-02 Thread Pierre-Louis Bossart
Fix W=1 warning: sound/soc//tegra/tegra20_das.c:101:11: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits] 101 | if ((reg >= TEGRA20_DAS_DAP_CTRL_SEL) && | ^~ Signed-off-by: Pierre-Louis Bossart --- sound/soc/tegra/tegra20_das.c |

[PATCH 8/8] ASoC: uniphier: aio-core: fix kernel-doc

2020-07-02 Thread Pierre-Louis Bossart
Fix W=1 warning - wrong parameter description and bad format Signed-off-by: Pierre-Louis Bossart --- sound/soc/uniphier/aio-core.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sound/soc/uniphier/aio-core.c b/sound/soc/uniphier/aio-core.c index 9bcba06ba52e

[PATCH 5/8] ASoC: sunxi: sun4i-i2s: fix kernel-doc

2020-07-02 Thread Pierre-Louis Bossart
Fix W=1 warnings - missing fields in description Signed-off-by: Pierre-Louis Bossart --- sound/soc/sunxi/sun4i-i2s.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sound/soc/sunxi/sun4i-i2s.c b/sound/soc/sunxi/sun4i-i2s.c index d0a8d5810c0a..f23ff29e7c1d 100644

[PATCH 3/8] ASoC: samsung: pcm: fix kernel-doc

2020-07-02 Thread Pierre-Louis Bossart
Fix W=1 warnings - missing fields in structure Signed-off-by: Pierre-Louis Bossart --- sound/soc/samsung/pcm.c | 5 + 1 file changed, 5 insertions(+) diff --git a/sound/soc/samsung/pcm.c b/sound/soc/samsung/pcm.c index a5b1a12b3496..86eefbc89e9e 100644 --- a/sound/soc/samsung/pcm.c +++ b

[PATCH 2/8] ASoC: samsung: spdif: fix kernel-doc

2020-07-02 Thread Pierre-Louis Bossart
Fix W=1 warnings - typos with structure fields Signed-off-by: Pierre-Louis Bossart --- sound/soc/samsung/spdif.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/samsung/spdif.c b/sound/soc/samsung/spdif.c index 759fc6644329..4ae7ff623b82 100644 --- a/sound

[PATCH 1/8] ASoC: atmel: fix kernel-doc

2020-07-02 Thread Pierre-Louis Bossart
Fix W=1 warning Kernel-doc is not used in one file and missing argument in the second. Signed-off-by: Pierre-Louis Bossart --- sound/soc/atmel/atmel-pcm-dma.c | 2 +- sound/soc/atmel/atmel_ssc_dai.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/atmel/atmel-pcm

[PATCH 4/6] ASoC: amd: raven: acp3x-i2s: fix 'set but not used' warning

2020-07-02 Thread Pierre-Louis Bossart
Fix W=1 warning. the card variable is useless here Signed-off-by: Pierre-Louis Bossart --- sound/soc/amd/raven/acp3x-i2s.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/soc/amd/raven/acp3x-i2s.c b/sound/soc/amd/raven/acp3x-i2s.c index 14607563abd2..a0e14cc91d95 100644 --- a/sound

[PATCH 5/6] ASoC: amd: raven: acp3x-pcm-dma: remove unused-but-set variable

2020-07-02 Thread Pierre-Louis Bossart
Fix W=1 warning. The variable prtd is not used, remove. Signed-off-by: Pierre-Louis Bossart --- sound/soc/amd/raven/acp3x-pcm-dma.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/soc/amd/raven/acp3x-pcm-dma.c b/sound/soc/amd/raven/acp3x-pcm-dma.c index 1f0fe5aaab1d..17290c829c4b

[PATCH 6/6] ASoC: amd: raven: acp3x-i2s: remove unused-but-set variable

2020-07-02 Thread Pierre-Louis Bossart
Fix W=1 warning. The variable prtd is set but not used. Signed-off-by: Pierre-Louis Bossart --- sound/soc/amd/raven/acp3x-i2s.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/soc/amd/raven/acp3x-i2s.c b/sound/soc/amd/raven/acp3x-i2s.c index a0e14cc91d95..c3eb9b347eaa 100644

[PATCH 3/6] ASoC: amd: raven: acp3x-pcm-dma: fix 'set but not used' warning

2020-07-02 Thread Pierre-Louis Bossart
Fix W=1 warning. the card variable is useless here. Signed-off-by: Pierre-Louis Bossart --- sound/soc/amd/raven/acp3x-pcm-dma.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/soc/amd/raven/acp3x-pcm-dma.c b/sound/soc/amd/raven/acp3x-pcm-dma.c index 5bd458e0fe31..1f0fe5aaab1d 100644

[PATCH 2/6] ASoC: amd: acp-rt5645: fix 'defined but not used' warning

2020-07-02 Thread Pierre-Louis Bossart
Fix W=1 warning Signed-off-by: Pierre-Louis Bossart --- sound/soc/amd/acp-rt5645.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/amd/acp-rt5645.c b/sound/soc/amd/acp-rt5645.c index 73b31f88a6b5..87f0060e771f 100644 --- a/sound/soc/amd/acp-rt5645.c +++ b/sound/soc/amd/acp

[PATCH 1/6] ASoC: amd: acp-da7219-max98357a: fix 'defined but not used' warning

2020-07-02 Thread Pierre-Louis Bossart
Fix W=1 warning Signed-off-by: Pierre-Louis Bossart --- sound/soc/amd/acp-da7219-max98357a.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/amd/acp-da7219-max98357a.c b/sound/soc/amd/acp-da7219-max98357a.c index 9414d7269c4f..7d8986379d80 100644 --- a/sound/soc/amd/acp-da7219

Re: [PATCH AUTOSEL 5.7 15/53] ASoC: SOF: Intel: add PCI IDs for ICL-H and TGL-H

2020-07-02 Thread Pierre-Louis Bossart
On 7/2/20 6:18 AM, Mark Brown wrote: On Wed, Jul 01, 2020 at 09:21:24PM -0400, Sasha Levin wrote: From: Pierre-Louis Bossart [ Upstream commit c8d2e2bfaeffa0f914330e8b4e45b986c8d30b58 ] Usually the DSP is not traditionally enabled on H skews but this might be used moving forward

Re: [RFC PATCH] ALSA: compress: add support to change codec profile in gapless playback

2020-07-02 Thread Pierre-Louis Bossart
On 7/2/20 6:11 AM, Srinivas Kandagatla wrote: For gapless playback its possible that each track can have different codec profile with same decoder, for example we have WMA album, we may have different tracks as WMA v9, WMA v10 and so on Existing code does not allow to change this profile

Re: [PATCH 7/9] soundwire: intel/cadence: merge Soundwire interrupt handlers/threads

2020-07-02 Thread Pierre-Louis Bossart
On 7/2/20 2:35 AM, Liao, Bard wrote: -Original Message- From: Vinod Koul Sent: Wednesday, July 1, 2020 1:42 PM To: Pierre-Louis Bossart Cc: Bard Liao ; alsa-de...@alsa-project.org; ti...@suse.de; gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; ranjani.sridha

Re: [PATCH] riscv: asm/gdb_xml.h: use __maybe_used to make W=1 warnings go away

2020-07-02 Thread Pierre-Louis Bossart
On 7/1/20 9:04 PM, Vincent Chen wrote: On Thu, Jul 2, 2020 at 2:48 AM Pierre-Louis Bossart wrote: 0day/kbuild reports warnings with the ASoC codecs compiled with W=1. In file included from arch/riscv/include/asm/kgdb.h:109, from include/linux/kgdb.h:20

Re: [PATCH][next] ASoC: Intel: bxt-da7219-max98357a: return -EINVAL on unrecognized speaker amplifier

2020-07-02 Thread Pierre-Louis Bossart
zed speaker amplifier types. Addresses-Coverity: ("Uninitialized scalar variable") Fixes: e1435a1feb18 ("ASoC: Intel: bxt-da7219-max98357a: support MAX98390 speaker amp") Signed-off-by: Colin Ian King Sounds good, thanks Colin. Acked-by: Pierre-Louis Bossart ---

[PATCH] riscv: asm/gdb_xml.h: use __maybe_used to make W=1 warnings go away

2020-07-01 Thread Pierre-Louis Bossart
Reported-by: kernel test robot Signed-off-by: Pierre-Louis Bossart --- I don't know if this is the right way of solving this issue but this error is now consistently thrown in kbuild compile-test reports w/ W=1. arch/riscv/include/asm/gdb_xml.h | 10 +- 1 file changed, 5 insert

[PATCH 09/11] ASoC: codecs: rt5631: fix kernel-doc

2020-07-01 Thread Pierre-Louis Bossart
Fix W=1 warning, spurious kernel-doc start and missing arguments Signed-off-by: Pierre-Louis Bossart --- sound/soc/codecs/rt5631.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/rt5631.c b/sound/soc/codecs/rt5631.c index b5184f0e10e3..653da3eaf355

[PATCH 10/11] ASoC: codecs: tlv320aic26: fix kernel-doc warning

2020-07-01 Thread Pierre-Louis Bossart
Fix W=1 warning. Remove spurious /** since there isn't any kernel-doc comment in this file. Signed-off-by: Pierre-Louis Bossart --- sound/soc/codecs/tlv320aic26.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/tlv320aic26.c b/sound/soc/codecs/tlv320aic26.c

[PATCH 08/11] ASoC: codecs: rt5659: add _maybe_unused as needed

2020-07-01 Thread Pierre-Louis Bossart
Fix W=1 warning by adding __maybe_unused. Maintainers for this file may want to double-check if those definitions are necessary. Signed-off-by: Pierre-Louis Bossart --- sound/soc/codecs/rt5659.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sound/soc/codecs

[PATCH 03/11] ASoC: codecs: da7210: fix kernel-doc

2020-07-01 Thread Pierre-Louis Bossart
Fix W=1 warning, the kernel-doc syntax was probably from Doxygen? Signed-off-by: Pierre-Louis Bossart --- sound/soc/codecs/da7210.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/sound/soc/codecs/da7210.c b/sound/soc/codecs/da7210.c index 0c99dcf242e4

[PATCH 06/11] ASoC: codecs: max98390: fix 'defined but not used' warning

2020-07-01 Thread Pierre-Louis Bossart
by: Pierre-Louis Bossart --- sound/soc/codecs/max98390.c | 8 1 file changed, 8 deletions(-) diff --git a/sound/soc/codecs/max98390.c b/sound/soc/codecs/max98390.c index b345e626956d..3e8094241645 100644 --- a/sound/soc/codecs/max98390.c +++ b/sound/soc/codecs/max98390.c @@ -944,14 +944,6

[PATCH 11/11] ASoC: codecs: jz4770: add _maybe_unused as needed

2020-07-01 Thread Pierre-Louis Bossart
Fix W=1 warning by adding __maybe_unused. Maintainers for this file may want to double-check if those definitions are necessary. Signed-off-by: Pierre-Louis Bossart --- sound/soc/codecs/jz4770.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/jz4770.c b

[PATCH 05/11] ASoC: codecs: es8316: fix 'defined but not used' warning

2020-07-01 Thread Pierre-Louis Bossart
Fix W=1 warning sound/soc/codecs/es8316.c:842:36: warning: 'es8316_acpi_match' defined but not used [-Wunused-const-variable=] 842 | static const struct acpi_device_id es8316_acpi_match[] = { |^ Signed-off-by: Pierre-Louis Bossart

[PATCH 07/11] ASoC: codecs: rt*: fix 'defined but not used' warning

2020-07-01 Thread Pierre-Louis Bossart
Fix W=1 warning when ACPI is not defined Signed-off-by: Pierre-Louis Bossart --- sound/soc/codecs/rt274.c | 2 ++ sound/soc/codecs/rt286.c | 2 ++ sound/soc/codecs/rt298.c | 2 ++ sound/soc/codecs/rt5660.c | 2 ++ sound/soc/codecs/rt5677-spi.c | 2 ++ 5 files changed, 10

[PATCH 01/11] ASoC: codecs: ak4458: fix 'set but not used' warning

2020-07-01 Thread Pierre-Louis Bossart
fix warning with W=1 sound/soc/codecs/ak4458.c:408:16: warning: variable 'ret' set but not used [-Wunused-but-set-variable] 408 | int nfs, ndt, ret, reg; |^~~ Signed-off-by: Pierre-Louis Bossart --- sound/soc/codecs/ak4458.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 04/11] ASoC: codecs: da7219: fix 'defined but not used' warning

2020-07-01 Thread Pierre-Louis Bossart
fix W=1 warning sound/soc/codecs/da7219.c:1711:36: warning: 'da7219_acpi_match' defined but not used [-Wunused-const-variable=] 1711 | static const struct acpi_device_id da7219_acpi_match[] = { |^ Signed-off-by: Pierre-Louis Bossart

[PATCH 02/11] ASoC: codecs: cros_ec_codec: fix 'defined but not used' warning

2020-07-01 Thread Pierre-Louis Bossart
-Louis Bossart --- sound/soc/codecs/cros_ec_codec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/cros_ec_codec.c b/sound/soc/codecs/cros_ec_codec.c index 8d45c628e988..f23956cf4ed8 100644 --- a/sound/soc/codecs/cros_ec_codec.c +++ b/sound/soc/codecs/cros_ec_codec.c

Re: [PATCH v3] ASoC: Intel: kbl_rt5663_rt5514_max98927: Split be_hw_params_fixup function

2020-07-01 Thread Pierre-Louis Bossart
Tested and the following is something we can use without creating a new dailink. struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); if (!strcmp(codec_dai->name, KBL_REALTEK_DMIC_CODEC_DAI)) { if (params_channels(params) == 2 ||

Re: [PATCH v2] ASoC: Intel: bxt-da7219-max98357a: support MAX98390 speaker amp

2020-07-01 Thread Pierre-Louis Bossart
, thanks Brent Acked-by: Pierre-Louis Bossart

Re: [PATCH 8/9] soundwire: intel: add wake interrupt support

2020-07-01 Thread Pierre-Louis Bossart
+* wake up master and slave so that slave can notify master +* the wakeen event and let codec driver check codec status +*/ + list_for_each_entry(slave, >slaves, node) { + /* +* discard devices that are defined in ACPI tables but +

Re: [PATCH v3] ASoC: Intel: kbl_rt5663_rt5514_max98927: Split be_hw_params_fixup function

2020-07-01 Thread Pierre-Louis Bossart
On 7/1/20 11:37 AM, N, Harshapriya wrote: For speakers and headsets its 48Khz, 2 ch and 24 bit and this setting is done based on the front-end dai For speakers, however support only 16 bit, so we set it back to 16 bit If the front end dai is dmic, then the channel is set to either 2 or 4

Re: [PATCH 8/9] soundwire: intel: add wake interrupt support

2020-06-30 Thread Pierre-Louis Bossart
has been attached to a bus, the slave->dev_num_sticky should be non-zero, so we can check this value to skip the ghost devices defined in ACPI table but not populated in hardware. Signed-off-by: Rander Wang Signed-off-by: Pierre-Louis Bossart Signed-off-by: Bard Liao --- drivers/soundw

Re: [PATCH 2/5] soundwire: stream: add helper to startup/shutdown streams

2020-06-30 Thread Pierre-Louis Bossart
Thanks Vinod for the review. --- a/drivers/soundwire/stream.c +++ b/drivers/soundwire/stream.c @@ -13,6 +13,9 @@ #include #include #include +#include Do we really need core header? No we don't, the only thing needed in sound/soc.h it seems. +#include +#include #include

Re: [PATCH 7/9] soundwire: intel/cadence: merge Soundwire interrupt handlers/threads

2020-06-30 Thread Pierre-Louis Bossart
+irqreturn_t sdw_intel_thread(int irq, void *dev_id) +{ + struct sdw_intel_ctx *ctx = dev_id; + struct sdw_intel_link_res *link; + + list_for_each_entry(link, >link_list, list) + sdw_cdns_irq(irq, link->cdns); + + sdw_intel_enable_irq(ctx->mmio_base,

Re: [PATCH] ASoC: Intel: bxt-da7219-max98357a: support MAX98390 speaker amp

2020-06-30 Thread Pierre-Louis Bossart
diff --git a/sound/soc/intel/boards/Kconfig b/sound/soc/intel/boards/Kconfig index 3d820e1..b3b863e 100644 --- a/sound/soc/intel/boards/Kconfig +++ b/sound/soc/intel/boards/Kconfig @@ -291,9 +291,17 @@ config SND_SOC_INTEL_DA7219_MAX98357A_GENERIC select SND_SOC_DMIC select

Re: [PATCH 2/3] ALSA: compress: document the compress gapless audio state machine

2020-06-22 Thread Pierre-Louis Bossart
On 6/22/20 12:34 AM, Vinod Koul wrote: On 19-06-20, 09:27, Pierre-Louis Bossart wrote: +For Gapless, we move from running state to partial drain and back, along +with setting of meta_data and signalling for next track

Re: [PATCH v2 1/3] ALSA: compress: document the compress audio state machine

2020-06-22 Thread Pierre-Louis Bossart
On 6/22/20 1:58 AM, Vinod Koul wrote: So we had some discussions of the stream states, so I thought it is a good idea to document the state transitions, so add it documentation Signed-off-by: Vinod Koul --- .../sound/designs/compress-offload.rst| 52 +++ 1 file

Re: [PATCH 1/3] ALSA: compress: document the compress audio state machine

2020-06-19 Thread Pierre-Louis Bossart
+ ++--+ +| | +| OPEN | +| | ++--+ +

Re: [PATCH 2/3] ALSA: compress: document the compress gapless audio state machine

2020-06-19 Thread Pierre-Louis Bossart
+For Gapless, we move from running state to partial drain and back, along +with setting of meta_data and signalling for next track :: + + ++--+ +compr_drain_notify()| | + +>|

Re: [PATCH] ANDROID: sound: usb: Add vendor's hooking interface

2020-06-18 Thread Pierre-Louis Bossart
On 6/16/20 9:18 PM, JaeHun Jung wrote: In mobile, a co-processor is used when using USB audio to improve power consumption. hooking is required for sync-up when operating the co-processor. So register call-back function. The main operation of the call-back function is as follows: - Initialize

Re: [PATCH AUTOSEL 5.7 055/388] ASoC: SOF: Do nothing when DSP PM callbacks are not set

2020-06-18 Thread Pierre-Louis Bossart
On 6/18/20 6:44 AM, Daniel Baluta wrote: On 6/18/20 2:01 PM, Mark Brown wrote: On Wed, Jun 17, 2020 at 09:02:32PM -0400, Sasha Levin wrote: From: Daniel Baluta [ Upstream commit c26fde3b15ed41f5f452f1da727795f787833287 ] This provides a better separation between runtime and PM sleep

[PATCH] regmap: fix memory leak with map->patch

2020-06-17 Thread Pierre-Louis Bossart
t;] i2c_register_driver+0x6b/0xd0 [<bf84b954>] do_one_initcall+0x86/0x2a0 [<1d939871>] do_init_module+0xf8/0x350 [<267b474f>] load_module+0x41a9/0x44c0 [<7d8014dc>] __do_sys_finit_module+0x121/0x1b0 Signed-off-by: Pierre-Louis Bossart Review

Re: [Sound-open-firmware] [PATCH v3] ASoC: SOF: Intel: hda: Clear RIRB status before reading WP

2020-06-12 Thread Pierre-Louis Bossart
ted by Kai don't show any regression and change looks good so: Reviewed-by: Pierre-Louis Bossart Thanks Brent!

Re: [GIT PULL] sound fixes for 5.8-rc1

2020-06-12 Thread Pierre-Louis Bossart
On 6/12/20 9:46 AM, Mark Brown wrote: On Fri, Jun 12, 2020 at 08:54:11AM -0500, Pierre-Louis Bossart wrote: I think that those configuration errors are the problem and should be fixed as a prerequisite to the removal of the duplication between dpcm_playback/dpcm_capture/playback_only

Re: [GIT PULL] sound fixes for 5.8-rc1

2020-06-12 Thread Pierre-Louis Bossart
On 6/12/20 7:19 AM, Mark Brown wrote: On Thu, Jun 11, 2020 at 05:49:29PM -0700, John Stultz wrote: On Thu, Jun 11, 2020 at 5:13 PM John Stultz wrote: I've bisected it down to the following commit from this pull req:

Re: [PATCH] ASoC: SOF: Intel: hda: unsolicited RIRB response

2020-06-11 Thread Pierre-Louis Bossart
I added debug messages to print the RIRBWP register and realize that response could come between the read of RIRBWP in the snd_hdac_bus_update_rirb() function and the interrupt clear in the hda_dsp_stream_interrupt() function. The response is not handled but the interrupt is already cleared.

Re: [PATCH] ASoC: SOF: Intel: hda: unsolicited RIRB response

2020-06-11 Thread Pierre-Louis Bossart
On 6/11/20 12:09 PM, Lu, Brent wrote: Hi Brent, Thanks for the patch. Is this fix for a specific issue you're seeing? If so, could you please give us some details about it? Thanks, Ranjani Hi Ranjani, It's reported to happen on GLK Chromebook 'Fleex' that sometimes it cannot output the

Re: [RFC PATCH] ALSA: compress: Fix gapless playback state machine

2020-06-10 Thread Pierre-Louis Bossart
On 6/10/20 5:07 AM, Srinivas Kandagatla wrote: For gapless playback call to snd_compr_drain_notify() after partial drain should put the state to SNDRV_PCM_STATE_RUNNING rather than SNDRV_PCM_STATE_SETUP as the driver is ready to process the buffers for new track. With existing code, if we

Re: [PATCH 2/5] soundwire: qcom: add support for mmio soundwire devices

2020-06-08 Thread Pierre-Louis Bossart
On 6/8/20 3:43 PM, Jonathan Marek wrote: Adds support for qcom soundwire devices with memory mapped IO registers. 'device' is an ambiguous term for SoundWire. Seems to me this is a SoundWire Master device directly accessed with mmio registers instead of over a SLIMbus link?

Re: [PATCH 4/5] soundwire: qcom: avoid dependency on CONFIG_SLIMBUS

2020-06-08 Thread Pierre-Louis Bossart
On 6/8/20 3:43 PM, Jonathan Marek wrote: The driver may be used without slimbus, so don't depend on slimbus. Signed-off-by: Jonathan Marek --- drivers/soundwire/Kconfig | 1 - drivers/soundwire/qcom.c | 5 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git

Re: Subject: [PATCH v2] ASoC: soc-pcm: fix BE dai not hw_free and shutdown during mixer update

2020-06-02 Thread Pierre-Louis Bossart
nge is quite hard to review, this error handling can be called from multiple places. I *think* it's correct because in all cases where the disconnect/close/hw_free labels are reached, the non-shared BEs either remain or are put in the DPCM_STATE_CLOSE state before doing this test. Review

Re: [PATCH] soundwire: clarify SPDX use of GPL-2.0

2020-06-01 Thread Pierre-Louis Bossart
On 6/1/20 12:38 AM, Greg KH wrote: On Mon, Jun 01, 2020 at 01:28:07AM +0800, Bard Liao wrote: From: Pierre-Louis Bossart Change SPDX from GPL-2.0 to GPL-2.0-only for Intel-contributed code. This was explicit before the transition to SPDX and lost in translation. It is also explicit

Re: linux-next: build warning after merge of the sound-asoc tree

2020-05-29 Thread Pierre-Louis Bossart
On 5/29/20 8:55 AM, Pierre-Louis Bossart wrote: On 5/29/20 8:30 AM, Mark Brown wrote: On Thu, May 28, 2020 at 01:57:17PM +1000, Stephen Rothwell wrote: Hi all, After merging the sound-asoc tree, today's linux-next build (x86_64 allmodconfig) produced this warning: sound/soc/sof/intel

Re: linux-next: build warning after merge of the sound-asoc tree

2020-05-29 Thread Pierre-Louis Bossart
On 5/29/20 8:30 AM, Mark Brown wrote: On Thu, May 28, 2020 at 01:57:17PM +1000, Stephen Rothwell wrote: Hi all, After merging the sound-asoc tree, today's linux-next build (x86_64 allmodconfig) produced this warning: sound/soc/sof/intel/byt.c:464:12: warning: 'byt_remove' defined but not

Re: [PATCH v6 2/3] gpio: add a reusable generic gpio_chip using regmap

2020-05-28 Thread Pierre-Louis Bossart
ated feedback). Thanks for your work Michael, really nice and useful, feel free to add the following tag: Tested-by: Pierre-Louis Bossart

Re: [PATCH v4 2/2] gpio: add a reusable generic gpio_chip using regmap

2020-05-27 Thread Pierre-Louis Bossart
Hi Michael, +struct gpio_regmap_config { +    struct device *parent; +    struct regmap *regmap; + +    const char *label; +    int ngpio; could we add a .names field for the gpio_chip, I found this useful for PCM512x GPIO support, e.g. Sure, I have the names in the device tree. But I'd

Re: [PATCH] ASoC: rt5682: split i2c driver into separate module

2020-05-27 Thread Pierre-Louis Bossart
nges. Fixes: 6b8e4e7db3cd ("ASoC: amd: Add machine driver for Raven based platform") Fixes: fd443a20c2f0 ("ASoC: rt5682: fix I2C/Soundwire dependencies") Signed-off-by: Arnd Bergmann Reviewed-by: Pierre-Louis Bossart Thanks for this cleanup.

Re: [PATCH] ASoC: Intel: sst: Fix runtime PM imbalance in sst_power_control

2020-05-26 Thread Pierre-Louis Bossart
On 5/25/20 2:06 AM, Dinghao Liu wrote: When sst_load_fw() returns an error code, a pairing runtime PM usage counter decrement is needed to keep the counter balanced. Signed-off-by: Dinghao Liu --- sound/soc/intel/atom/sst/sst_drv_interface.c | 1 + 1 file changed, 1 insertion(+) diff

Re: [PATCH v3] ASoC: Intel: kbl_rt5663_rt5514_max98927: Split be_hw_params_fixup function

2020-05-21 Thread Pierre-Louis Bossart
for SSP0, we have RT5514 for capture and max98927 for playback, but the existing code does not explicitly deal with rate/channels/format for all cases, so it's not clear what should happen. Harsha, can you help here? Best regards, Lukasz czw., 21 maj 2020 o 19:17 Pierre-Louis Bossart napisał(a):

Re: [PATCH v3] ASoC: Intel: kbl_rt5663_rt5514_max98927: Split be_hw_params_fixup function

2020-05-21 Thread Pierre-Louis Bossart
On 5/21/20 12:08 PM, Łukasz Majczak wrote: don't add a new dailink, this is not right. Can you advise a better solution how to assign different fixup functions to mic and to speakers? I was looking at "dmic01" dailink in skl_nau88l25_max98357a.c as an example. I am not sure I follow. the

Re: [PATCH v3] ASoC: Intel: kbl_rt5663_rt5514_max98927: Split be_hw_params_fixup function

2020-05-21 Thread Pierre-Louis Bossart
On 5/21/20 11:25 AM, Lukasz Majczak wrote: Split be_hw_params_fixup function for different codecs as current common function, leads to crash while trying to get snd_soc_dpcm with container_of() macro in kabylake_ssp_fixup(). The crash call path looks as below: soc_pcm_hw_params()

Re: [PATCH] ASoC: Intel: kbl_rt5663_rt5514_max98927: Split be_hw_params_fixup function

2020-05-21 Thread Pierre-Louis Bossart
specific fixup for itself. Best regards, Lukasz czw., 21 maj 2020 o 16:25 Pierre-Louis Bossart napisał(a): On 5/21/20 8:47 AM, Lukasz Majczak wrote: Split be_hw_params_fixup function for different codecs as current common function, leads to crash while trying to get snd_soc_dpcm with conta

Re: [PATCH] ASoC: Intel: kbl_rt5663_rt5514_max98927: Split be_hw_params_fixup function

2020-05-21 Thread Pierre-Louis Bossart
On 5/21/20 8:47 AM, Lukasz Majczak wrote: Split be_hw_params_fixup function for different codecs as current common function, leads to crash while trying to get snd_soc_dpcm with container_of() macro in kabylake_ssp_fixup(). The crash call path looks as below: soc_pcm_hw_params()

Re: [PATCH] ASoC: Intel: kbl_rt5663_rt5514_max98927: Split be_hw_params_fixup function

2020-05-14 Thread Pierre-Louis Bossart
On 5/13/20 2:20 PM, Lukasz Majczak wrote: Split be_hw_params_fixup function for different codecs as current common function, leads to crash while trying to get snd_soc_dpcm with container_of() macro in kabylake_ssp_fixup(). The crash call path looks as below: soc_pcm_hw_params()

Re: [PATCH 3/3] soundwire: bus_type: add sdw_master_device support

2020-05-12 Thread Pierre-Louis Bossart
On 5/12/20 11:08 AM, Pierre-Louis Bossart wrote: On 5/12/20 10:59 AM, Vinod Koul wrote: On 12-05-20, 09:36, Pierre-Louis Bossart wrote: On 5/11/20 10:30 PM, Vinod Koul wrote: On 11-05-20, 14:00, Pierre-Louis Bossart wrote: +    md = >md; +    md->dev.bus = _bus_type; +    md->

Re: [PATCH 3/3] soundwire: bus_type: add sdw_master_device support

2020-05-12 Thread Pierre-Louis Bossart
On 5/12/20 10:59 AM, Vinod Koul wrote: On 12-05-20, 09:36, Pierre-Louis Bossart wrote: On 5/11/20 10:30 PM, Vinod Koul wrote: On 11-05-20, 14:00, Pierre-Louis Bossart wrote: + md = >md; + md->dev.bus = _bus_type; + md->dev.type = _master_type; + md-&g

Re: [PATCH 3/3] soundwire: bus_type: add sdw_master_device support

2020-05-12 Thread Pierre-Louis Bossart
On 5/11/20 10:30 PM, Vinod Koul wrote: On 11-05-20, 14:00, Pierre-Louis Bossart wrote: + md = >md; + md->dev.bus = _bus_type; + md->dev.type = _master_type; + md->dev.parent = parent; + md->dev.of_node = parent->of_node; + md-&g

Re: [PATCH 3/3] soundwire: bus_type: add sdw_master_device support

2020-05-11 Thread Pierre-Louis Bossart
+ md = >md; + md->dev.bus = _bus_type; + md->dev.type = _master_type; + md->dev.parent = parent; + md->dev.of_node = parent->of_node; + md->dev.fwnode = fwnode; + md->dev.dma_mask = parent->dma_mask; + + dev_set_name(>dev, "sdw-master-%d",

Re: [PATCH] ASoC: Intel: Boards: Support headset button function for nau88l25max and nau88l25ssm

2020-05-08 Thread Pierre-Louis Bossart
Biernacki Acked-by: Pierre-Louis Bossart

Re: [PATCH v2 -next] ASoC: SOF: Intel: Fix unused variable warning

2020-05-07 Thread Pierre-Louis Bossart
[] = { ^~~ Move the variable inside #ifdef Reported-by: Hulk Robot Suggested-by: Joe Perches Signed-off-by: YueHaibing Thanks for the patch. Acked-by: Pierre-Louis Bossart

Re: [PATCH V2] ASoC: Intel: boards: Use FS as nau8825 sysclk in nau88125_* machine

2020-05-05 Thread Pierre-Louis Bossart
This single fix address two issues on machines with nau88125: 1) Audio distortion, due to lack of required clock rate on MCLK line 2) Loud audible "pops" on headphones if there is no sysclk during nau8825 playback power up sequence Explanation for: 1) Due to Skylake HW limitation, MCLK

Re: [PATCH V2] ASoC: Intel: boards: Use FS as nau8825 sysclk in nau88125_* machine

2020-05-01 Thread Pierre-Louis Bossart
On 5/1/20 2:31 PM, Radoslaw Biernacki wrote: This single fix address two issues on machines with nau88125: 1) Audio distortion, due to lack of required clock rate on MCLK line 2) Loud audible "pops" on headphones if there is no sysclk during nau8825 playback power up sequence Explanation

Re: [PATCH] ASoC: SOF: sort out Kconfig, again

2020-04-28 Thread Pierre-Louis Bossart
rom 208e61ae18d3a4aa93ffa73db01c4e3c24a4979f Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bossart Date: Wed, 22 Apr 2020 06:21:56 -0500 Subject: [PATCH] ASoC: SOF: imx: fix depends/select IMX_DSP confusion The two IMX targets don't use depends/select in a consistent way and there's a potent

Re: [PATCH] ASoC: SOF: sort out Kconfig, again

2020-04-28 Thread Pierre-Louis Bossart
Thanks Arnd, do you mind sharing your config? https://pastebin.com/HRX5xi3R will give it a try, thanks! We noticed last week that there's a depend/select confusion might be simpler to fix, see https://github.com/thesofproject/linux/pull/2047/commits If I look at the first line I see a

Re: [PATCH] ASoC: SOF: sort out Kconfig, again

2020-04-28 Thread Pierre-Louis Bossart
On 4/28/20 4:27 PM, Arnd Bergmann wrote: The imx8 config keeps causing issues: WARNING: unmet direct dependencies detected for SND_SOC_SOF_IMX8M Depends on [n]: SOUND [=y] && !UML && SND [=y] && SND_SOC [=m] && SND_SOC_SOF_TOPLEVEL [=y] && SND_SOC_SOF_IMX_TOPLEVEL [=y] && IMX_DSP [=n]

Re: [alsa-devel] [PATCH v2 4/5] soundwire: intel/cadence: add flag for interrupt enable

2019-10-23 Thread Pierre-Louis Bossart
On 10/21/19 11:55 PM, Vinod Koul wrote: On 21-10-19, 05:26, Pierre-Louis Bossart wrote: On 10/20/19 11:14 PM, Vinod Koul wrote: On 16-09-19, 14:09, Pierre-Louis Bossart wrote: Prepare for future PM support and fix error handling by disabling interrupts as needed. Signed-off-by: Pierre

Re: [alsa-devel] [PATCH] ASoC: Intel: eve: Enable mclk and ssp sclk early for rt5514

2019-10-23 Thread Pierre-Louis Bossart
On 10/23/19 10:16 AM, Brent Lu wrote: The first DMIC capture always fail (zero sequence data from PCM port) after using DSP hotwording function (i.e. Google assistant). The DMIC is attached to rt5514 which also require eaily mclk/sclk like rt5663. Therefore we add a dapm route to provide ssp

[PATCH v3 3/5] soundwire: intel: add helper for initialization

2019-10-22 Thread Pierre-Louis Bossart
Move code to helper for reuse in power management routines Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/intel.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c index 748f832e14f6

[PATCH v3 4/5] soundwire: intel/cadence: add flag for interrupt enable

2019-10-22 Thread Pierre-Louis Bossart
Prepare for future PM support and fix error handling by disabling interrupts as needed. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/cadence_master.c | 18 -- drivers/soundwire/cadence_master.h | 2 +- drivers/soundwire/intel.c | 13 +++-- 3 files

[PATCH v3 2/5] soundwire: cadence_master: add hw_reset capability in debugfs

2019-10-22 Thread Pierre-Louis Bossart
Provide debugfs capability to kick link and devices into hard-reset (as defined by MIPI). This capability is really useful when some devices are no longer responsive and/or to check the software handling of resynchronization. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire

[PATCH v3 0/5] soundwire: intel/cadence: better initialization

2019-10-22 Thread Pierre-Louis Bossart
iate variable disable interrupts when exit_reset fails, updated error handling returned -EINVAL on debugfs invalid parameter Pierre-Louis Bossart (5): soundwire: intel/cadence: fix startup sequence soundwire: cadence_master: add hw_reset capability in debugfs soundwire: intel: add he

[PATCH v3 1/5] soundwire: intel/cadence: fix startup sequence

2019-10-22 Thread Pierre-Louis Bossart
. flush command FIFOs Better error handling will be provided after interrupt disable is provided in follow-up patches. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/cadence_master.c | 80 +- drivers/soundwire/cadence_master.h | 1 + drivers/soundwire/intel.c

[PATCH v3 5/5] soundwire: cadence_master: make clock stop exit configurable on init

2019-10-22 Thread Pierre-Louis Bossart
-Louis Bossart --- drivers/soundwire/cadence_master.c | 15 --- drivers/soundwire/cadence_master.h | 2 +- drivers/soundwire/intel.c | 2 +- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/soundwire/cadence_master.c b/drivers/soundwire/cadence_master.c

[PATCH 2/3] soundwire: slave: add helper to extract slave ID

2019-10-22 Thread Pierre-Louis Bossart
Simplify the loop with a helper. The only functionality change is that we continue the loop even with an ACPI error. Follow-up patches will build on this change. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/slave.c | 50 --- 1 file changed, 31

[PATCH 3/3] soundwire: ignore uniqueID when irrelevant

2019-10-22 Thread Pierre-Louis Bossart
, or differences between devID registers and ACPI _ADR fields. This patch suggests a filter on startup to identify 'single' devices and tag them accordingly. The uniqueID is then not used for the probe, and the device name omits the uniqueID as well. Signed-off-by: Pierre-Louis Bossart --- drivers

[PATCH 1/3] soundwire: remove bitfield for unique_id, use u8

2019-10-22 Thread Pierre-Louis Bossart
uot; value to account for firmware/BIOS creativity. Signed-off-by: Pierre-Louis Bossart --- include/linux/soundwire/sdw.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/linux/soundwire/sdw.h b/include/linux/soundwire/sdw.h index 688b40e65c89..28745b9ba279 100644 --- a/inc

[PATCH 0/3] soundwire: use UniqueID only when relevant

2019-10-22 Thread Pierre-Louis Bossart
type are detected. The loop to detect multiple identical devices is not super efficient but with typically fewer than 4 devices per link there's no real incentive to be smarter. This change is only implemented for ACPI platforms, for DeviceTree there is no change. Pierre-Louis Bossart (3

[PATCH] soundwire: slave: fix scanf format

2019-10-22 Thread Pierre-Louis Bossart
fix cppcheck warning: [drivers/soundwire/slave.c:145]: (warning) %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/slave.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH] soundwire: intel: fix PDI/stream mapping for Bulk

2019-10-22 Thread Pierre-Louis Bossart
The previous formula is incorrect for PDI0/1, the mapping is not linear but has a discontinuity between PDI1 and PDI2. This change has no effect on PCM PDIs (same mapping). Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/intel.c | 10 -- 1 file changed, 8 insertions(+), 2

Re: [alsa-devel] [PATCH v2 4/5] soundwire: intel/cadence: add flag for interrupt enable

2019-10-21 Thread Pierre-Louis Bossart
On 10/20/19 11:14 PM, Vinod Koul wrote: On 16-09-19, 14:09, Pierre-Louis Bossart wrote: Prepare for future PM support and fix error handling by disabling interrupts as needed. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/cadence_master.c | 18 -- drivers

Re: [alsa-devel] [PATCH v2 2/5] soundwire: cadence_master: add hw_reset capability in debugfs

2019-10-21 Thread Pierre-Louis Bossart
On 10/20/19 11:04 PM, Vinod Koul wrote: On 16-09-19, 14:09, Pierre-Louis Bossart wrote: Provide debugfs capability to kick link and devices into hard-reset (as defined by MIPI). This capability is really useful when some devices are no longer responsive and/or to check the software handling

Re: [alsa-devel] [PATCH] ASoC: bdw-rt5677: enable runtime channel merge

2019-10-21 Thread Pierre-Louis Bossart
In the DAI link "Capture PCM", the FE DAI "Capture Pin" supports 4-channel capture but the BE DAI supports only 2-channel capture. To fix the channel mismatch, we need to enable the runtime channel merge for this DAI link. Hi Pierre, This patch is for the same issue discussed in the

Re: [alsa-devel] linux-next: Tree for Oct 17 (soundwire)

2019-10-17 Thread Pierre-Louis Bossart
On 10/17/19 10:22 AM, Randy Dunlap wrote: On 10/16/19 9:26 PM, Stephen Rothwell wrote: Hi all, Changes since 20191016: on x86_64: # CONFIG_BLOCK is not set CC [M] drivers/soundwire/intel_init.o In file included from ../drivers/soundwire/intel_init.c:12:0: ../include/linux/iomap.h: In

Re: [alsa-devel] [PATCH] ASoC: Intel: sof-rt5682: add a check for devm_clk_get

2019-10-17 Thread Pierre-Louis Bossart
On 10/16/19 9:50 PM, Chuhong Yuan wrote: sof_audio_probe misses a check for devm_clk_get and may cause problems. Add a check for it to fix the bug. Indeed this is a miss, we have this test in all machine drivers except this one. Thanks for the patch! Acked-by: Pierre-Louis Bossart

Re: [alsa-devel] [PATCH v2 0/5] soundwire: intel/cadence: better initialization

2019-10-14 Thread Pierre-Louis Bossart
On 9/16/19 2:09 PM, Pierre-Louis Bossart wrote: V2 of the original series 'soundwire: inits and PM additions for 5.4', with PM additions removed since more tests on hardware are required. Vinod, if you are back at your desk, those patches are almost a month old. thanks! Changes since

Re: [alsa-devel] [PATCH 0/2] soundwire: Kconfig/build improvements

2019-10-14 Thread Pierre-Louis Bossart
On 9/16/19 1:57 PM, Pierre-Louis Bossart wrote: The Intel kbuild test reported issues with COMPILE_TEST or cross-compilation when SOF is enabled, fix. This has no functional impact. Vinod, if you are back at your desk, those patches are almost a month old. thanks! Pierre-Louis Bossart

<    1   2   3   4   5   6   7   8   9   10   >