[PATCH v5 5/7] ASoC: qcom: dt-bindings: add bindings for lpass tx macro codec

2021-02-11 Thread Srinivas Kandagatla
This binding is for LPASS has internal codec TX macro which is for connecting with Soundwire TX codecs like WCD938x. Signed-off-by: Srinivas Kandagatla Reviewed-by: Rob Herring --- .../bindings/sound/qcom,lpass-tx-macro.yaml | 67 +++ 1 file changed, 67 insertions(+) create

[PATCH v5 0/7] ASoC: codecs: add support for LPASS Codec TX and RX macros

2021-02-11 Thread Srinivas Kandagatla
ively. Thanks, srini Changes since v4: - One more ktest fix for unused-but-set-variable warning and a fix for W=2 warning and removed unused macros - added bindings ack from Rob Srinivas Kandagatla (7): ASoC: qcom: dt-bindings: add bindings for lpass rx macro codec

[PATCH v5 1/7] ASoC: qcom: dt-bindings: add bindings for lpass rx macro codec

2021-02-11 Thread Srinivas Kandagatla
This binding is for LPASS has internal codec RX macro which is for connecting with SoundWire RX codecs like WCD938x. Signed-off-by: Srinivas Kandagatla Reviewed-by: Rob Herring --- .../bindings/sound/qcom,lpass-rx-macro.yaml | 62 +++ 1 file changed, 62 insertions(+) create

Re: [PATCH] misc: fastrpc: fix incorrect usage of dma_map_sgtable

2021-02-10 Thread Srinivas Kandagatla
On 08/02/2021 20:04, Jonathan Marek wrote: dma_map_sgtable() returns 0 on success, which is the opposite of what this code was doing. Fixes: 7cd7edb89437 ("misc: fastrpc: fix common struct sg_table related issues") Signed-off-by: Jonathan Marek --- Reviewed-by: Srinivas

[PATCH v4 6/7] ASoC: codecs: lpass-tx-macro: add support for lpass tx macro

2021-02-10 Thread Srinivas Kandagatla
Qualcomm LPASS (Low Power Audio SubSystem) has internal codec TX macro block which is used for connecting with external Soundwire TX Codecs like WCD938x. This patch adds support to the codec part of the TX Macro block Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/Kconfig

[PATCH v4 7/7] ASoC: codecs: lpass-tx-macro: add dapm widgets and route

2021-02-10 Thread Srinivas Kandagatla
This patch adds dapm widgets and routes on this codec Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/lpass-tx-macro.c | 685 ++ 1 file changed, 685 insertions(+) diff --git a/sound/soc/codecs/lpass-tx-macro.c b/sound/soc/codecs/lpass-tx-macro.c index

[PATCH v4 5/7] ASoC: qcom: dt-bindings: add bindings for lpass tx macro codec

2021-02-10 Thread Srinivas Kandagatla
This binding is for LPASS has internal codec TX macro which is for connecting with Soundwire TX codecs like WCD938x. Signed-off-by: Srinivas Kandagatla --- .../bindings/sound/qcom,lpass-tx-macro.yaml | 67 +++ 1 file changed, 67 insertions(+) create mode 100644 Documentation

[PATCH v4 4/7] ASoC: codecs: lpass-rx-macro: add iir widgets

2021-02-10 Thread Srinivas Kandagatla
This patch adds iir widgets and mixers on this codec Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/lpass-rx-macro.c | 264 ++ 1 file changed, 264 insertions(+) diff --git a/sound/soc/codecs/lpass-rx-macro.c b/sound/soc/codecs/lpass-rx-macro.c index

[PATCH v4 3/7] ASoC: codecs: lpass-rx-macro: add dapm widgets and route

2021-02-10 Thread Srinivas Kandagatla
This patch adds dapm widgets and routes on this codec Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/lpass-rx-macro.c | 1341 + 1 file changed, 1341 insertions(+) diff --git a/sound/soc/codecs/lpass-rx-macro.c b/sound/soc/codecs/lpass-rx-macro.c index

[PATCH v4 0/7] ASoC: codecs: add support for LPASS Codec TX and RX macros

2021-02-10 Thread Srinivas Kandagatla
ively. Thanks, srini Changes since v3: - fixed two minor warnings reported by kernel test robot using clang Srinivas Kandagatla (7): ASoC: qcom: dt-bindings: add bindings for lpass rx macro codec ASoC: codecs: lpass-rx-macro: add support for lpass rx macro ASoC: codecs: lpass-rx-macro

[PATCH v4 1/7] ASoC: qcom: dt-bindings: add bindings for lpass rx macro codec

2021-02-10 Thread Srinivas Kandagatla
This binding is for LPASS has internal codec RX macro which is for connecting with SoundWire RX codecs like WCD938x. Signed-off-by: Srinivas Kandagatla --- .../bindings/sound/qcom,lpass-rx-macro.yaml | 62 +++ 1 file changed, 62 insertions(+) create mode 100644 Documentation

[PATCH v4 2/7] ASoC: codecs: lpass-rx-macro: add support for lpass rx macro

2021-02-10 Thread Srinivas Kandagatla
LPASS RX Codec Macro is available in Qualcomm LPASS (Low Power Audio SubSystem). This is used for connecting with SoundWire devices like WCD938x Codecs to provide headphone/ear/lineout functionality. Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/Kconfig |5 + sound/soc

