Re: (subset) [PATCH v2 0/7] Initial support for the Fairphone 5 smartphone

2023-09-25 Thread Srinivas Kandagatla
ges or > depend on patches that are not yet merged. I will work on sending those > once these base patches here have settled. > > [...] Applied, thanks! [2/7] nvmem: qfprom: Mark core clk as optional commit: 844ac302b2aa81c47a4323fc34a0a454cc749dbc Best regards, -- Srinivas Kandagatla

Re: [PATCH v4 1/9] ASoC: dt-bindings: wcd938x: add bindings for wcd938x

2021-04-15 Thread Srinivas Kandagatla
On 15/04/2021 17:29, Rob Herring wrote: +codec { +compatible = "qcom,wcd9380-codec"; +reset-gpios = < 32 0>; +#sound-dai-cells = <1>; +qcom,tx-device = <_tx>; +qcom,rx-device = <_rx>; +qcom,micbias1-microvolt = <180>; +

Re: [PATCH v4 4/9] ASoC: dt-bindings: wcd938x-sdw: add bindings for wcd938x-sdw

2021-04-15 Thread Srinivas Kandagatla
On 15/04/2021 17:39, Rob Herring wrote: On Wed, Apr 14, 2021 at 04:48:40PM +0100, Srinivas Kandagatla wrote: 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. This bindings is for those

Re: [PATCH v4 1/9] ASoC: dt-bindings: wcd938x: add bindings for wcd938x

2021-04-15 Thread Srinivas Kandagatla
Thanks Rob for quick review, On 15/04/2021 17:29, Rob Herring wrote: On Wed, Apr 14, 2021 at 04:48:37PM +0100, Srinivas Kandagatla wrote: Qualcomm WCD9380/WCD9385 Codec is a standalone Hi-Fi audio codec IC connected over SoundWire. This device has two SoundWire device RX and TX respectively

Re: [PATCH] ASoC: codecs: wcd934x: Fix missing IRQF_ONESHOT as only threaded handler

2021-04-15 Thread Srinivas Kandagatla
On 15/04/2021 08:38, zhuguangqin...@gmail.com wrote: From: Guangqing Zhu Coccinelle noticed: sound/soc/codecs/wcd934x.c:5041:7-32: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT Signed-off-by: Guangqing Zhu --- Thanks for the patch, Reviewed-by: Srinivas

[PATCH v4 7/9] ASoC: codecs: wcd938x: add playback dapm widgets

2021-04-14 Thread Srinivas Kandagatla
This patch adds required dapm widgets for playback. Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/wcd938x.c | 687 + 1 file changed, 687 insertions(+) diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c index ae503d1d6379

[PATCH v4 8/9] ASoC: codecs: wcd938x: add capture dapm widgets

2021-04-14 Thread Srinivas Kandagatla
This patch adds required dapm widgets for capture path. Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/wcd938x.c | 785 + 1 file changed, 785 insertions(+) diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c index bfd8d8ea6f04

[PATCH v4 6/9] ASoC: codecs: wcd938x: add basic controls

2021-04-14 Thread Srinivas Kandagatla
This patch adds basic controls found in wcd938x codec. Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/wcd938x.c | 409 + 1 file changed, 409 insertions(+) diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c index 0803b5e72326

[PATCH v4 9/9] ASoC: codecs: wcd938x: add audio routing

2021-04-14 Thread Srinivas Kandagatla
This patch adds audio routing for both playback and capture. Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/wcd938x.c | 94 ++ 1 file changed, 94 insertions(+) diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c index 05e1b0fc4f5f

[PATCH v4 4/9] ASoC: dt-bindings: wcd938x-sdw: add bindings for wcd938x-sdw

2021-04-14 Thread Srinivas Kandagatla
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. This bindings is for those slave devices on WCD9380/WCD9385. Signed-off-by: Srinivas Kandagatla --- .../bindings/sound/qcom,wcd938x

[PATCH v4 5/9] ASoC: codecs: wcd938x-sdw: add SoundWire driver

2021-04-14 Thread Srinivas Kandagatla
This patch adds support to SoundWire devices on WCD9380/WCD9385 Codec Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/Kconfig | 9 ++ sound/soc/codecs/Makefile | 2 + sound/soc/codecs/wcd938x-sdw.c | 230 + 3 files changed, 241 insertions

[PATCH v4 2/9] ASoC: codecs: wcd-clsh: add new version support

2021-04-14 Thread Srinivas Kandagatla
>From WCD937X Class H controller has changed significantly, so add support to this new version for WCD937X and WCD938X Codecs. Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/wcd-clsh-v2.c | 348 - sound/soc/codecs/wcd-clsh-v2.h | 16 ++ 2 files chan

[PATCH v4 3/9] ASoC: codecs: wcd938x: add basic driver

2021-04-14 Thread Srinivas Kandagatla
This patch adds basic SoundWire codec driver to support for WCD938X TX and RX devices. Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/Kconfig |4 + sound/soc/codecs/Makefile |2 + sound/soc/codecs/wcd938x.c | 1811 sound/soc/codecs

[PATCH v4 1/9] ASoC: dt-bindings: wcd938x: add bindings for wcd938x

2021-04-14 Thread Srinivas Kandagatla
Qualcomm WCD9380/WCD9385 Codec is a standalone Hi-Fi audio codec IC connected over SoundWire. This device has two SoundWire device RX and TX respectively, supporting 4 x ADCs, ClassH, Ear, Aux PA, 2xHPH, 7 x TX diff inputs, 8 DMICs, MBHC. Signed-off-by: Srinivas Kandagatla --- .../bindings

[PATCH v4 0/9] ASoC: codecs: add wcd938x support

2021-04-14 Thread Srinivas Kandagatla
for reviewing v3. Changes since v3: - Moved to using driver component framework - Added device links to allow correct runtime PM - added runtime pm support - split codec bindings into two parts one for codec and other for soundwire device. - Srinivas Kandagatla (9): ASoC: dt-bindings: wcd938x: add

Re: [PATCH 4/5] ASoC: lpass: use the clock provider API

2021-04-12 Thread Srinivas Kandagatla
On 12/04/2021 13:17, Jerome Brunet wrote: -return of_clk_add_provider(np, of_clk_src_simple_get, va->hw.clk); + return devm_of_clk_add_hw_provider(dev, of_clk_hw_simple_get, >hw); Now that we convert this to devm, You missed error path and driver remove where we delete clk

Re: [PATCH -next] nvmem: sprd: Add missing MODULE_DEVICE_TABLE

2021-04-12 Thread Srinivas Kandagatla
On 10/04/2021 04:50, Bixuan Cui wrote: This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as an external module. Reported-by: Hulk Robot Signed-off-by: Bixuan Cui --- Applied thanks, --srini

Re: [PATCH 4/5] ASoC: lpass: use the clock provider API

2021-04-12 Thread Srinivas Kandagatla
Thanks Jerome for the patch, On 10/04/2021 12:13, Jerome Brunet wrote: Clock providers should be registered using the clk_hw API. Signed-off-by: Jerome Brunet --- sound/soc/codecs/lpass-va-macro.c | 2 +- sound/soc/codecs/lpass-wsa-macro.c | 9 +++-- 2 files changed, 4

Re: [RESEND PATCH] arm64: dts: qcom: sdm845-xiaomi-beryllium: Add audio support

2021-04-12 Thread Srinivas Kandagatla
MIC2", "MIC BIAS2", + "AMIC3", "MIC BIAS3", + "MM_DL1", "MultiMedia1 Playback", + "MM_DL2", "MultiMedia2 Playback", + "MultiMedia3 Capture", "MM_UL3&q

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

2021-04-01 Thread Srinivas Kandagatla
On 01/04/2021 15:36, Pierre-Louis Bossart wrote: 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

[PATCH] soundwire: qcom: cleanup internal port config indexing

2021-04-01 Thread Srinivas Kandagatla
confusing to the reader so, make this bit more obvious by only copying the parameters to offset 1 instead of zero. This will avoid doing -1 every time when we try to get port params. Similar thing has been recently done with din/dout_port_mask. Signed-off-by: Srinivas Kandagatla --- drivers

[PATCH] soundwire: qcom: handle return correctly in qcom_swrm_transport_params

2021-04-01 Thread Srinivas Kandagatla
Looks like return from reg_write is set but not checked. Fix this by adding error return path. Reported-by: coverity-bot Addresses-Coverity-ID: 1503591 ("UNUSED_VALUE") Fixes: 128eaf937adb ("soundwire: qcom: add support to missing transport params") Signed-off-by:

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

2021-04-01 Thread Srinivas Kandagatla
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. Signed-off-by: Srinivas Kandagatla --- Changes since v1: merged some

[PATCH 2/2] ASoC: codecs: lpass-rx-macro: set npl clock rate correctly

2021-03-31 Thread Srinivas Kandagatla
NPL clock rate is twice the MCLK rate, so set this correctly to avoid soundwire timeouts. Fixes: af3d54b99764 ("ASoC: codecs: lpass-rx-macro: add support for lpass rx macro") Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/lpass-rx-macro.c | 2 +- 1 file changed, 1 inser

[PATCH 1/2] ASoC: codecs: lpass-tx-macro: set npl clock rate correctly

2021-03-31 Thread Srinivas Kandagatla
NPL clock rate is twice the MCLK rate, so set this correctly to avoid soundwire timeouts. Fixes: c39667ddcfc5 ("ASoC: codecs: lpass-tx-macro: add support for lpass tx macro") Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/lpass-tx-macro.c | 2 +- 1 file changed, 1 inser

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

2021-03-31 Thread Srinivas Kandagatla
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. Signed-off-by: Srinivas Kandagatla --- drivers/soundwire/qcom.c | 74

Re: [PATCH v7 2/2] arm64: dts: qcom: Add sound node for sc7180-trogdor-coachz

2021-03-31 Thread Srinivas Kandagatla
On 14/03/2021 06:10, Srinivasa Rao Mandadapu wrote: This is a trgodor variant, required to have sound node variable for coachz specific platform. Signed-off-by: Srinivasa Rao Mandadapu Reviewed-by: Stephen Boyd --- Reviewed-by: Srinivas Kandagatla arch/arm64/boot/dts/qcom/sc7180

Re: [PATCH v7 1/2] arm64: dts: qcom: sc7180-trogdor: Add lpass dai link for I2S driver

2021-03-31 Thread Srinivas Kandagatla
Sujith Kumar Reddy Signed-off-by: Srinivasa Rao Mandadapu --- LGTM, Reviewed-by: Srinivas Kandagatla arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 58 1 file changed, 58 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi b/arch/arm64/boot/dts/qcom

[PATCH v6 9/9] soundwire: qcom: wait for enumeration to be complete in probe

2021-03-30 Thread Srinivas Kandagatla
Signed-off-by: Srinivas Kandagatla Reviewed-by: Pierre-Louis Bossart --- drivers/soundwire/qcom.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c index b1dbaf8263e5..b08ecb9b418c 100644 --- a/drivers/soundwire/qcom.c +++ b/drivers

[PATCH v6 7/9] soundwire: export sdw_compare_devid, sdw_extract_slave_id and sdw_slave_add

2021-03-30 Thread Srinivas Kandagatla
Exporting these three functions makes sense as it can be used by other controllers like Qualcomm during auto-enumeration! Reported-by: kernel test robot Signed-off-by: Srinivas Kandagatla --- drivers/soundwire/bus.c | 4 +++- drivers/soundwire/slave.c | 1 + include/linux/soundwire

[PATCH v6 8/9] soundwire: qcom: add auto enumeration support

2021-03-30 Thread Srinivas Kandagatla
Qualcomm SoundWire controller supports Auto Enumeration of the devices within the IP. This patch enables support for this feature. Signed-off-by: Srinivas Kandagatla Reviewed-by: Pierre-Louis Bossart --- drivers/soundwire/qcom.c | 86 +--- 1 file changed, 81

[PATCH v6 6/9] soundwire: qcom: add support to new interrupts

2021-03-30 Thread Srinivas Kandagatla
-by: Srinivas Kandagatla Reviewed-by: Pierre-Louis Bossart --- drivers/soundwire/qcom.c | 161 --- 1 file changed, 135 insertions(+), 26 deletions(-) diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c index faa4c84dcf61..1ad07784db4b 100644 --- a/drivers

[PATCH v6 5/9] soundwire: qcom: update register read/write routine

2021-03-30 Thread Srinivas Kandagatla
during streaming! Signed-off-by: Srinivas Kandagatla Reviewed-by: Pierre-Louis Bossart --- drivers/soundwire/qcom.c | 179 ++- 1 file changed, 100 insertions(+), 79 deletions(-) diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c index

[PATCH v6 3/9] soundwire: qcom: set continue execution flag for ignored commands

2021-03-30 Thread Srinivas Kandagatla
version 1.5.1 and higher IPs of this controller required to set continue execution on ignored command flag. This patch sets this flag. Signed-off-by: Srinivas Kandagatla Reviewed-by: Pierre-Louis Bossart --- drivers/soundwire/qcom.c | 11 ++- 1 file changed, 10 insertions(+), 1

[PATCH v6 2/9] soundwire: qcom: add support to missing transport params

2021-03-30 Thread Srinivas Kandagatla
Some of the transport parameters derived from device tree are not fully parsed by the driver. This patch adds support to parse those missing parameters. Signed-off-by: Srinivas Kandagatla Reviewed-by: Pierre-Louis Bossart --- drivers/soundwire/qcom.c | 106

[PATCH v6 4/9] soundwire: qcom: start the clock during initialization

2021-03-30 Thread Srinivas Kandagatla
Start the clock during initialization, doing this explicitly will add more clarity when we are adding clock stop feature. Signed-off-by: Srinivas Kandagatla Reviewed-by: Pierre-Louis Bossart --- drivers/soundwire/qcom.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/soundwire

[PATCH v6 1/9] dt-bindings: soundwire: qcom: clarify data port bus parameters

2021-03-30 Thread Srinivas Kandagatla
Some of the parameters for data ports are not applicable or not implemented in IP. So mark them as invalid/not applicable in DT so that controller is aware of this. Add comment to these bindings to provide more clarity on the values! Signed-off-by: Srinivas Kandagatla Acked-by: Rob Herring

[PATCH v6 0/9] soundwire: qcom: various improvements

2021-03-30 Thread Srinivas Kandagatla
speakers, HeadPhones on WCD938x via lpass-rx-macro and Analog MICs via lpass-tx-macro. Also tested on DragonBoard DB845c with 2xWSA881x speakers. Changes since v5: - Use BIT macro in interrupt routine - add comment for fifo write Srinivas Kandagatla (9): dt-bindings: soundwire

[PATCH 10/10] nvmem: qfprom: Add support for fuse blowing on sc7280

2021-03-30 Thread Srinivas Kandagatla
From: Rajendra Nayak Handle the differences across LDO voltage needed for blowing fuses, and the blow timer value, identified using a minor version of 15 on sc7280. Signed-off-by: Rajendra Nayak Signed-off-by: Ravi Kumar Bokka Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/qfprom.c

[PATCH 07/10] nvmem: core: Fix unintentional sign extension issue

2021-03-30 Thread Srinivas Kandagatla
-extension. Fix this by casting buf[i] to a u64 before the shift. Addresses-Coverity: ("Unintended sign extension") Fixes: 097eb1136ebb ("nvmem: core: Add functions to make number reading easy") Signed-off-by: Colin Ian King Reviewed-by: Douglas Anderson Signed-off-by:

[PATCH 06/10] nvmem: core: Add functions to make number reading easy

2021-03-30 Thread Srinivas Kandagatla
ese functions. Adding the "big endian" version would require adding "big endian" support to nvmem_shift_read_buffer_in_place(). Signed-off-by: Douglas Anderson Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/core.c | 95 ++ include/l

[PATCH 09/10] dt-bindings: nvmem: Add SoC compatible for sc7280

2021-03-30 Thread Srinivas Kandagatla
From: Rajendra Nayak Document SoC compatible for sc7280 Signed-off-by: Rajendra Nayak Acked-by: Rob Herring Signed-off-by: Srinivas Kandagatla --- Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings

[PATCH 05/10] nvmem: brcm_nvram: new driver exposing Broadcom's NVRAM

2021-03-30 Thread Srinivas Kandagatla
From: Rafał Miłecki This driver provides access to Broadcom's NVRAM. Signed-off-by: Rafał Miłecki Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/Kconfig | 9 + drivers/nvmem/Makefile | 2 + drivers/nvmem/brcm_nvram.c | 78 ++ 3 files

[PATCH 08/10] nvmem: rmem: fix undefined reference to memremap

2021-03-30 Thread Srinivas Kandagatla
) Reviewed-by: Nicolas Saenz Julienne Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvmem/Kconfig b/drivers/nvmem/Kconfig index 642ddc699fd1..dd2019006838 100644 --- a/drivers/nvmem/Kconfig +++ b/drivers/nvmem/Kconfig @@ -27

