Re: [PATCH] soundwire: intel: move to auxiliary bus

2021-03-24 Thread Pierre-Louis Bossart
Note that the auxiliary bus API has separate init and add steps, which requires more attention in the error unwinding paths. The main loop needs to deal with kfree() and auxiliary_device_uninit() for the current iteration before jumping to the common label which releases everything allocated in

Re: [PATCH] soundwire: intel: move to auxiliary bus

2021-03-24 Thread Pierre-Louis Bossart
On 3/24/21 5:50 AM, Vinod Koul wrote: On 23-03-21, 12:29, Pierre-Louis Bossart wrote: Thanks Greg and Vinod for the reviews -static int intel_master_probe(struct platform_device *pdev) +static int intel_link_probe(struct auxiliary_device *auxdev, const struct auxiliary_device_id *id

Re: [PATCH v3 3/7] ASoC: codecs: wcd938x: add basic driver

2021-03-19 Thread Pierre-Louis Bossart
On 3/19/21 4:29 AM, Srinivas Kandagatla wrote: This patch adds basic SoundWire codec driver to support for WCD938X TX and RX devices. It took me a while to figure out that you are adding support for a codec that has 2 Slave interfaces internally, one for TX and one for RX dais. Each of th

Re: [PATCH v3 2/7] ASoC: codecs: wcd-clsh: add new version support

2021-03-19 Thread Pierre-Louis Bossart
+static void wcd_clsh_v3_set_hph_mode(struct snd_soc_component *component, + int mode) +{ + u8 val = 0; initialization not needed. + + switch (mode) { + case CLS_H_NORMAL: + val = 0x00; + break; + case CLS_A

Re: [PATCH v3 4/7] ASoC: codecs: wcd938x: add basic controls

2021-03-19 Thread Pierre-Louis Bossart
+static int wcd938x_ear_pa_put_gain(struct snd_kcontrol *kcontrol, + struct snd_ctl_elem_value *ucontrol) +{ + struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); + struct wcd938x_sdw_priv *wcd = snd_soc_component_get_drvdata

Re: [PATCH v3 0/7] ASoC: codecs: add wcd938x support

2021-03-19 Thread Pierre-Louis Bossart
On 3/19/21 4:29 AM, Srinivas Kandagatla wrote: This patchset adds support for Qualcomm WCD938X codec. Qualcomm WCD9380/WCD9385 Codec is a standalone Hi-Fi audio codec IC connected over SoundWire. This device has two SoundWire devices, RX and TX respectively supporting 4 x ADCs, ClassH, Ear, A

Re: [PATCH v3 7/7] ASoC: codecs: wcd938x: add audio routing

2021-03-19 Thread Pierre-Louis Bossart
On 3/19/21 4:29 AM, Srinivas Kandagatla wrote: This patch adds audio routing for both playback and capture. Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/wcd938x.c | 97 ++ 1 file changed, 97 insertions(+) diff --git a/sound/soc/codecs/wcd938

Re: [PATCH] soundwire: intel: move to auxiliary bus

2021-03-23 Thread Pierre-Louis Bossart
Thanks Greg and Vinod for the reviews -static int intel_master_probe(struct platform_device *pdev) +static int intel_link_probe(struct auxiliary_device *auxdev, const struct auxiliary_device_id *id) { - struct device *dev = &pdev->dev; + struct device *dev = &auxdev->dev; +

Re: [PATCH] soundwire: intel: move to auxiliary bus

2021-03-23 Thread Pierre-Louis Bossart
Note that the auxiliary bus API has separate init and add steps, which requires more attention in the error unwinding paths. The main loop needs to deal with kfree() and auxiliary_device_uninit() for the current iteration before jumping to the common label which releases everything allocated in

Re: [PATCH] soundwire: add slave device to linked list after device_register()

2021-03-23 Thread Pierre-Louis Bossart
Hi Vinod, We currently add the slave device to a linked list before device_register(), and then remove it if device_register() fails. It's not clear why this sequence was necessary, this patch moves the linked list management to after the device_register(). Maybe add a comment :-) The reason

Re: [PATCH v5 1/2] platform/x86: dell-privacy: Add support for Dell hardware privacy

2021-03-23 Thread Pierre-Louis Bossart
Minor comments below. On 3/22/21 4:38 AM, Perry Yuan wrote: From: Perry Yuan add support for Dell privacy driver for the Dell units equipped hardware privacy design, which protect users privacy of audio and camera from hardware level. Once the audio or camera privacy mode activated, any applic

Re: [PATCH] soundwire: intel: move to auxiliary bus

2021-03-23 Thread Pierre-Louis Bossart
On 3/23/21 1:32 PM, Greg KH wrote: On Tue, Mar 23, 2021 at 01:04:49PM -0500, Pierre-Louis Bossart wrote: Note that the auxiliary bus API has separate init and add steps, which requires more attention in the error unwinding paths. The main loop needs to deal with kfree() and

Re: [RFC PATCH 0/3] Separate BE DAI HW constraints from FE ones

2021-03-23 Thread Pierre-Louis Bossart
On 3/23/21 6:43 AM, Codrin Ciubotariu wrote: HW constraints are needed to set limitations for HW parameters used to configure the DAIs. All DAIs on the same link must agree upon the HW parameters, so the parameters are affected by the DAIs' features and their limitations. In case of DPCM, the

regression with TTY changes in v5.12-rc1

2021-03-04 Thread Pierre-Louis Bossart
Hi, Our SOF/audio CI shows an across-the-board regression when we try v5.12-rc1, specifically on pause/resume tests with an interactive terminal running 'aplay -i' commands managed by expect to simulate the user pressing the space bar to pause/unpause. It turns out the processes are not longer

Re: [PATCH 2/3] soundwire: qcom: add auto enumeration support

2021-03-05 Thread Pierre-Louis Bossart
+    if (!val1 && !val2) +    break; + +    addr = buf2[1] | (buf2[0] << 8) | (buf1[3] << 16) | +    ((u64)buf1[2] << 24) | ((u64)buf1[1] << 32) | +    ((u64)buf1[0] << 40); + +    sdw_extract_slave_id(bus, addr, &id); +    /* Now compare with entries *

Re: [PATCH] ASoC: amd: Add support for ALC1015P codec in acp3x machine driver

2021-03-30 Thread Pierre-Louis Bossart
static const struct acpi_device_id acp3x_audio_acpi_match[] = { { "AMDI5682", (unsigned long)&acp3x_5682}, { "AMDI1015", (unsigned long)&acp3x_1015}, + { "AMDP1015", (unsigned long)&acp3x_1015p}, This isn't a valid ACPI ID. AMDP does not exist in https://uefi.org/acpi_

Re: [PATCH] ASoC: amd: Add support for ALC1015P codec in acp3x machine driver

2021-03-30 Thread Pierre-Louis Bossart
On 3/30/21 10:35 AM, Mark Brown wrote: On Tue, Mar 30, 2021 at 09:12:11PM +0530, Mukunda,Vijendar wrote: On 3/30/21 7:52 PM, Pierre-Louis Bossart wrote:   static const struct acpi_device_id acp3x_audio_acpi_match[] = {   { "AMDI5682", (unsigned long)&acp3x_5682},    

Re: [PATCH] soundwire: qcom: use signed variable for error return

2021-03-31 Thread Pierre-Louis Bossart
On 3/31/21 2:21 AM, Vinod Koul wrote: We get warning for using a unsigned variable being compared to less than zero. The comparison is correct as it checks for errors from previous call to qcom_swrm_get_alert_slave_dev_num(), so we should use a signed variable instead. drivers/soundwire/qcom.

Re: [PATCH V2] soundwire: qcom: use signed variable for error return

2021-03-31 Thread Pierre-Louis Bossart
superfluous initialization as well drivers/soundwire/qcom.c: qcom_swrm_irq_handler() warn: impossible condition '(devnum < 0) => (0-255 < 0)' Reported-by: kernel test robot Signed-off-by: Vinod Koul Reviewed-by: Pierre-Louis Bossart --- drivers/soundwire/qcom.c | 2 +-

Re: [PATCH] soundwire: qcom: wait for fifo space to be available before read/write

2021-03-31 Thread Pierre-Louis Bossart
+static int swrm_wait_for_rd_fifo_avail(struct qcom_swrm_ctrl *swrm) +{ + u32 fifo_outstanding_cmd, value; + u8 fifo_retry_count = SWR_OVERFLOW_RETRY_COUNT; + + /* Check for fifo underflow during read */ + swrm->reg_read(swrm, SWRM_CMD_FIFO_STATUS, &value); + fifo_

Re: [PATCH v2 1/5] soundwire: qcom: add support to missing transport params

2021-03-03 Thread Pierre-Louis Bossart
soundwire-controller@321 { reg = <0 0x321 0 0x2000>; compatible = "qcom,soundwire-v1.5.1"; interrupts = ; clocks = <&rxmacro>; clock-names = "iface"; qcom,clock-stop-mode0; qcom,din-ports = <0>; qcom,dout-ports = <5>; qcom,ports-sinterval-lo

Re: [PATCH 2/3] soundwire: qcom: add auto enumeration support

2021-03-03 Thread Pierre-Louis Bossart
On 3/3/21 3:38 AM, Srinivas Kandagatla wrote: On 02/03/2021 14:34, Pierre-Louis Bossart wrote: +    if (!val1 && !val2) +    break; + +    addr = buf2[1] | (buf2[0] << 8) | (buf1[3] << 16) | +    ((u64)buf1[2] << 24) | ((u64)buf1[1] &

Re: [PATCH] ASoC: Intel: Handle device properties with software node API

2021-03-22 Thread Pierre-Louis Bossart
On 3/22/21 6:06 AM, Heikki Krogerus wrote: The function device_add_properties() is going to be removed. Replacing it with software node API equivalents. Signed-off-by: Heikki Krogerus --- Hi, This patch depends on a fix from mainline, available in v5.12-rc4: 2a92c90f2ecc ("software

Re: [PATCH v4 1/2] platform/x86: dell-privacy: Add support for Dell hardware privacy

2021-03-22 Thread Pierre-Louis Bossart
As you suggested,I should add the alignment change in another patch. But if i keep the old alignment, the code will be very odd. Seems like that I have to change the below code to new alignment in this patch. if (dell_smbios_find_token(GLOBAL_MIC_MUTE_DISABLE) &&     dell_smbios_find_token(

Re: [PATCH v4 0/5] soundwire: add static port map support

2021-03-15 Thread Pierre-Louis Bossart
patchset also adds new bindings for wsa881x smart speaker which has 4 ports which are statically mapped to the 3 output and 1 input port of the controller. Tested it on DB845c and SM8250 MTP. thanks, srini Reviewed-by: Pierre-Louis Bossart Changes since v3: - updated kernel doc for

Re: [PATCH v2] ASoC: Intel: sof_rt5682: Add ALC1015Q-VB speaker amp support

2021-03-16 Thread Pierre-Louis Bossart
On 3/16/21 4:46 AM, Brent Lu wrote: This patch adds jsl_rt5682_rt1015p which supports the RT5682 headset codec and ALC1015Q-VB speaker amplifier combination on JasperLake platform. This driver also applies for ALC1015Q-CG running in auto-mode. Signed-off-by: Brent Lu --- sound/soc/intel/b

Re: [PATCH v3] ASoC: amd: add support for rt5682 codec in machine driver

2021-03-16 Thread Pierre-Louis Bossart
On 3/16/21 8:37 AM, Mukunda,Vijendar wrote: On 15/03/21 9:30 pm, Pierre-Louis Bossart wrote: +static int rt5682_clk_enable(struct snd_pcm_substream *substream) +{ +    int ret; +    struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); + +    /* + * Set wclk to 48000

Re: [PATCH] soundwire: intel: move to auxiliary bus

2021-03-26 Thread Pierre-Louis Bossart
On 3/24/21 10:36 AM, Greg KH wrote: On Wed, Mar 24, 2021 at 09:55:01AM -0500, Pierre-Louis Bossart wrote: Note at this point it would mean an API change and impact the existing Nvidia/Mellanox code, we are using the same sequence as them THere is no "stable api" in the ker

[PATCH 01/17] ASoC: amd: renoir: acp3x-pdm-dma: remove unnecessary assignments

2021-03-26 Thread Pierre-Louis Bossart
ssigned a value that is never used. [unreadVariable] pdm_dma_enable = 0x00; ^ indeed those values are never used because the timeout is reset. Signed-off-by: Pierre-Louis Bossart --- sound/soc/amd/renoir/acp3x-pdm-dma.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/

[PATCH 03/17] ASoC: atmel: atmel-i2s: remove useless initialization

2021-03-26 Thread Pierre-Louis Bossart
2s.c:598:10: note: err is initialized int err = -ENXIO; ^ sound/soc/atmel/atmel-i2s.c:628:6: note: err is overwritten err = devm_request_irq(&pdev->dev, irq, atmel_i2s_interrupt, 0, ^ Signed-off-by: Pierre-Louis Bossart --- sound/soc/atmel/atmel-i2s.c | 2 +- 1 file ch

[PATCH 05/17] ASoC: meson: axg-tdmin: remove useless assignment

2021-03-26 Thread Pierre-Louis Bossart
cppcheck complains about potential null pointer dereference but it's rather an unnecessary assignment to NULL before walking through a list. Signed-off-by: Pierre-Louis Bossart --- sound/soc/meson/axg-tdmin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/

[PATCH 06/17] ASoC: meson: axg-tdmout: remove useless assignment

2021-03-26 Thread Pierre-Louis Bossart
cppcheck complains about potential null pointer dereference but it's rather an unnecessary assignment to NULL before walking through a list. Signed-off-by: Pierre-Louis Bossart --- sound/soc/meson/axg-tdmout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/

[PATCH 00/17] ASoC: remove cppcheck warnings for multiple SOCs

2021-03-26 Thread Pierre-Louis Bossart
Trivial cleanups to make cppcheck less verbose. There should be no functionality change, except for the 'sti_uniperif' patch where an error check was added. Pierre-Louis Bossart (17): ASoC: amd: renoir: acp3x-pdm-dma: remove unnecessary assignments ASoC: atmel: fix shadowed varia

[PATCH 04/17] ASoC: bcm: cygnus_ssp: remove useless initialization

2021-03-26 Thread Pierre-Louis Bossart
:10: note: err is initialized int err = -EINVAL; ^ sound/soc/bcm/cygnus-ssp.c:1364:6: note: err is overwritten err = devm_snd_soc_register_component(dev, &cygnus_ssp_component, ^ Signed-off-by: Pierre-Louis Bossart --- sound/soc/bcm/cygnus-ssp.c | 2 +- 1 file changed,

[PATCH 02/17] ASoC: atmel: fix shadowed variable

2021-03-26 Thread Pierre-Louis Bossart
t pwm_type[] = { ^ sound/soc/atmel/atmel-classd.c:51:14: note: Shadow variable const char *pwm_type; ^ Signed-off-by: Pierre-Louis Bossart --- sound/soc/atmel/atmel-classd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/atmel/atmel-classd.c b

[PATCH 07/17] ASoC: pxa: remove useless assignment

2021-03-26 Thread Pierre-Louis Bossart
cppcheck warning: sound/soc/pxa/mmp-pcm.c:207:10: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] int ret = 0, stream; ^ Signed-off-by: Pierre-Louis Bossart --- sound/soc/pxa/mmp-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[PATCH 08/17] ASoC: sti: sti_uniperif: add missing error check

2021-03-26 Thread Pierre-Louis Bossart
is assigned ret = sti_uniperiph_cpu_dai_of(node, priv); ^ sound/soc/sti/sti_uniperif.c:490:6: note: ret is overwritten ret = devm_snd_soc_register_component(&pdev->dev, ^ sti_uniperiph_cpu_dai_of() can return -EINVAL which seems like a good-enough reason to bail. Signed-off-by: Pierre-Louis Bos

[PATCH 13/17] ASoC: tegra: tegra20_das: align function prototypes

2021-03-26 Thread Pierre-Louis Bossart
dap_sel' definition 'dap'. [funcArgNamesDifferent] int tegra20_das_connect_dac_to_dap(int dac, int dap) ^ sound/soc/tegra/tegra20_das.h:118:59: note: Function 'tegra20_das_connect_dac_to_dap' argument 2 names different: declar

[PATCH 14/17] ASoC: ti: omap-abe-twl6040: remove useless assignment

2021-03-26 Thread Pierre-Louis Bossart
cppcheck warning: sound/soc/ti/omap-abe-twl6040.c:173:10: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] int ret = 0; ^ Signed-off-by: Pierre-Louis Bossart --- sound/soc/ti/omap-abe-twl6040.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH 17/17] ASoC: ux500: mop500: align function prototype

2021-03-26 Thread Pierre-Louis Bossart
definition 'rtd'. int mop500_ab8500_machine_init(struct snd_soc_pcm_runtime *rtd) ^ Signed-off-by: Pierre-Louis Bossart --- sound/soc/ux500/mop500_ab8500.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/ux500/mop500_ab8500.h b/sound/soc/ux500/mop500_ab8500.h ind

[PATCH 15/17] ASoC: ti: omap-mcsp: remove duplicate test

2021-03-26 Thread Pierre-Louis Bossart
: note: Second condition if (mcbsp->irq) { ^ Keeping two separate tests was probably intentional for clarity, but since this generates warnings we might as well make cppcheck happy so that we have fewer warnings. Signed-off-by: Pierre-Louis Bossart --- sound/soc/ti/omap-mcbsp.c | 3 +-

[PATCH 09/17] ASoC: sti: uniperif: align function prototypes

2021-03-26 Thread Pierre-Louis Bossart
x27;. struct uniperif *uni_reader); ^ sound/soc/sti/uniperif_reader.c:411:24: note: Function 'uni_reader_init' argument 2 names different: declaration 'uni_reader' definition 'reader'. struct uniperif *reader) ^

[PATCH 12/17] ASoC: tegra: tegra20_das: clarify expression

2021-03-26 Thread Pierre-Louis Bossart
66:61: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] !!sdata1rx << TEGRA20_DAS_DAP_CTRL_SEL_DAP_SDATA1_TX_RX_P | ^ Signed-off-by: Pierre-Louis Bossart --- sound/soc/t

[PATCH 16/17] ASoC: ux500: mop500: rename shadowing variable

2021-03-26 Thread Pierre-Louis Bossart
tic struct snd_soc_card mop500_card = { ^ sound/soc/ux500/mop500.c:143:23: note: Shadow variable struct snd_soc_card *mop500_card = platform_get_drvdata(pdev); ^ Signed-off-by: Pierre-Louis Bossart --- sound/soc/ux500/mop500.c | 6 +++--- 1 file

[PATCH 10/17] ASoC: stm: stm32_adfsdm: fix snprintf format string

2021-03-26 Thread Pierre-Louis Bossart
cppcheck warning: sound/soc/stm/stm32_adfsdm.c:120:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] snprintf(str_freq, sizeof(str_freq), "%d\n", freq); ^ Signed-off-by: Pierre-Lou

[PATCH 11/17] ASoC: sunxi: sun8i-codec: clarify expression

2021-03-26 Thread Pierre-Louis Bossart
cppcheck warning: sound/soc/sunxi/sun8i-codec.c:488:28: style: Clarify calculation precedence for '%' and '?'. [clarifyCalculation] return sample_rate % 4000 ? 22579200 : 24576000; ^ Signed-off-by: Pierre-Louis Bossart --- sound/soc/sunxi/sun

[RFC PATCH 0/2] ASoC: remove cppchecks warnings on lm49453 and da732x

2021-03-26 Thread Pierre-Louis Bossart
There are the last two patches in the cleanups, this time I am not sure what the code does and what the proper fix might be. Feedback welcome. Pierre-Louis Bossart (2): ASoC: lm49453: fix useless assignment before return ASoC: da732x: simplify code sound/soc/codecs/da732x.c | 17

[RFC PATCH 2/2] ASoC: da732x: simplify code

2021-03-26 Thread Pierre-Louis Bossart
able and the BIT macro. Signed-off-by: Pierre-Louis Bossart --- sound/soc/codecs/da732x.c | 17 ++--- sound/soc/codecs/da732x.h | 12 2 files changed, 10 insertions(+), 19 deletions(-) diff --git a/sound/soc/codecs/da732x.c b/sound/soc/codecs/da732x.c index d43ee7159ae0..

[RFC PATCH 1/2] ASoC: lm49453: fix useless assignment before return

2021-03-26 Thread Pierre-Louis Bossart
assignment redundant or the 'return 0' a mistake? Signed-off-by: Pierre-Louis Bossart --- sound/soc/codecs/lm49453.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/soc/codecs/lm49453.c b/sound/soc/codecs/lm49453.c index eb3dd0bd80d9..fb0fb23537e7 100644 --- a/sound/soc/co

Re: [PATCH v1] ASoC: Intel: kbl_da7219_max98927: Fix kabylake_ssp_fixup function

2021-04-15 Thread Pierre-Louis Bossart
+ Signed-off-by: Lukasz Majczak --- Hi, This is basically a cherry-pick of this change: https://patchwork.kernel.org/project/alsa-devel/patch/1595432147-11166-1-git-send-email-harshapriy...@intel.com/ just applied to the kbl_da7219_max98927. Best regards, Lukasz Acked-by: Pierre-Louis Bossart

Re: [RFC PATCH 0/3] Separate BE DAI HW constraints from FE ones

2021-04-16 Thread Pierre-Louis Bossart
On 4/16/21 11:31 AM, Mark Brown wrote: On Fri, Apr 16, 2021 at 04:03:05PM +, codrin.ciubota...@microchip.com wrote: Thank you for the links! So basically the machine driver disappears and all the components will be visible in user-space. Not entirely - you still need something to say h

Re: [RFC PATCH 0/3] Separate BE DAI HW constraints from FE ones

2021-04-16 Thread Pierre-Louis Bossart
On 4/16/21 1:55 PM, Mark Brown wrote: On Fri, Apr 16, 2021 at 11:47:01AM -0500, Pierre-Louis Bossart wrote: On 4/16/21 11:31 AM, Mark Brown wrote: Not really written down that I can think of. I think the next steps that I can think of right now are unfortunately bigger and harder ones

Re: [PATCH] ASoC: Intel: Handle device properties with software node API

2021-04-12 Thread Pierre-Louis Bossart
Hi Heikki, diff --git a/sound/soc/intel/boards/bytcht_es8316.c b/sound/soc/intel/boards/bytcht_es8316.c index 06df2d46d910b..4a9817a95928c 100644 --- a/sound/soc/intel/boards/bytcht_es8316.c +++ b/sound/soc/intel/boards/bytcht_es8316.c @@ -544,7 +544,7 @@ static int snd_byt_cht_es8316_mc_probe(

Re: [PATCH] ASoC: Intel: Handle device properties with software node API

2021-04-13 Thread Pierre-Louis Bossart
On 4/13/21 9:05 AM, Heikki Krogerus wrote: On Tue, Apr 13, 2021 at 03:20:45PM +0300, Heikki Krogerus wrote: On Mon, Apr 12, 2021 at 03:36:20PM -0500, Pierre-Louis Bossart wrote: I took the code and split it in two for BYT/CHT (modified to remove devm_) and SoundWire parts (added as is

Re: [PATCH v2 2/3] soundwire: Intel: introduce DMI quirks for HP Spectre x360 Convertible

2021-04-14 Thread Pierre-Louis Bossart
On 4/13/21 11:08 PM, Vinod Koul wrote: On 12-04-21, 14:37, Dave Hansen wrote: On 3/1/21 11:51 PM, Bard Liao wrote: +++ b/drivers/soundwire/dmi-quirks.c @@ -0,0 +1,66 @@ +// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) +// Copyright(c) 2021 Intel Corporation. It looks like this is alr

[PATCH 1/7] driver core: remove kernel-doc warnings

2021-03-31 Thread Pierre-Louis Bossart
s/base/core.c:1763: warning: Function parameter or member 'dev' not described in '__fw_devlink_link_to_consumers' drivers/base/core.c:1844: warning: Function parameter or member 'dev' not described in '__fw_devlink_link_to_suppliers' drivers/base/core.c:1844: warni

[PATCH 0/7] drivers/base: remove kernel-doc warnings

2021-03-31 Thread Pierre-Louis Bossart
warning: Function parameter or member 'fn' not described in 'attribute_container_device_trigger' drivers/base/module.c: In function ‘module_add_driver’: drivers/base/module.c:36:6: warning: variable ‘no_warn’ set but not used [-Wunused-but-set-variable] 36 | int no_warn; | ^~

[PATCH 2/7] driver core: attribute_container: remove kernel-doc warnings

2021-03-31 Thread Pierre-Louis Bossart
x27;dev' not described in 'attribute_container_add_class_device_adapter' drivers/base/attribute_container.c:471: warning: Function parameter or member 'classdev' not described in 'attribute_container_add_class_device_adapter' Signed-off-by: Pierre-Louis Bossart --- drivers/base/

[PATCH 3/7] PM: runtime: remove kernel-doc warnings

2021-03-31 Thread Pierre-Louis Bossart
remove make W=1 warnings drivers/base/power/runtime.c:926: warning: Function parameter or member 'timer' not described in 'pm_suspend_timer_fn' drivers/base/power/runtime.c:926: warning: Excess function parameter 'data' description in 'pm_suspend_timer_fn&#x

[PATCH 4/7] PM: wakeup: fix kernel-doc warnings and fix typos

2021-03-31 Thread Pierre-Louis Bossart
ss function parameter 'enabled' description in 'pm_wakep_autosleep_enabled' Signed-off-by: Pierre-Louis Bossart --- drivers/base/power/wakeup.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/drivers/base/power/wakeup.c b/drivers/base/pow

[PATCH 5/7] PM: clk: remove kernel-doc warning

2021-03-31 Thread Pierre-Louis Bossart
Remove make W=1 warning: drivers/base/power/clock_ops.c:148: warning: expecting prototype for pm_clk_enable(). Prototype was for __pm_clk_enable() instead Signed-off-by: Pierre-Louis Bossart --- drivers/base/power/clock_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH 6/7] platform-msi: fix kernel-doc warnings

2021-03-31 Thread Pierre-Louis Bossart
). Prototype was for __platform_msi_create_device_domain() instead Signed-off-by: Pierre-Louis Bossart --- drivers/base/platform-msi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/base/platform-msi.c b/drivers/base/platform-msi.c index 2c1e2e0c1a59..0b72b134a304 100644 --- a/d

[PATCH 7/7] devcoredump: fix kernel-doc warning

2021-03-31 Thread Pierre-Louis Bossart
drivers/base/devcoredump.c:225: warning: expecting prototype for devcd_read_from_table(). Prototype was for devcd_read_from_sgtable() instead Signed-off-by: Pierre-Louis Bossart --- drivers/base/devcoredump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/base/de

Re: [PATCH 1/2] soundwire: add macro to selectively change error levels

2021-04-01 Thread Pierre-Louis Bossart
+#define sdw_dev_dbg_or_err(dev, is_err, fmt, ...) \ + do {\ + if (is_err) \ + dev_err(dev, fmt, __VA_ARGS__); \

Re: [PATCH 1/2] soundwire: add macro to selectively change error levels

2021-04-01 Thread Pierre-Louis Bossart
On 4/1/21 2:24 AM, Vinod Koul wrote: On 31-03-21, 09:13, Bard Liao wrote: From: Pierre-Louis Bossart We sometimes discard -ENODATA when reporting errors and lose all traces of issues in the console log, add a macro to add use dev_dbg() in such cases. Signed-off-by: Pierre-Louis Bossart

Re: [PATCH] soundwire: intel_init: test link->cdns

2021-04-01 Thread Pierre-Louis Bossart
On 4/1/21 2:21 AM, Vinod Koul wrote: On 31-03-21, 09:02, Bard Liao wrote: intel_link_probe() could return error and dev_get_drvdata() will return null in such case. So we have to test link->cdns after link->cdns = dev_get_drvdata(&ldev->auxdev.dev); Otherwise, we will meet the "kernel NULL po

Re: [PATCH v2] soundwire: qcom: wait for fifo space to be available before read/write

2021-04-01 Thread Pierre-Louis Bossart
On 4/1/21 4:00 AM, Srinivas Kandagatla wrote: If we write registers very fast we can endup in a situation where some of the writes will be dropped without any notice. So wait for the fifo space to be available before reading/writing the soundwire registers. Out of curiosity, do you actually

Re: [PATCH 3/7] PM: runtime: remove kernel-doc warnings

2021-04-01 Thread Pierre-Louis Bossart
On 4/1/21 8:40 AM, Rafael J. Wysocki wrote: On Thu, Apr 1, 2021 at 1:26 AM Pierre-Louis Bossart wrote: remove make W=1 warnings drivers/base/power/runtime.c:926: warning: Function parameter or member 'timer' not described in 'pm_suspend_timer_fn' drivers/base/power/ru

Re: [PATCH 1/2] soundwire: add macro to selectively change error levels

2021-04-01 Thread Pierre-Louis Bossart
My bigger issue with this is that this macro is crazy. Why do you need debugging here at all for this type of thing? That's what ftrace is for, do not sprinkle code with "we got this return value from here!" all over the place like what this does. We are not sprinkling the code all over the

Re: [PATCH 1/2] soundwire: add macro to selectively change error levels

2021-04-01 Thread Pierre-Louis Bossart
On 4/1/21 3:56 PM, Greg KH wrote: On Thu, Apr 01, 2021 at 01:43:53PM -0500, Pierre-Louis Bossart wrote: My bigger issue with this is that this macro is crazy. Why do you need debugging here at all for this type of thing? That's what ftrace is for, do not sprinkle code with "w

Re: [PATCH v3] ASoC: Intel: sof_rt5682: Add ALC1015Q-VB speaker amp support

2021-03-17 Thread Pierre-Louis Bossart
On 3/17/21 6:08 AM, Brent Lu wrote: This patch adds jsl_rt5682_rt1015p which supports the RT5682 headset codec and ALC1015Q-VB speaker amplifier combination on JasperLake platform. This driver also supports ALC1015Q-CG if running in auto-mode. Following table shows the audio interface support

Re: [PATCH v3] ASoC: Intel: sof_rt5682: Add ALC1015Q-VB speaker amp support

2021-03-18 Thread Pierre-Louis Bossart
adding a new driver for it. ok, that's fine. Acked-by: Pierre-Louis Bossart

Re: [PATCH] ASoC: Intel: bytcr_wm5102: remove useless variable

2021-04-09 Thread Pierre-Louis Bossart
On 4/9/21 1:08 AM, Jiapeng Chong wrote: Fix the following gcc warning: sound/soc/intel/boards/bytcr_wm5102.c:216:40: warning: ‘byt_wm5102_dai_params’ defined but not used. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong Thanks for the patch. Acked-by: Pierre-Louis Bossart

Re: [PATCH] ASoC: amd: Add support for ALC1015P codec in acp3x machine driver

2021-04-05 Thread Pierre-Louis Bossart
   static const struct acpi_device_id acp3x_audio_acpi_match[] = {    { "AMDI5682", (unsigned long)&acp3x_5682},    { "AMDI1015", (unsigned long)&acp3x_1015}, +    { "AMDP1015", (unsigned long)&acp3x_1015p}, This isn't a valid ACPI ID. AMDP does not exist in ... There was a simi

Re: [RFC PATCH 1/2] soundwire: add support for static port mapping

2021-02-19 Thread Pierre-Louis Bossart
It seems you are in a different solution-space, where the codec driver needs to notify the master of which ports it needs to use? Correct! As Codec is the place where we have mixer controls ant it can clearly tell which master ports should be used for that particular configuration. And that

[PATCH 0/9] ASoC: fsl: remove cppcheck warnings

2021-02-19 Thread Pierre-Louis Bossart
Nothing critical and no functional changes. The only change that needs attention if the 'fsl_ssi: remove unnecessary tests' patch, where variables are to zero, then tested to set register fields. Either the tests are indeed redundant or the entire programming sequence is incorrect. Pi

[PATCH 2/9] ASoC: fsl: fsl_dma: remove unused variable

2021-02-19 Thread Pierre-Louis Bossart
remove declaration as well. Signed-off-by: Pierre-Louis Bossart --- sound/soc/fsl/fsl_dma.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sound/soc/fsl/fsl_dma.c b/sound/soc/fsl/fsl_dma.c index e0c39c5f4854..84bd8a5356eb 100644 --- a/sound/soc/fsl/fsl_dma.c +++ b/sound/soc/fsl/fsl_dma.

[PATCH 1/9] ASoC: fsl: fsl_asrc: remove useless assignment

2021-02-19 Thread Pierre-Louis Bossart
cppcheck warning: sound/soc/fsl/fsl_asrc.c:613:8: style: Variable 'i' is assigned a value that is never used. [unreadVariable] int i = 0, j = 0; ^ The same issue occurs for the 'j' variable. Signed-off-by: Pierre-Louis Bossart --- sound/soc/fsl/fsl_asrc.c | 2 +

[PATCH 3/9] ASoC: fsl: fsl_easrc: remove useless assignments

2021-02-19 Thread Pierre-Louis Bossart
:11: style: Variable 'size' is assigned a value that is never used. [unreadVariable] int size = 0; ^ Signed-off-by: Pierre-Louis Bossart --- sound/soc/fsl/fsl_easrc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/fsl/fsl_easrc.c b/sound/soc/f

[PATCH 5/9] ASoC: fsl: fsl_ssi: remove unnecessary tests

2021-02-19 Thread Pierre-Louis Bossart
is, the variables 'div2' and 'psr' are set to zero and never modified. All the tests can be removed. Signed-off-by: Pierre-Louis Bossart --- sound/soc/fsl/fsl_ssi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_s

[PATCH 4/9] ASoC: fsl: fsl_esai: clarify expression

2021-02-19 Thread Pierre-Louis Bossart
cppcheck warning: sound/soc/fsl/fsl_esai.c:307:16: style: Clarify calculation precedence for '%' and '?'. [clarifyCalculation] clk_id % 2 ? "extal" : "fsys"); ^ Signed-off-by: Pierre-Louis Bossart --- sound/soc/fsl/fsl_esai.c |

[PATCH 7/9] ASoC: fsl: mpc5200: signed parameter in snprintf format

2021-02-19 Thread Pierre-Louis Bossart
lso fix sizeof use, missing parentheses reported by checkpatch.pl Signed-off-by: Pierre-Louis Bossart --- sound/soc/fsl/mpc5200_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/mpc5200_dma.c b/sound/soc/fsl/mpc5200_dma.c index 231984882176..6c65cd858b0b 1

[PATCH 8/9] ASoC: fsl: mpc8610: remove useless assignment

2021-02-19 Thread Pierre-Louis Bossart
193:10: note: ret is initialized int ret = -ENODEV; ^ sound/soc/fsl/mpc8610_hpcd.c:333:6: note: ret is overwritten ret = fsl_asoc_get_dma_channel(np, "fsl,playback-dma", ^ Signed-off-by: Pierre-Louis Bossart --- sound/soc/fsl/mpc8610_hpcd.c | 2 +- 1 file changed, 1 insertion

[PATCH 6/9] ASoC: fsl: imx-hdmi: remove unused structure members

2021-02-19 Thread Pierre-Louis Bossart
cppcheck warning: sound/soc/fsl/imx-hdmi.c:21:16: style: struct member 'cpu_priv::sysclk_freq' is never used. [unusedStructMember] unsigned long sysclk_freq[2]; ^ Additional checks show the sysclk_dir member is also not used. Signed-off-by: Pierre-Louis Bossart ---

[PATCH 9/9] ASoC: fsl: p1022_ds: remove useless assignment

2021-02-19 Thread Pierre-Louis Bossart
1022_ds.c:203:10: note: ret is initialized int ret = -ENODEV; ^ sound/soc/fsl/p1022_ds.c:344:6: note: ret is overwritten ret = fsl_asoc_get_dma_channel(np, "fsl,playback-dma", &mdata->dai[0], ^ Signed-off-by: Pierre-Louis Bossart --- sound/soc/fsl/p1022_ds.c | 2 +-

Re: linux-next: build failure after merge of the regmap tree

2020-11-30 Thread Pierre-Louis Bossart
On 11/30/20 11:59 AM, Mark Brown wrote: On Fri, Nov 27, 2020 at 06:24:11PM +1100, Stephen Rothwell wrote: Caused by commit 6f4a038b9967 ("ASoC/SoundWire: rt715-sdca: First version of rt715 sdw sdca codec driver") I have reverted that commit for today. I'll drop this, hopefully it can

Re: linux-next: build failure after merge of the regmap tree

2020-11-30 Thread Pierre-Louis Bossart
I'll drop this, hopefully it can be re-added in future. We fixed this problem in October, must be a patch that wasn't merged while upstreaming. If you give me 2-3 hours I can send the fix. I already pushed out the revert (but we can re-apply), and I'm also about to send another mail about

Re: [PATCH 5/5] ASoC/SoundWire: rt711-sdca: Add RT711 SDCA vendor-specific driver

2020-11-30 Thread Pierre-Louis Bossart
On 11/30/20 12:17 PM, Mark Brown wrote: On Wed, Nov 04, 2020 at 01:22:26AM +0800, Bard Liao wrote: From: Shuming Fan This is the initial codec driver for rt711 SDCA version. This and the rt1316 change are failing to build for me on both the regmap tree and a merge of this branch into the

Re: [PATCH] soundwire: Fix error return code in sdw_compute_port_params

2020-11-30 Thread Pierre-Louis Bossart
. The test covers a very unlikely error scenario but nevertheless not a zero probability so the suggested fix makes sense to me. Reviewed-by: Pierre-Louis Bossart --- drivers/soundwire/generic_bandwidth_allocation.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers

Re: [PATCH v2] ASoC: intel: sof_rt5682: Add support for tgl_rt1011_rt5682

2020-12-04 Thread Pierre-Louis Bossart
: Pierre-Louis Bossart

Re: [PATCH] soundwire: intel: fix another unused-function warning

2020-12-04 Thread Pierre-Louis Bossart
78eddbb4 ("soundwire: intel: add pm_runtime support") Signed-off-by: Arnd Bergmann Thanks for the patch Arnd, indeed that's a miss. Reviewed-by: Pierre-Louis Bossart --- drivers/soundwire/intel.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/

[PATCH] ACPI: fan: fix warning with CONFIG_DEBUG_LOCK_ALLOC

2020-12-04 Thread Pierre-Louis Bossart
ned-off-by: Pierre-Louis Bossart --- drivers/acpi/fan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/acpi/fan.c b/drivers/acpi/fan.c index 66c3983f0ccc..9cab806298ff 100644 --- a/drivers/acpi/fan.c +++ b/drivers/acpi/fan.c @@ -357,6 +357,7 @@ static int acpi_fan_get_fps(struct acpi_devi

Re: [PATCH 5/7] regmap: sdw: use no_pm routines for SoundWire 1.2 MBQ

2020-12-05 Thread Pierre-Louis Bossart
MODULE_DESCRIPTION("Regmap SoundWire MBQ Module"); -MODULE_LICENSE("GPL v2"); +MODULE_LICENSE("GPL"); Why do you want to change this ? We only use MODULE_LICENSE("GPL") for new contributions since 'GPL v2' does not bring any information on the license, is equivalent to 'GPL' and only ex

Re: [PATCH 4/7] soundwire/regmap: use _no_pm functions in regmap_read/write

2020-12-05 Thread Pierre-Louis Bossart
-static int sdw_write_no_pm(struct sdw_slave *slave, u32 addr, u8 value) +int sdw_write_no_pm(struct sdw_slave *slave, u32 addr, u8 value) { return sdw_nwrite_no_pm(slave, addr, 1, &value); } +EXPORT_SYMBOL(sdw_write_no_pm); Why not export this is patch 1..? yes, good point. I g

Re: [PATCH 1/7] soundwire: bus: use sdw_update_no_pm when initializing a device

2020-12-05 Thread Pierre-Louis Bossart
Thanks for the review Vinod. On 12/5/20 1:45 AM, Vinod Koul wrote: On 03-12-20, 04:46, Bard Liao wrote: From: Pierre-Louis Bossart When a Slave device is resumed, it may resume the bus and restart the enumeration. During that process, we absolutely don't want to call regular read/

Re: [PATCH v2 0/5] regmap/SoundWire/ASoC: Add SoundWire SDCA support

2020-12-01 Thread Pierre-Louis Bossart
On 11/30/20 10:11 PM, Vinod Koul wrote: On 01-12-20, 02:42, Liao, Bard wrote: Hi Vinod/Mark, Could we take this series into Vinod's tree with Mark's Acked-by? It failed to build on Mark's tree. I see Mark has already applied 1-3 .. Sorry, I thought Mark had reversed the entire series.

Re: [PATCH] ASoC: intel: sof_rt5682: Add support for tgl_rt1011_rt5682

2020-12-02 Thread Pierre-Louis Bossart
+struct { + unsigned int tx; + unsigned int rx; +} rt1011_tdm_mask[] = { + {.tx = 0x4, .rx = 0x1}, + {.tx = 0x8, .rx = 0x2}, +}; as noted in the GitHub review this should be static and possibly const.

Re: [PATCH v4 1/2] platform/x86: dell-privacy: Add support for Dell hardware privacy

2021-03-01 Thread Pierre-Louis Bossart
diff --git a/drivers/platform/x86/Makefile b/drivers/platform/x86/Makefile index 581475f59819..18c430456de7 100644 --- a/drivers/platform/x86/Makefile +++ b/drivers/platform/x86/Makefile @@ -51,7 +51,9 @@ obj-$(CONFIG_DELL_WMI_DESCRIPTOR) += dell-wmi-descriptor.o obj-$(CONFIG_DELL_WMI_AIO

Re: [PATCH v4 2/2] ASoC: rt715:add micmute led state control supports

2021-03-01 Thread Pierre-Louis Bossart
On 3/1/21 3:38 AM, Perry Yuan wrote: From: Perry Yuan Some new Dell system is going to support audio internal micphone privacy setting from hardware level with micmute led state changing When micmute hotkey pressed by user, soft mute will need to be enabled firstly in case of pop noise, and

Re: [PATCH v4 0/9] soundwire: qcom: various improvements

2021-03-12 Thread Pierre-Louis Bossart
above issues. Tested it on SM8250 MTP with 2x WSA881x speakers, HeadPhones on WCD938x via lpass-rx-macro and Analog MICs via lpass-tx-macro. Also tested on DragonBoard DB845c with 2xWSA881x speakers. LGTM, for the series Reviewed-by: Pierre-Louis Bossart Changes since v3: - Fixed

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