[PATCH v3 7/7] ASoC: codecs: lpass-tx-macro: add dapm widgets and route

2021-02-08 Thread Srinivas Kandagatla
This patch adds dapm widgets and routes on this codec Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/lpass-tx-macro.c | 685 ++ 1 file changed, 685 insertions(+) diff --git a/sound/soc/codecs/lpass-tx-macro.c b/sound/soc/codecs/lpass-tx-macro.c index

[PATCH v3 6/7] ASoC: codecs: lpass-tx-macro: add support for lpass tx macro

2021-02-08 Thread Srinivas Kandagatla
Qualcomm LPASS (Low Power Audio SubSystem) has internal codec TX macro block which is used for connecting with external Soundwire TX Codecs like WCD938x. This patch adds support to the codec part of the TX Macro block Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/Kconfig

[PATCH v3 2/7] ASoC: codecs: lpass-rx-macro: add support for lpass rx macro

2021-02-08 Thread Srinivas Kandagatla
LPASS RX Codec Macro is available in Qualcomm LPASS (Low Power Audio SubSystem). This is used for connecting with SoundWire devices like WCD938x Codecs to provide headphone/ear/lineout functionality. Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/Kconfig |5 + sound/soc

[PATCH v3 4/7] ASoC: codecs: lpass-rx-macro: add iir widgets

2021-02-08 Thread Srinivas Kandagatla
This patch adds iir widgets and mixers on this codec Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/lpass-rx-macro.c | 264 ++ 1 file changed, 264 insertions(+) diff --git a/sound/soc/codecs/lpass-rx-macro.c b/sound/soc/codecs/lpass-rx-macro.c index

[PATCH v3 3/7] ASoC: codecs: lpass-rx-macro: add dapm widgets and route

2021-02-08 Thread Srinivas Kandagatla
This patch adds dapm widgets and routes on this codec Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/lpass-rx-macro.c | 1339 + 1 file changed, 1339 insertions(+) diff --git a/sound/soc/codecs/lpass-rx-macro.c b/sound/soc/codecs/lpass-rx-macro.c index

[PATCH v3 1/7] ASoC: qcom: dt-bindings: add bindings for lpass rx macro codec

2021-02-08 Thread Srinivas Kandagatla
This binding is for LPASS has internal codec RX macro which is for connecting with SoundWire RX codecs like WCD938x. Signed-off-by: Srinivas Kandagatla --- .../bindings/sound/qcom,lpass-rx-macro.yaml | 62 +++ 1 file changed, 62 insertions(+) create mode 100644 Documentation

[PATCH v3 5/7] ASoC: qcom: dt-bindings: add bindings for lpass tx macro codec

2021-02-08 Thread Srinivas Kandagatla
This binding is for LPASS has internal codec TX macro which is for connecting with Soundwire TX codecs like WCD938x. Signed-off-by: Srinivas Kandagatla --- .../bindings/sound/qcom,lpass-tx-macro.yaml | 67 +++ 1 file changed, 67 insertions(+) create mode 100644 Documentation

[PATCH v3 0/7] ASoC: codecs: add support for LPASS Codec TX and RX macros

2021-02-08 Thread Srinivas Kandagatla
y and WCD938x TX and RX connected via Soundwire via TX and RX Macros reseptively. Thanks, srini Changes since v2: - Suffix some of the simple on/off control names with "Switch" Srinivas Kandagatla (7): ASoC: qcom: dt-bindings: add bindings for lpass rx macro codec ASoC: codecs:

Re: [PATCH v2 2/7] ASoC: codec: lpass-rx-macro: add support for lpass rx macro