[PATCH 03/10] drivers: nvmem: Fix voltage settings for QTI qfprom-efuse

2021-03-30 Thread Srinivas Kandagatla
at a lower rate when we're not blowing fuses. Fixes: 93b4e49f8c86 ("nvmem: qfprom: Add fuse blowing support") Reported-by: Douglas Anderson Suggested-by: Douglas Anderson Signed-off-by: Ravi Kumar Bokka Reviewed-by: Douglas Anderson Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/qfp

[PATCH 04/10] dt-bindings: nvmem: add Broadcom's NVRAM

2021-03-30 Thread Srinivas Kandagatla
From: Rafał Miłecki Broadcom's NVRAM structure contains device data and can be accessed using I/O mapping. Signed-off-by: Rafał Miłecki Reviewed-by: Rob Herring Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/nvmem/brcm,nvram.yaml | 34 +++ 1 file changed, 34

[PATCH 01/10] dt-bindings: nvmem: mediatek: add support for MediaTek mt8192 SoC

2021-03-30 Thread Srinivas Kandagatla
From: Ryan Wu This updates dt-binding documentation for MediaTek mt8192 Signed-off-by: Ryan Wu Acked-by: Rob Herring Signed-off-by: Srinivas Kandagatla --- Documentation/devicetree/bindings/nvmem/mtk-efuse.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree

[PATCH 00/10] nvmem: patches (set 1) for 5.13

2021-03-30 Thread Srinivas Kandagatla
Srinivas Kandagatla (1): nvmem: rmem: fix undefined reference to memremap Zheng Yongjun (1): nvmem: convert comma to semicolon .../devicetree/bindings/nvmem/brcm,nvram.yaml | 34 +++ .../devicetree/bindings/nvmem/mtk-efuse.txt | 1 + .../bindings/nvmem/qcom,qfprom.yaml | 1

[PATCH 02/10] nvmem: convert comma to semicolon

2021-03-30 Thread Srinivas Kandagatla
From: Zheng Yongjun Replace a comma between expression statements by a semicolon. Signed-off-by: Zheng Yongjun Reviewed-by: Bjorn Andersson Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/qcom-spmi-sdam.c | 2 +- drivers/nvmem/snvs_lpgpr.c | 2 +- 2 files changed, 2 insertions

Re: [PATCH 1/2] dt-bindings: nvmem: Add SoC compatible for sc7280

2021-03-30 Thread Srinivas Kandagatla
On 25/03/2021 05:44, Rajendra Nayak wrote: Document SoC compatible for sc7280 Signed-off-by: Rajendra Nayak --- Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml

Re: [RFC PATCH 1/4] nvmem: core: allow specifying of_node

2021-03-30 Thread Srinivas Kandagatla
el Walle --- Patch is fine as it its. If you plan to take this via mtd tree here is my Ack Acked-by: Srinivas Kandagatla --srini drivers/nvmem/core.c | 4 +++- include/linux/nvmem-provider.h | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/nvmem/

Re: [RFC PATCH 0/4] mtd: core: OTP nvmem provider support

2021-03-30 Thread Srinivas Kandagatla
Hi Michael, On 22/03/2021 18:19, Michael Walle wrote: The goal is to fetch a (base) MAC address from the OTP region of a SPI NOR flash. This is the first part, where I try to add the nvmem provider support to the MTD core. I'm not sure about the device tree bindings. Consider the following

[PATCH v5 7/9] soundwire: export sdw_compare_devid, sdw_extract_slave_id and sdw_slave_add

2021-03-26 Thread Srinivas Kandagatla
Exporting these three functions makes sense as it can be used by other controllers like Qualcomm during auto-enumeration! Reported-by: kernel test robot Signed-off-by: Srinivas Kandagatla --- drivers/soundwire/bus.c | 4 +++- drivers/soundwire/slave.c | 1 + include/linux/soundwire

[PATCH v5 4/9] soundwire: qcom: start the clock during initialization

2021-03-26 Thread Srinivas Kandagatla
Start the clock during initialization, doing this explicitly will add more clarity when we are adding clock stop feature. Signed-off-by: Srinivas Kandagatla Reviewed-by: Pierre-Louis Bossart --- drivers/soundwire/qcom.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/soundwire