2021-02-08 Thread Srinivas Kandagatla
On 08/02/2021 16:08, Mark Brown wrote: + SOC_SINGLE_EXT("RX_Softclip Enable", SND_SOC_NOPM, 0, 1, 0, +rx_macro_soft_clip_enable_get, +rx_macro_soft_clip_enable_put), + SOC_SINGLE_EXT("AUX_HPF Enable", SND_SOC_NOPM, 0, 1, 0, +

[PATCH v2 5/7] ASoC: qcom: dt-bindings: add bindings for lpass tx macro codec

2021-02-08 Thread Srinivas Kandagatla
This binding is for LPASS has internal codec TX macro which is for connecting with Soundwire TX codecs like WCD938x. Signed-off-by: Srinivas Kandagatla --- .../bindings/sound/qcom,lpass-tx-macro.yaml | 67 +++ 1 file changed, 67 insertions(+) create mode 100644 Documentation

[PATCH v2 6/7] ASoC: codec: lpass-tx-macro: add support for lpass tx macro

2021-02-08 Thread Srinivas Kandagatla
Qualcomm LPASS (Low Power Audio SubSystem) has internal codec TX macro block which is used for connecting with external Soundwire TX Codecs like WCD938x. This patch adds support to the codec part of the TX Macro block Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/Kconfig

[PATCH v2 7/7] ASoC: codec: lpass-tx-macro: add dapm widgets and route

2021-02-08 Thread Srinivas Kandagatla
This patch adds dapm widgets and routes on this codec Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/lpass-tx-macro.c | 685 ++ 1 file changed, 685 insertions(+) diff --git a/sound/soc/codecs/lpass-tx-macro.c b/sound/soc/codecs/lpass-tx-macro.c index

[PATCH v2 3/7] ASoC: codec: lpass-rx-macro: add dapm widgets and route

2021-02-08 Thread Srinivas Kandagatla
This patch adds dapm widgets and routes on this codec Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/lpass-rx-macro.c | 1339 + 1 file changed, 1339 insertions(+) diff --git a/sound/soc/codecs/lpass-rx-macro.c b/sound/soc/codecs/lpass-rx-macro.c index

[PATCH v2 1/7] ASoC: qcom: dt-bindings: add bindings for lpass rx macro codec

2021-02-08 Thread Srinivas Kandagatla
This binding is for LPASS has internal codec RX macro which is for connecting with SoundWire RX codecs like WCD938x. Signed-off-by: Srinivas Kandagatla --- .../bindings/sound/qcom,lpass-rx-macro.yaml | 62 +++ 1 file changed, 62 insertions(+) create mode 100644 Documentation

[PATCH v2 2/7] ASoC: codec: lpass-rx-macro: add support for lpass rx macro

2021-02-08 Thread Srinivas Kandagatla
Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/Kconfig |5 + sound/soc/codecs/Makefile |2 + sound/soc/codecs/lpass-rx-macro.c | 2001 + 3 files changed, 2008 insertions(+) create mode 100644 sound/soc/codecs/lpass-rx-macro.c diff

[PATCH v2 4/7] ASoC: codec: lpass-rx-macro: add iir widgets

2021-02-08 Thread Srinivas Kandagatla
This patch adds irr widgets and mixers on this codec Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/lpass-rx-macro.c | 264 ++ 1 file changed, 264 insertions(+) diff --git a/sound/soc/codecs/lpass-rx-macro.c b/sound/soc/codecs/lpass-rx-macro.c index

[PATCH v2 0/7] ASoC: codecs: add support for LPASS Codec TX and RX macros

2021-02-08 Thread Srinivas Kandagatla
aming! - inline swrm_clock function. Srinivas Kandagatla (7): ASoC: qcom: dt-bindings: add bindings for lpass rx macro codec ASoC: codec: lpass-rx-macro: add support for lpass rx macro ASoC: codec: lpass-rx-macro: add dapm widgets and route ASoC: codec: lpass-rx-macro: add iir widgets ASoC: qco

[PATCH 0/2] nvmem: patches (set 2) for 5.12

2021-02-05 Thread Srinivas Kandagatla
Hi Greg, Here are some last nvmem patches (set 2) for 5.12 which includes - fixing a typo in Kconfig - a fix of uninitialized pointer If its not too late, Can you please queue them up for 5.12. thanks for you help, srini Nicolas Saenz Julienne (1): nvmem: Kconfig: Correct typo in NVMEM_RMEM

[PATCH 2/2] nvmem: qcom-spmi-sdam: Fix uninitialized pdev pointer

2021-02-05 Thread Srinivas Kandagatla
ernel.org Signed-off-by: Subbaraman Narayanamurthy Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/qcom-spmi-sdam.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/nvmem/qcom-spmi-sdam.c b/drivers/nvmem/qcom-spmi-sdam.c index a72704cd0468..f6e9f96933ca 100

[PATCH 1/2] nvmem: Kconfig: Correct typo in NVMEM_RMEM

2021-02-05 Thread Srinivas Kandagatla
From: Nicolas Saenz Julienne s/drivers/driver/ as the configuration selects a single driver. Suggested-by: Randy Dunlap Signed-off-by: Nicolas Saenz Julienne Acked-by: Randy Dunlap Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1

Re: [RESEND PATCH] nvmem: qcom-spmi-sdam: Fix uninitialized pdev pointer

2021-02-04 Thread Srinivas Kandagatla
On 03/02/2021 18:15, Subbaraman Narayanamurthy wrote: "sdam->pdev" is uninitialized and it is used to print error logs. Fix it. Since device pointer can be used from sdam_config, use it directly thereby removing pdev pointer. Cc: sta...@vger.kernel.org Signed-off-by: Subbaraman Narayanamurthy

Re: [PATCH] nvmem: Kconfig: Correct typo in NVMEM_RMEM

2021-02-03 Thread Srinivas Kandagatla
On 03/02/2021 10:29, Nicolas Saenz Julienne wrote: s/drivers/driver/ as the configuration selects a single driver. Fixes: 2bf4fd065384 ("nvmem: Add driver to expose reserved memory as nvmem") Suggested-by: Randy Dunlap Signed-off-by: Nicolas Saenz Julienne --- drivers/nvmem/Kconfig | 2 +-

Re: [PATCH 5/6] soundwire: qcom: update register read/write routine

2021-02-02 Thread Srinivas Kandagatla
On 01/02/2021 16:42, Pierre-Louis Bossart wrote: On 2/1/21 9:50 AM, Srinivas Kandagatla wrote: On 29/01/2021 19:33, Pierre-Louis Bossart wrote: On 1/29/21 11:32 AM, Srinivas Kandagatla wrote: In the existing code every soundwire register read and register write are kinda blocked

[PATCH] ASoC: codecs: add missing max_register in regmap config

2021-02-01 Thread Srinivas Kandagatla
/0xb8 el0_sync+0x158/0x180 ... Fixes: a0aab9e1404a ("ASoC: codecs: add wsa881x amplifier support") Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/wsa881x.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/wsa881x.c b/sound/soc/codecs/wsa881x.c index 45

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

2021-02-01 Thread Srinivas Kandagatla
On 29/01/2021 19:38, Pierre-Louis Bossart wrote: On 1/29/21 11:32 AM, Srinivas Kandagatla wrote: Add support to new interrupts and update irq routine in a way to deal with multiple pending interrupts with in a single interrupt! I can't parse the wording after 'update irq routi

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

2021-02-01 Thread Srinivas Kandagatla
On 01/02/2021 14:31, Vinod Koul wrote: On 29-01-21, 17:32, Srinivas Kandagatla wrote: Add support to new interrupts and update irq routine in a way to deal with multiple pending interrupts with in a single interrupt! Signed-off-by: Srinivas Kandagatla --- drivers/soundwire/qcom.c | 191

Re: [PATCH 5/6] soundwire: qcom: update register read/write routine

2021-02-01 Thread Srinivas Kandagatla
On 01/02/2021 14:26, Vinod Koul wrote: On 29-01-21, 17:32, Srinivas Kandagatla wrote: In the existing code every soundwire register read and register write are kinda blocked. Each of these are using a special command id that generates interrupt after it successfully finishes. This is really

Re: [PATCH 4/6] soundwire: qcom: start the clock during initialization

2021-02-01 Thread Srinivas Kandagatla
On 01/02/2021 14:21, Vinod Koul wrote: On 29-01-21, 17:32, Srinivas Kandagatla wrote: Start the clock during initialization. A detailed log please, which clock..? Also how do older controllers work w/o this clk By default this is ON, however depending on that is not really reliable

Re: [PATCH 5/6] soundwire: qcom: update register read/write routine

2021-02-01 Thread Srinivas Kandagatla
On 29/01/2021 19:33, Pierre-Louis Bossart wrote: On 1/29/21 11:32 AM, Srinivas Kandagatla wrote: In the existing code every soundwire register read and register write are kinda blocked. Each of these are using a special command id that what does 'kinda blocked' mean? I

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

2021-02-01 Thread Srinivas Kandagatla
On 29/01/2021 19:20, Pierre-Louis Bossart wrote:   struct qcom_swrm_port_config {   u8 si;   u8 off1;   u8 off2;   u8 bp_mode; +    u8 hstart; +    u8 hstop; +    u8 word_length; +    u8 bgp_count; I couldn't figure out what 'bgp' was and had to search. Not sure how you ca

Re: [PATCH 3/6] soundwire: qcom: set continue execution flag for ignored commands

2021-02-01 Thread Srinivas Kandagatla
On 01/02/2021 14:16, Vinod Koul wrote: /* Configure number of retries of a read/write cmd */ - ctrl->reg_write(ctrl, SWRM_CMD_FIFO_CFG_ADDR, SWRM_RD_WR_CMD_RETRIES); + if (ctrl->version_major == 1 && ctrl->version_minor >= 5 && + ctrl->version_step >= 1) { why no

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

2021-02-01 Thread Srinivas Kandagatla
On 01/02/2021 14:13, Vinod Koul wrote: + + ret = of_property_read_u8_array(np, "qcom,ports-hstop", hstop, nports); + if (ret) + memset(hstop, SWR_INVALID_PARAM, QCOM_SDW_MAX_PORTS); why not memset the whole area here and then populate it..? That is other way to do

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

2021-01-29 Thread Srinivas Kandagatla
simply read/write the fifo that should also give exactly what we need! This will also allow to read/write registers in interrupt context, which was not possible with the special command approach. Signed-off-by: Srinivas Kandagatla --- drivers/soundwire/qcom.c | 148

[PATCH 0/6] soundwire: qcom: various improvements

2021-01-29 Thread Srinivas Kandagatla
. Srinivas Kandagatla (6): soundwire: qcom: add support to missing transport params soundwire: qcom: extract version field soundwire: qcom: set continue execution flag for ignored commands soundwire: qcom: start the clock during initialization soundwire: qcom: update register read/write routine

[PATCH 1/6] soundwire: qcom: add support to missing transport params

2021-01-29 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 --- drivers/soundwire/qcom.c | 107 +-- 1 file changed, 103 insertions

[PATCH 2/6] soundwire: qcom: extract version field

2021-01-29 Thread Srinivas Kandagatla
Extract version field to major, minor and step, so that we can add dynamic version checks to read/writes. This will help for controller versions that need specific bits to be programmed. Signed-off-by: Srinivas Kandagatla --- drivers/soundwire/qcom.c | 12 1 file changed, 8

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

2021-01-29 Thread Srinivas Kandagatla
Start the clock during initialization. Signed-off-by: Srinivas Kandagatla --- drivers/soundwire/qcom.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c index 3669bac11a32..83df15d83935 100644 --- a/drivers/soundwire/qcom.c +++ b/drivers

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

2021-01-29 Thread Srinivas Kandagatla
version 1.5.1 and higher IPs of this controller required to set continue execution on ingored command flag. This patch sets this flag. Signed-off-by: Srinivas Kandagatla --- drivers/soundwire/qcom.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers

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

2021-01-29 Thread Srinivas Kandagatla
Add support to new interrupts and update irq routine in a way to deal with multiple pending interrupts with in a single interrupt! Signed-off-by: Srinivas Kandagatla --- drivers/soundwire/qcom.c | 191 ++- 1 file changed, 146 insertions(+), 45 deletions

[PATCH 4/5] nvmem: Add driver to expose reserved memory as nvmem

2021-01-29 Thread Srinivas Kandagatla
expose this data to other drivers and user-space, the driver models the reserved memory area as an nvmem device. Signed-off-by: Nicolas Saenz Julienne Reviewed-by: Rob Herring Tested-by: Tim Gover Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/Kconfig | 8 drivers/nvmem/Makefile

[PATCH 5/5] nvmem: core: skip child nodes not matching binding

2021-01-29 Thread Srinivas Kandagatla
all nodes with a unit address must have a reg property and vice versa. Fixes: e888d445ac33 ("nvmem: resolve cells from DT at registration time"). Signed-off-by: Ahmad Fatoum Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/core.c | 4 +++- 1 file changed, 3 insertions(+), 1 d

[PATCH 1/5] nvmem: core: Fix a resource leak on error in nvmem_add_cells_from_of()

2021-01-29 Thread Srinivas Kandagatla
From: Dan Carpenter This doesn't call of_node_put() on the error path so it leads to a memory leak. Fixes: 0749aa25af82 ("nvmem: core: fix regression in of_nvmem_cell_get()") Signed-off-by: Dan Carpenter Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/core.c | 1 + 1

[PATCH 3/5] dt-bindings: nvmem: Add bindings for rmem driver

2021-01-29 Thread Srinivas Kandagatla
the dt-bindings to nvmem's rmem. Signed-off-by: Nicolas Saenz Julienne Reviewed-by: Rob Herring Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/nvmem/rmem.yaml | 49 +++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bin

[PATCH 2/5] nvmem: imx-iim: Use of_device_get_match_data()

2021-01-29 Thread Srinivas Kandagatla
From: Fabio Estevam The retrieval of driver data via of_device_get_match_data() can make the code simpler. Use of_device_get_match_data() to simplify the code. Signed-off-by: Fabio Estevam Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/imx-iim.c | 7 +-- 1 file changed, 1

[PATCH 0/5] nvmem: patches (set 1) for 5.12

2021-01-29 Thread Srinivas Kandagatla
Hi Greg, Here are some nvmem patches for 5.12 which includes - adding support to new rmem nvmem provider - a improvement in core to skip invalid node and a fix a leak - patch in imx driver to use of_device_get_match_data Can you please queue them up for 5.12. thanks for you help, srini Ahmad Fa

[PATCH 6/7] ASoC: codec: lpass-tx-macro: add support for lpass tx macro

2021-01-28 Thread Srinivas Kandagatla
Qualcomm LPASS (Low Power Audio SubSystem) has internal codec TX macro block which is used for connecting with external Soundwire TX Codecs like WCD938x. This patch adds support to the codec part of the TX Macro block Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/Kconfig

[PATCH 4/7] ASoC: codec: lpass-rx-macro: add iir widgets

2021-01-28 Thread Srinivas Kandagatla
This patch adds irr widgets and mixers on this codec Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/lpass-rx-macro.c | 264 ++ 1 file changed, 264 insertions(+) diff --git a/sound/soc/codecs/lpass-rx-macro.c b/sound/soc/codecs/lpass-rx-macro.c index

[PATCH 3/7] ASoC: codec: lpass-rx-macro: add dapm widgets and route

2021-01-28 Thread Srinivas Kandagatla
This patch adds dapm widgets and routes on this codec Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/lpass-rx-macro.c | 1339 + 1 file changed, 1339 insertions(+) diff --git a/sound/soc/codecs/lpass-rx-macro.c b/sound/soc/codecs/lpass-rx-macro.c index

[PATCH 7/7] ASoC: codec: lpass-tx-macro: add dapm widgets and route

2021-01-28 Thread Srinivas Kandagatla
This patch adds dapm widgets and routes on this codec Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/lpass-tx-macro.c | 685 ++ 1 file changed, 685 insertions(+) diff --git a/sound/soc/codecs/lpass-tx-macro.c b/sound/soc/codecs/lpass-tx-macro.c index

[PATCH 5/7] ASoC: qcom: dt-bindings: add bindings for lpass tx macro codec

2021-01-28 Thread Srinivas Kandagatla
This binding is for LPASS has internal codec TX macro which is for connecting with Soundwire TX codecs like WCD938x. Signed-off-by: Srinivas Kandagatla --- .../bindings/sound/qcom,lpass-tx-macro.yaml | 67 +++ 1 file changed, 67 insertions(+) create mode 100644 Documentation

[PATCH 2/7] ASoC: codec: lpass-rx-macro: add support for lpass rx macro

2021-01-28 Thread Srinivas Kandagatla
Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/Kconfig |5 + sound/soc/codecs/Makefile |2 + sound/soc/codecs/lpass-rx-macro.c | 2020 + 3 files changed, 2027 insertions(+) create mode 100644 sound/soc/codecs/lpass-rx-macro.c diff

[PATCH 0/7] ASoC: codecs: add support for LPASS Codec TX and RX macros

2021-01-28 Thread Srinivas Kandagatla
ively. Thanks, srini Srinivas Kandagatla (7): ASoC: qcom: dt-bindings: add bindings for lpass rx macro codec ASoC: codec: lpass-rx-macro: add support for lpass rx macro ASoC: codec: lpass-rx-macro: add dapm widgets and route ASoC: codec: lpass-rx-macro: add iir widgets ASoC: qcom: dt-bin

[PATCH 1/7] ASoC: qcom: dt-bindings: add bindings for lpass rx macro codec

2021-01-28 Thread Srinivas Kandagatla
This binding is for LPASS has internal codec RX macro which is for connecting with SoundWire RX codecs like WCD938x. Signed-off-by: Srinivas Kandagatla --- .../bindings/sound/qcom,lpass-rx-macro.yaml | 62 +++ 1 file changed, 62 insertions(+) create mode 100644 Documentation

Re: [PATCH v2] ASoC: qcom: lpass-cpu: Remove bit clock state check

2021-01-27 Thread Srinivas Kandagatla
opens twice for playaback/capture and closes once for capture and playback continues. It can resolve the errors in such scenarios. Fixes: b1824968221c ("ASoC: qcom: Fix enabling BCLK and LRCLK in LPAIF invalid state") Signed-off-by: Srinivasa Rao Mandadapu Reviewed-by: Srin

Re: [PATCH] ASoC: qcom: lpass-cpu: Remove bit clock state check

2021-01-27 Thread Srinivas Kandagatla
On 27/01/2021 10:54, Srinivasa Rao Mandadapu wrote: Actually this is MI2S OSR clock disable on failure of bit clock enable. Do You think it's redundant? My Bad!! Just ignore my comment on removing this! --srini

Re: [PATCH] ASoC: qcom: lpass-cpu: Remove bit clock state check

2021-01-27 Thread Srinivas Kandagatla
On 27/01/2021 06:30, Srinivasa Rao Mandadapu wrote: No need of BCLK state maintenance from driver side as clock_enable and clk_disable API's maintaing state counter. One of the major issue was spotted when Headset jack inserted while playback continues, due to same PCM device node opens twice

[PATCH v2 1/2] ASoC: soc-component: add snd_soc_component_read/write_field()

2021-01-26 Thread Srinivas Kandagatla
ess error prone! This also applies to writing! There are various places in kernel which provides such field interfaces however soc_component seems to be missing this. This patch is inspired by FIELD_GET/FIELD_PREP macros in include/linux/bitfield.h Signed-off-by: Srinivas Kandagatla --- C

[PATCH v2 2/2] ASoC: codecs: lpass-wsa-macro: make use of snd_soc_component_read_field()

2021-01-26 Thread Srinivas Kandagatla
Make use of snd_soc_component_read_field() to make the code more readable! Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/lpass-wsa-macro.c | 43 ++ 1 file changed, 20 insertions(+), 23 deletions(-) diff --git a/sound/soc/codecs/lpass-wsa-macro.c b/sound

Re: [RFC PATCH 1/2] ASoC: soc-component: add snd_soc_component_read/write_field()

2021-01-26 Thread Srinivas Kandagatla
On 26/01/2021 13:36, Mark Brown wrote: On Tue, Jan 26, 2021 at 12:20:19PM +, Srinivas Kandagatla wrote: +#define __soc_component_field_shift(x) (__builtin_ffs(x) - 1) Why not have this be a static inline? Sure, that makes it even better to validate the mask aswell! +unsigned int

[RFC PATCH 1/2] ASoC: soc-component: add snd_soc_component_read/write_field()

2021-01-26 Thread Srinivas Kandagatla
ess error prone! This also applies to writing! There are various places in kernel which provides such field interfaces however soc_component seems to be missing this. This patch is inspired by FIELD_GET/FIELD_PREP macros in include/linux/bitfield.h Signed-off-by: Srinivas Kandagatla --- in

[RFC PATCH 2/2] ASoC: codecs: lpass-wsa-macro: make use of snd_soc_component_read_field()

2021-01-26 Thread Srinivas Kandagatla
Make use of snd_soc_component_read_field() to make the code more readable! Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/lpass-wsa-macro.c | 43 ++ 1 file changed, 20 insertions(+), 23 deletions(-) diff --git a/sound/soc/codecs/lpass-wsa-macro.c b/sound

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

2021-01-25 Thread Srinivas Kandagatla
On 22/01/2021 16:42, Pierre-Louis Bossart wrote: if you completely remove the stream and re-add it with updated configuration things should work. That's exactly what we do currently! The updated ports due to new configuration ex: for "mic capture" dailink needs to be communicated from sl

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

2021-01-22 Thread Srinivas Kandagatla
On 22/01/2021 15:32, Pierre-Louis Bossart wrote: Are you suggesting that we have dailink for each usecase like: "headset capture" "Analog MIC1 capture" "Analog MIC2 Capture" ... "Analog MIC4 Capture" ... "DMIC0 capture" "DMIC1 Capture" "DMIC2 Capture" ... "DMIC7 Capture" .. "Headset Pl

Re: [PATCH v4] nvmem: core: skip child nodes not matching binding

2021-01-22 Thread Srinivas Kandagatla
On 18/01/2021 13:24, Ahmad Fatoum wrote: The nvmem cell binding applies to all eeprom child nodes matching "^.*@[0-9a-f]+$" without taking a compatible into account. Linux drivers, like at24, are even more extensive and assume _all_ at24 eeprom child nodes to be nvmem cells since e888d445ac33

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

2021-01-21 Thread Srinivas Kandagatla
On 21/01/2021 21:30, Pierre-Louis Bossart wrote: Am looking at intel_hw_params(). Isn't sdw_stream_add_master() called for every dai in the dai link. Yes, that's correct, but again a dai may use one or more ports. if you defined each port as a dai, and want to call sdw_stream_add_master(

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

2021-01-21 Thread Srinivas Kandagatla
On 21/01/2021 18:00, Pierre-Louis Bossart wrote: On 1/21/21 9:41 AM, Srinivas Kandagatla wrote: On 21/01/2021 14:56, Pierre-Louis Bossart wrote: Port allocations are something like this: RX: (Simple) Port 1 -> HPH L/R Port 2 -> CLASS H Amp Port 3 -> COMP Port 4 -> DSD

Re: [PATCH] soundwire: debugfs: use controller id instead of link_id

2021-01-21 Thread Srinivas Kandagatla
On 21/01/2021 15:12, Pierre-Louis Bossart wrote: On 1/21/21 6:03 AM, Srinivas Kandagatla wrote: On 19/01/2021 19:09, Pierre-Louis Bossart wrote: currently we have /sys/kernel/debug/soundwire/master-* Are you suggesting that we have something like this: /sys/kernel/debug/soundwire

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

2021-01-21 Thread Srinivas Kandagatla
On 21/01/2021 14:56, Pierre-Louis Bossart wrote: Port allocations are something like this: RX: (Simple) Port 1 -> HPH L/R Port 2 -> CLASS H Amp Port 3 -> COMP Port 4 -> DSD. TX: (This get bit more complicated) Port 1: PCM Port 2: ADC 1 & 2 Port 3: ADC 3 & 4 Port 4: DMIC-0, DMIC-1, DIMC-2

Re: [PATCH] soundwire: debugfs: use controller id instead of link_id

2021-01-21 Thread Srinivas Kandagatla
On 19/01/2021 19:09, Pierre-Louis Bossart wrote: currently we have /sys/kernel/debug/soundwire/master-* Are you suggesting that we have something like this: /sys/kernel/debug/soundwire/xyz-controller/master- ?? Yes this is what I was thinking about. Vinod/Pierre, One Question here, W

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

2021-01-21 Thread Srinivas Kandagatla
Thanks Pierre for your inputs, On 20/01/2021 22:15, Pierre-Louis Bossart wrote: On 1/20/21 12:01 PM, Srinivas Kandagatla wrote: Some of the soundwire controllers can have static functions assigned to each port, like some ports can only do PCM or PDM. This is the situation with some of the

[RFC PATCH 0/2] soundwire: add static port mapping support

2021-01-20 Thread Srinivas Kandagatla
structure during stream config, so that master can assign correct ports based on the provided static mapping. Srinivas Kandagatla (2): soundwire: add support for static port mapping soundwire: qcom: add support for static port mapping drivers/soundwire/bus.h | 4 drivers/soundwire

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

2021-01-20 Thread Srinivas Kandagatla
way to pass mapped port number along with the port config, so that master can assign correct ports based on the provided static mapping. Signed-off-by: Srinivas Kandagatla --- drivers/soundwire/bus.h | 4 drivers/soundwire/stream.c| 4 include/linux/soundwire/sdw.h | 4 3

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

2021-01-20 Thread Srinivas Kandagatla
On some of Qualcomm SoundWire controller instances ports are statically mapped based on the functionalities. So add support for such mapping. Signed-off-by: Srinivas Kandagatla --- drivers/soundwire/qcom.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers

Re: [PATCH] soundwire: debugfs: use controller id instead of link_id

2021-01-19 Thread Srinivas Kandagatla
On 19/01/2021 15:54, Pierre-Louis Bossart wrote: On 1/19/21 8:52 AM, Vinod Koul wrote: On 15-01-21, 16:25, Srinivas Kandagatla wrote: link_id can be zero and if we have multiple controller instances in a system like Qualcomm debugfs will end-up with duplicate namespace resulting in

[PATCH] clk: qcom: gfm-mux: fix clk mask

2021-01-19 Thread Srinivas Kandagatla
For some reason global GFM_MASK ended up with bit 1 instead of bit 0. Remove the global GFM_MASK and reuse mux_mask field. Fixes: a2d8f507803e ("clk: qcom: Add support to LPASS AUDIO_CC Glitch Free Mux clocks") Signed-off-by: Srinivas Kandagatla --- drivers/clk/qcom/lpass-gfm-sm

Re: [PATCH v3 0/5] Expose RPi4's bootloader configuration

2021-01-18 Thread Srinivas Kandagatla
On 12/01/2021 14:23, Nicolas Saenz Julienne wrote: Soon to be released versions of RPi4's firmware will take of care passing their bootloader's configuration[1] to the OS by copying it into memory and creating a reserved memory node in the board's DT. By modeling this reserved memory node as a

[PATCH 2/2] MAINTAINERS: update qcom ASoC drivers list

2021-01-15 Thread Srinivas Kandagatla
Add full list of ASoC drivers that are maintained! Signed-off-by: Srinivas Kandagatla --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index b1545817c899..7699d9d94a49 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14516,6 +14516,14 @@ M

[PATCH 1/2] MAINTAINERS: update maintainers of qcom audio

2021-01-15 Thread Srinivas Kandagatla
Add myself as maintainer of qcom audio drivers, as Patrick has very little time to look at the patches. Signed-off-by: Srinivas Kandagatla Reviewed-by: Banajit Goswami Acked-by: Patrick Lai --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b

[PATCH] soundwire: debugfs: use controller id instead of link_id

2021-01-15 Thread Srinivas Kandagatla
7;master-0' with parent 'soundwire' already present!" Fixes: bf03473d5bcc ("soundwire: add debugfs support") Signed-off-by: Srinivas Kandagatla --- drivers/soundwire/debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soundwire/debug

Re: [PATCH 0/4] ASoC: qcom: Minor code cleanups for lpass-cpu

2021-01-15 Thread Srinivas Kandagatla
e involved. I'll get to it later. There's also some questionable clk_get() usage that should probably be clk_get_optional(). For now this should help a little. Cc: V Sujith Kumar Reddy Cc: Srinivasa Rao Cc: Srinivas Kandagatla Cc: Cheng-Yi Chiang Stephen Boyd (4): ASoC: qcom: Remove

Re: [PATCH v11 0/7] Qualcomm's lpass-hdmi ASoC driver to support audio over dp port

2021-01-13 Thread Srinivas Kandagatla
Hi Stephan, On 13/01/2021 20:08, Stephan Gerhold wrote: Hi Srinivas, On Thu, Oct 08, 2020 at 06:37:40AM +0100, Srinivas Kandagatla wrote: On 08/10/2020 06:16, Srinivasa Rao Mandadapu wrote: These patches are to support audio over DP port on Qualcomm's SC7180 LPASS Asoc. It includes ma

Re: [PATCH] nvmem: core: Fix a resource leak on error in nvmem_add_cells_from_of()

2021-01-05 Thread Srinivas Kandagatla
On 19/12/2020 10:55, Dan Carpenter wrote: This doesn't call of_node_put() on the error path so it leads to a memory leak. Fixes: 0749aa25af82 ("nvmem: core: fix regression in of_nvmem_cell_get()") Signed-off-by: Dan Carpenter Applied, thanks --srini --- The kfree_const() could just be re

Re: [RESEND PATCH v6 2/2] pinctrl: qcom: Add sm8250 lpass lpi pinctrl driver

2020-12-07 Thread Srinivas Kandagatla
On 05/12/2020 22:36, Linus Walleij wrote: On Wed, Dec 2, 2020 at 5:35 PM Srinivas Kandagatla wrote: Add initial pinctrl driver to support pin configuration for LPASS (Low Power Audio SubSystem) LPI (Low Power Island) pinctrl on SM8250. Patch applied! +config PINCTRL_LPASS_LPI

Re: [PATCH] ASoC: qcom: fix QDSP6 dependencies, attempt #3

2020-12-04 Thread Srinivas Kandagatla
: 2bc8831b135c ("ASoC: qcom: fix SDM845 & QDSP6 dependencies more") Signed-off-by: Arnd Bergmann Thanks for the patch, Reviewed-by: Srinivas Kandagatla --- sound/soc/qcom/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/qcom/Kconfig b/sound/soc/qcom/Kconf

[PATCH] ASoC: q6afe-clocks: Add missing parent clock rate

2020-12-04 Thread Srinivas Kandagatla
: 520a1c396d196 ("ASoC: q6afe-clocks: add q6afe clock controller") Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6afe-clocks.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/qcom/qdsp6/q6afe-clocks.c b/sound/soc/qcom/qdsp6/q6afe-clocks.c index 87e4633afe2c..f0

[PATCH v2 2/6] arm64: dts: qcom: sm8250: add audio clock controllers

2020-12-02 Thread Srinivas Kandagatla
Add audiocc and aoncc clock controller nodes required for audio on RB5. Signed-off-by: Srinivas Kandagatla Tested-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b

[PATCH v2 6/6] arm64: dts: qcom: qrb5165-rb5: Add Audio support

2020-12-02 Thread Srinivas Kandagatla
This patch add support for two WSA881X smart speakers attached via Soundwire and a DMIC0 on the main board. Signed-off-by: Srinivas Kandagatla Tested-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 121 +++ arch/arm64/boot/dts/qcom/sm8250.dtsi | 3

[PATCH v2 5/6] arm64: dts: qcom: sm8250: add mi2s pinconfs

2020-12-02 Thread Srinivas Kandagatla
Add primary and tertinary mi2s pinconfs required to get I2S audio. Signed-off-by: Srinivas Kandagatla Tested-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 55 1 file changed, 55 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b

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