[PATCH v5 9/9] soundwire: qcom: wait for enumeration to be complete in probe

2021-03-26 Thread Srinivas Kandagatla
Signed-off-by: Srinivas Kandagatla Reviewed-by: Pierre-Louis Bossart --- drivers/soundwire/qcom.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c index c6c923329b15..706d44200a36 100644 --- a/drivers/soundwire/qcom.c +++ b/drivers

[PATCH v5 6/9] soundwire: qcom: add support to new interrupts

2021-03-26 Thread Srinivas Kandagatla
-by: Srinivas Kandagatla Reviewed-by: Pierre-Louis Bossart --- drivers/soundwire/qcom.c | 161 --- 1 file changed, 135 insertions(+), 26 deletions(-) diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c index 0cbd611fb8c6..6a563fb52444 100644 --- a/drivers

[PATCH v5 8/9] soundwire: qcom: add auto enumeration support

2021-03-26 Thread Srinivas Kandagatla
Qualcomm SoundWire controller supports Auto Enumeration of the devices within the IP. This patch enables support for this feature. Signed-off-by: Srinivas Kandagatla Reviewed-by: Pierre-Louis Bossart --- drivers/soundwire/qcom.c | 86 +--- 1 file changed, 81

[PATCH v5 5/9] soundwire: qcom: update register read/write routine

2021-03-26 Thread Srinivas Kandagatla
during streaming! Signed-off-by: Srinivas Kandagatla Reviewed-by: Pierre-Louis Bossart --- drivers/soundwire/qcom.c | 178 ++- 1 file changed, 99 insertions(+), 79 deletions(-) diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c index

[PATCH v5 3/9] soundwire: qcom: set continue execution flag for ignored commands

2021-03-26 Thread Srinivas Kandagatla
version 1.5.1 and higher IPs of this controller required to set continue execution on ignored command flag. This patch sets this flag. Signed-off-by: Srinivas Kandagatla Reviewed-by: Pierre-Louis Bossart --- drivers/soundwire/qcom.c | 11 ++- 1 file changed, 10 insertions(+), 1

[PATCH v5 2/9] soundwire: qcom: add support to missing transport params

2021-03-26 Thread Srinivas Kandagatla
Some of the transport parameters derived from device tree are not fully parsed by the driver. This patch adds support to parse those missing parameters. Signed-off-by: Srinivas Kandagatla Reviewed-by: Pierre-Louis Bossart --- drivers/soundwire/qcom.c | 107

[PATCH v5 0/9] soundwire: qcom: various improvements

2021-03-26 Thread Srinivas Kandagatla
speakers, HeadPhones on WCD938x via lpass-rx-macro and Analog MICs via lpass-tx-macro. Also tested on DragonBoard DB845c with 2xWSA881x speakers. Changes since v4: - exported sdw_slave_add as kernel test robot reported error Srinivas Kandagatla (9): dt-bindings: soundwire: qcom: clarify

[PATCH v5 1/9] dt-bindings: soundwire: qcom: clarify data port bus parameters

2021-03-26 Thread Srinivas Kandagatla
Some of the parameters for data ports are not applicable or not implemented in IP. So mark them as invalid/not applicable in DT so that controller is aware of this. Add comment to these bindings to provide more clarity on the values! Signed-off-by: Srinivas Kandagatla Acked-by: Rob Herring

Re: [PATCH] drivers: nvmem: Fix voltage settings for QTI qfprom-efuse

2021-03-25 Thread Srinivas Kandagatla
On 25/03/2021 07:15, Rajendra Nayak wrote: Looks right to me.  Assuming that this works. Reviewed-by: Douglas Anderson Srini, any plans to queue this up for merge?

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

2021-03-22 Thread Srinivas Kandagatla
On 19/03/2021 15:59, Pierre-Louis Bossart wrote: 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

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

2021-03-22 Thread Srinivas Kandagatla
Many thanks Pierre for reviewing the patches, On 19/03/2021 16:09, Pierre-Louis Bossart wrote: 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

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

2021-03-22 Thread Srinivas Kandagatla
On 19/03/2021 15:23, Pierre-Louis Bossart wrote: +static void wcd_clsh_v3_set_hph_mode(struct snd_soc_component *component, +  int mode) +{ +    u8 val = 0; initialization not needed. I agree, will remove this in next spin. + +    switch (mode) { +    case

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

2021-03-19 Thread Srinivas Kandagatla
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/wcd938x.c b/sound/soc/codecs/wcd938x.c index 31e3cf729568

[PATCH v3 5/7] ASoC: codecs: wcd938x: add playback dapm widgets

2021-03-19 Thread Srinivas Kandagatla
This patch adds required dapm widgets for playback. Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/wcd938x.c | 700 + 1 file changed, 700 insertions(+) diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c index 9b5dda775a17

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

2021-03-19 Thread Srinivas Kandagatla
This patch adds basic SoundWire codec driver to support for WCD938X TX and RX devices. Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/Kconfig |9 + sound/soc/codecs/Makefile |2 + sound/soc/codecs/wcd938x-sdw.c | 291 ++ sound/soc/codecs/wcd938x.c | 1615

[PATCH v3 6/7] ASoC: codecs: wcd938x: add capture dapm widgets

2021-03-19 Thread Srinivas Kandagatla
This patch adds required dapm widgets for capture path. Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/wcd938x.c | 796 + 1 file changed, 796 insertions(+) diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c index 59e41296a489

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

2021-03-19 Thread Srinivas Kandagatla
This patch adds basic controls found in wcd938x codec. Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/wcd938x.c | 415 + 1 file changed, 415 insertions(+) diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c index 9e8d588e2235

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

2021-03-19 Thread Srinivas Kandagatla
>From WCD937X Class H controller has changed significantly, so add support to this new version for WCD937X and WCD938X Codecs. Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/wcd-clsh-v2.c | 350 - sound/soc/codecs/wcd-clsh-v2.h | 16 ++ 2 files chan

[PATCH v3 1/7] ASoC: dt-bindings: wcd938x: add bindings for wcd938x

2021-03-19 Thread Srinivas Kandagatla
Qualcomm WCD9380/WCD9385 Codec is a standalone Hi-Fi audio codec IC connected over SoundWire. This device has two SoundWire device RX and TX respectively, supporting 4 x ADCs, ClassH, Ear, Aux PA, 2xHPH, 7 x TX diff inputs, 8 DMICs, MBHC. Signed-off-by: Srinivas Kandagatla --- .../bindings

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

2021-03-19 Thread Srinivas Kandagatla
, srini Many thanks for reviewing v2. Changes since v2: - fixed dt_binding_check error Srinivas Kandagatla (7): ASoC: dt-bindings: wcd938x: add bindings for wcd938x ASoC: codecs: wcd-clsh: add new version support ASoC: codecs: wcd938x: add basic driver ASoC: codecs: wcd938x: add

Re: [PATCH] dt-bindings: Drop type references on common properties

2021-03-17 Thread Srinivas Kandagatla
: Linus Walleij Cc: Bartosz Golaszewski Cc: Bjorn Andersson Cc: Krzysztof Kozlowski Cc: Marc Kleine-Budde Cc: "David S. Miller" Cc: Jakub Kicinski Cc: Srinivas Kandagatla Cc: Ohad Ben-Cohen Cc: Mark Brown Cc: Cheng-Yi Chiang Cc: Benson Leung Cc: Zhang Rui Cc: Daniel Lezcano Cc: Greg Kroah-

Re: [PATCH] dt-bindings: nvmem: use base meta-schema for consumer schema

2021-03-17 Thread Srinivas Kandagatla
On 16/03/2021 19:51, Rob Herring wrote: Common consumer schemas need to use the base.yaml meta-schema because they need to define different constraints (e.g. the type) from what users of the common schema need to define (e.g. how many entries). Cc: Srinivas Kandagatla Signed-off-by: Rob

[PATCH v2 6/7] ASoC: codecs: wcd938x: add capture dapm widgets

2021-03-16 Thread Srinivas Kandagatla
This patch adds required dapm widgets for capture path. Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/wcd938x.c | 796 + 1 file changed, 796 insertions(+) diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c index 59e41296a489

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

2021-03-16 Thread Srinivas Kandagatla
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/wcd938x.c b/sound/soc/codecs/wcd938x.c index 31e3cf729568

[PATCH v2 5/7] ASoC: codecs: wcd938x: add playback dapm widgets

2021-03-16 Thread Srinivas Kandagatla
This patch adds required dapm widgets for playback. Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/wcd938x.c | 700 + 1 file changed, 700 insertions(+) diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c index 9b5dda775a17

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

2021-03-16 Thread Srinivas Kandagatla
This patch adds basic SoundWire codec driver to support for WCD938X TX and RX devices. Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/Kconfig |9 + sound/soc/codecs/Makefile |2 + sound/soc/codecs/wcd938x-sdw.c | 291 ++ sound/soc/codecs/wcd938x.c | 1615

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

2021-03-16 Thread Srinivas Kandagatla
This patch adds basic controls found in wcd938x codec. Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/wcd938x.c | 415 + 1 file changed, 415 insertions(+) diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c index 9e8d588e2235

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

2021-03-16 Thread Srinivas Kandagatla
>From WCD937X Class H controller has changed significantly, so add support to this new version for WCD937X and WCD938X Codecs. Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/wcd-clsh-v2.c | 350 - sound/soc/codecs/wcd-clsh-v2.h | 16 ++ 2 files chan

[PATCH v2 1/7] ASoC: dt-bindings: wcd938x: add bindings for wcd938x

2021-03-16 Thread Srinivas Kandagatla
Qualcomm WCD9380/WCD9385 Codec is a standalone Hi-Fi audio codec IC connected over SoundWire. This device has two SoundWire device RX and TX respectively, supporting 4 x ADCs, ClassH, Ear, Aux PA, 2xHPH, 7 x TX diff inputs, 8 DMICs, MBHC. Signed-off-by: Srinivas Kandagatla --- .../bindings

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

2021-03-16 Thread Srinivas Kandagatla
the gain tlvs correctly - update dt-bindings to use microvolt for button thresholds - removed unnecessary debug at various places. Srinivas Kandagatla (7): ASoC: dt-bindings: wcd938x: add bindings for wcd938x ASoC: codecs: wcd-clsh: add new version support ASoC: codecs: wcd938x

[PATCH v4 4/5] ASoC: dt-bindings: wsa881x: add bindings for port mapping

2021-03-15 Thread Srinivas Kandagatla
WSA881x SoundWire device ports are statically assigned to master ports at design time. So add bindings required to specify these mappings! Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/sound/qcom,wsa881x.yaml | 9 + 1 file changed, 9 insertions(+) diff --git

[PATCH v4 3/5] soundwire: qcom: add static port map support

2021-03-15 Thread Srinivas Kandagatla
-by: Srinivas Kandagatla --- drivers/soundwire/qcom.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c index 9e70c53e2c7b..39222b04a2e0 100644 --- a/drivers/soundwire/qcom.c +++ b/drivers/soundwire/qcom.c @@ -460,6

[PATCH v4 5/5] ASoC: codecs: wsa881x: add static port map support

2021-03-15 Thread Srinivas Kandagatla
Two instances of WSA881x(Speaker Right, Speaker Left) ports are statically mapped to master ports. Allow the driver to parse those mappings from device tree. Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/wsa881x.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/sound/soc

[PATCH v4 2/5] soundwire: qcom: update port map allocation bit mask

2021-03-15 Thread Srinivas Kandagatla
currently the internal bitmask used for allocating ports starts with offset 0. This is bit confusing as data port numbers on Qualcomm controller are valid from 1 to 14. So adjust this bit mask accordingly, this will also help while adding static port map support. Signed-off-by: Srinivas

[PATCH v4 1/5] soundwire: add static port mapping support

2021-03-15 Thread Srinivas Kandagatla
is not possible in this cases! So this patch adds a new member m_port_map to struct sdw_slave to expose this static map. Signed-off-by: Srinivas Kandagatla --- include/linux/soundwire/sdw.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/soundwire/sdw.h b/include/linux/soundwire/sdw.h

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

2021-03-15 Thread Srinivas Kandagatla
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 Changes since v3: - updated kernel doc for more clarity on m_port_map Srinivas Kandagatla (5): soundwire: add static port mapping

[PATCH] nvmem: rmem: fix undefined reference to memremap

2021-03-15 Thread Srinivas Kandagatla
Fix below error reporte by kernel test robot rmem.c:(.text+0x14e): undefined reference to memremap s390x-linux-gnu-ld: rmem.c:(.text+0x1b6): undefined reference to memunmap Reported-by: kernel test robot Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/Kconfig | 1 + 1 file changed, 1

Re: [PATCH 1/7] ASoC: dt-bindings: wcd938x: add bindings for wcd938x

2021-03-15 Thread Srinivas Kandagatla
Thanks for your feedback, On 12/03/2021 15:21, Mark Brown wrote: On Thu, Mar 11, 2021 at 05:34:10PM +, Srinivas Kandagatla wrote: + qcom,mbhc-hphl-switch: +description: Indicates that HPHL switch type is normally closed! +type: boolean + + qcom,mbhc-ground-switch

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

2021-03-15 Thread Srinivas Kandagatla
On 12/03/2021 15:34, Mark Brown wrote: On Thu, Mar 11, 2021 at 05:34:12PM +, Srinivas Kandagatla wrote: +static int wcd9380_update_status(struct sdw_slave *slave, +enum sdw_slave_status status) +{ + return 0; +} + +static int wcd9380_port_prep

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

2021-03-15 Thread Srinivas Kandagatla
Thanks Mark for review, On 12/03/2021 15:55, Mark Brown wrote: On Thu, Mar 11, 2021 at 05:34:13PM +, Srinivas Kandagatla wrote: + if (wcd938x->variant == WCD9380) { switch statements please. + if (mode_val == CLS_H_HIFI || mode_val == CLS_AB_H

Re: [PATCH v3 1/5] soundwire: add static port mapping support

2021-03-15 Thread Srinivas Kandagatla
On 12/03/2021 16:56, Pierre-Louis Bossart wrote: On 3/12/21 5:39 AM, Srinivas Kandagatla wrote: Some of the SoundWire device ports are statically mapped to Controller ports during design, however there is no way to expose this information to the controller. Controllers like Qualcomm ones

[RESEND PATCH v3 5/5] ASoC: codecs: wsa881x: add static port map support

2021-03-12 Thread Srinivas Kandagatla
Two instances of WSA881x(Speaker Right, Speaker Left) ports are statically mapped to master ports. Allow the driver to parse those mappings from device tree. Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/wsa881x.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/sound/soc

[RESEND PATCH v3 2/5] soundwire: qcom: update port map allocation bit mask

2021-03-12 Thread Srinivas Kandagatla
currently the internal bitmask used for allocating ports starts with offset 0. This is bit confusing as data port numbers on Qualcomm controller are valid from 1 to 14. So adjust this bit mask accordingly, this will also help while adding static port map support. Signed-off-by: Srinivas

[RESEND PATCH v3 3/5] soundwire: qcom: add static port map support

2021-03-12 Thread Srinivas Kandagatla
-by: Srinivas Kandagatla --- drivers/soundwire/qcom.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c index 9e70c53e2c7b..39222b04a2e0 100644 --- a/drivers/soundwire/qcom.c +++ b/drivers/soundwire/qcom.c @@ -460,6

[RESEND PATCH v3 4/5] ASoC: dt-bindings: wsa881x: add bindings for port mapping

2021-03-12 Thread Srinivas Kandagatla
WSA881x SoundWire device ports are statically assigned to master ports at design time. So add bindings required to specify these mappings! Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/sound/qcom,wsa881x.yaml | 9 + 1 file changed, 9 insertions(+) diff --git

[RESEND PATCH v3 1/5] soundwire: add static port mapping support

2021-03-12 Thread Srinivas Kandagatla
is not possible in this cases! So this patch adds a new member m_port_map to struct sdw_slave to expose this static map. Signed-off-by: Srinivas Kandagatla --- include/linux/soundwire/sdw.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/soundwire/sdw.h b/include/linux/soundwire/sdw.h

  1   2   3   4   5   6   7   8   9   10   >