From: Viorel Suman
Enable Daisy Chain if in TDM mode and the number of played
channels is bigger than the maximum supported number of channels.
Signed-off-by: Viorel Suman
Signed-off-by: Shengjiu Wang
---
sound/soc/codecs/ak4458.c | 47 ++-
sound/soc
From: Viorel Suman
check the return value of ak4458_rstn_control.
Signed-off-by: Viorel Suman
Signed-off-by: Shengjiu Wang
---
changes in v2:
- fix "use of undeclared identifier 'ret'" reported by kernel test robot
sound/soc/codecs/ak4458.c | 21 -
From: Viorel Suman
check the return value of ak4458_rstn_control.
Signed-off-by: Viorel Suman
Signed-off-by: Shengjiu Wang
---
sound/soc/codecs/ak4458.c | 19 +++
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/sound/soc/codecs/ak4458.c b/sound/soc/codecs
Reset (aka power off) happens when the reset gpio is made active.
The reset gpio is GPIO_ACTIVE_LOW
Fixes: 920884777480 ("ASoC: ak5558: Add support for AK5558 ADC driver")
Signed-off-by: Shengjiu Wang
---
changes in v2:
- split the patch to two patches.
sound/soc/codecs/ak5558.c |
Change function name to ak5558_reset to match devicetree property
"reset-gpios".
Signed-off-by: Shengjiu Wang
---
changes in v2:
- split patches to two patches
sound/soc/codecs/ak5558.c | 23 +++
1 file changed, 7 insertions(+), 16 deletions(-)
diff --git a
Reset (aka power off) happens when the reset gpio is made active.
Change function name to ak5558_reset to match devicetree property
"reset-gpios".
Signed-off-by: Shengjiu Wang
---
sound/soc/codecs/ak5558.c | 30 ++
1 file changed, 10 insertions(+), 20
On Sun, Apr 11, 2021 at 10:43 PM Guenter Roeck wrote:
>
> On Fri, Mar 19, 2021 at 04:06:43PM +0800, Shengjiu Wang wrote:
> > When there is power domain bind with bus clock,
> >
> > The call flow:
> > devm_regmap_init_mmio_clk
> >- clk_prepare()
> >
s/show/slow/
Fixes: 920884777480 ("ASoC: ak5558: Add support for AK5558 ADC driver")
Signed-off-by: Shengjiu Wang
---
sound/soc/codecs/ak5558.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/ak5558.c b/sound/soc/codecs/ak5558.c
index 3a
Add compatible string "asahi-kasei,ak5552" for ak5552
Signed-off-by: Shengjiu Wang
Acked-by: Rob Herring
---
Documentation/devicetree/bindings/sound/ak5558.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/sound/ak5
From: Viorel Suman
AK5552 is a 32-bit 2ch ADC and has the same register
map as AK5558.
Signed-off-by: Viorel Suman
Signed-off-by: Shengjiu Wang
---
changes in v2
- refine the control name.
sound/soc/codecs/ak5558.c | 97 ---
1 file changed, 90 insertions
On Tue, Mar 30, 2021 at 11:06 PM Mark Brown wrote:
>
> On Tue, Mar 30, 2021 at 02:32:51PM +0800, Shengjiu Wang wrote:
>
> > +static const struct snd_kcontrol_new ak5552_snd_controls[] = {
> > + SOC_ENUM("AK5552 Monaural Mode", ak5552_mono_enum[0]),
> >
Add compatible string "asahi-kasei,ak5552" for ak5552
Signed-off-by: Shengjiu Wang
---
Documentation/devicetree/bindings/sound/ak5558.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/sound/ak5558.txt
b/Documentation/devicetre
From: Viorel Suman
AK5552 is a 32-bit 2ch ADC and has the same register
map as AK5558.
Signed-off-by: Viorel Suman
Signed-off-by: Shengjiu Wang
---
sound/soc/codecs/ak5558.c | 93 ---
1 file changed, 88 insertions(+), 5 deletions(-)
diff --git a/sound/soc
rpmsg")
Signed-off-by: Shengjiu Wang
Reported-by: kernel test robot
---
sound/soc/fsl/fsl_rpmsg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/fsl/fsl_rpmsg.c b/sound/soc/fsl/fsl_rpmsg.c
index 2d09d8850e2c..ea5c973e2e84 100644
--- a/sound/soc/fsl/fsl_rpm
devm_regmap_init_mmio_clk.
Shengjiu Wang (6):
ASoC: fsl_esai: Don't use devm_regmap_init_mmio_clk
ASoC: fsl_spdif: Don't use devm_regmap_init_mmio_clk
ASoC: fsl_asrc: Don't use devm_regmap_init_mmio_clk
ASoC: fsl_easrc: Don't use devm_regmap_init_mmio_clk
ASoC: f
devm_regmap_init_mmio_clk,but explicitly enable
clock when it is used.
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl/fsl_easrc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sound/soc/fsl/fsl_easrc.c b/sound/soc/fsl/fsl_easrc.c
index 600e0d670ca6..5e33afe87c4a 100644
--- a/sound/soc
devm_regmap_init_mmio_clk,but explicitly enable
clock when it is used.
Signed-off-by: Shengjiu Wang
Reviewed-by: Viorel Suman
---
sound/soc/fsl/fsl_micfil.c | 25 -
1 file changed, 20 insertions(+), 5 deletions(-)
diff --git a/sound/soc/fsl/fsl_micfil.c b/sound/soc/fsl
devm_regmap_init_mmio_clk,but explicitly enable
clock when it is used.
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl/fsl_spdif.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sound/soc/fsl/fsl_spdif.c b/sound/soc/fsl/fsl_spdif.c
index 1cd3441d1c03..c631de325a6e 100644
--- a/sound
devm_regmap_init_mmio_clk,but explicitly enable
clock when it is used.
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl/fsl_esai.c | 48 ++--
1 file changed, 36 insertions(+), 12 deletions(-)
diff --git a/sound/soc/fsl/fsl_esai.c b/sound/soc/fsl/fsl_esai.c
index
devm_regmap_init_mmio_clk,but explicitly enable
clock when it is used.
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl/fsl_audmix.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sound/soc/fsl/fsl_audmix.c b/sound/soc/fsl/fsl_audmix.c
index 8dc44dec7956..f931288e256c 100644
--- a
devm_regmap_init_mmio_clk,but explicitly enable
clock when it is used.
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl/fsl_asrc.c | 57 +++-
1 file changed, 44 insertions(+), 13 deletions(-)
diff --git a/sound/soc/fsl/fsl_asrc.c b/sound/soc/fsl/fsl_asrc.c
index
Hi Mark
On Wed, Mar 10, 2021 at 9:26 PM Mark Brown wrote:
>
> On Wed, Mar 10, 2021 at 10:00:42AM +0800, Shengjiu Wang wrote:
>
> > changes in resend v2
> > - Add acked-by Charles
>
> Please don't resend for acks, it just makes for more noise.
ok, but could you
uot;ASoC: codec: wm9860: Refactor PLL out freq search")
Signed-off-by: Shengjiu Wang
---
sound/soc/codecs/wm8960.c | 8 +++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
index df351519a3a6..cda9cd935d4f 100644
--- a/sou
devm_regmap_init_mmio_clk, then explicitly enable clock when
using by pm_runtime_get(), if CONFIG_PM=n, then
fsl_sai_runtime_resume will be explicitly called.
Signed-off-by: Shengjiu Wang
Signed-off-by: Viorel Suman
---
sound/soc/fsl/fsl_sai.c | 48 +++--
1 file changed
Hi Mark
On Tue, Mar 16, 2021 at 9:51 PM Mark Brown wrote:
>
> On Tue, Mar 16, 2021 at 01:42:40PM +, Viorel Suman wrote:
>
> > To me it makes sense to manage the clocks and reset from the same place.
> > Currently we have the clocks management moved completely into runtime PM
> > fsl_sai_runti
The WM8958 codec is used on i.MX7D val board.
Signed-off-by: Shengjiu Wang
---
Documentation/devicetree/bindings/sound/fsl-asoc-card.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt
b/Documentation/devicetree/bindings/sound/fsl
WM8958 codec is used on some i.MX based platform.
So add it support in this generic driver.
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl/Kconfig | 2 ++
sound/soc/fsl/fsl-asoc-card.c | 17 +++--
2 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/sound/soc/fsl
On Tue, Mar 16, 2021 at 9:01 PM Mark Brown wrote:
>
> On Tue, Mar 16, 2021 at 05:27:06PM +0800, Shengjiu Wang wrote:
> > From: Viorel Suman
> >
> > SAI software reset is done in runtime resume,
> > there is no need to do it in fsl_sai_dai_probe.
>
> Pe
From: Viorel Suman
Remove redundant code and use snd_ctl_boolean_mono_info
instead.
Signed-off-by: Viorel Suman
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl/fsl_spdif.c | 30 +++---
1 file changed, 3 insertions(+), 27 deletions(-)
diff --git a/sound/soc/fsl
From: Viorel Suman
SAI software reset is done in runtime resume,
there is no need to do it in fsl_sai_dai_probe.
Signed-off-by: Viorel Suman
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl/fsl_sai.c | 7 ---
1 file changed, 7 deletions(-)
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc
Add compatible string for new added platforms which support spdif module.
They are i.MX8QXP, i.MX8MM, i.MX8MN, i.MX8MQ.
Signed-off-by: Shengjiu Wang
---
Documentation/devicetree/bindings/sound/fsl,spdif.yaml | 4
1 file changed, 4 insertions(+)
diff --git a/Documentation/devicetree
.
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl/Kconfig | 5 +
sound/soc/fsl/Makefile| 1 +
sound/soc/fsl/imx-pcm-rpmsg.c | 918 ++
sound/soc/fsl/imx-pcm-rpmsg.h | 512 +++
4 files changed, 1436 insertions(+)
create mode 100644
fsl_rpmsg is a virtual audio device. Mapping to real hardware
devices are SAI, DMA controlled by Cortex M core. What we see from
Linux side is a device which provides audio service by rpmsg channel.
Signed-off-by: Shengjiu Wang
---
.../devicetree/bindings/sound/fsl,rpmsg.yaml | 108
The platform device is not registered by device tree or
cpu dai driver, it is registered by the rpmsg channel,
So add a dedicated machine driver to handle this case.
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl/Kconfig | 11 +++
sound/soc/fsl/Makefile| 2 +
sound/soc/fsl/imx
This driver is used to accept the message from rpmsg audio
channel, and if this driver is probed, it will help to register
the platform driver, the platform driver will use this
audio channel to send and receive messages to and from Cortex-M
core.
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl
This is a cpu dai driver for rpmsg audio use case,
which is mainly used for getting the user's configuration
from devicetree and configure the clocks which is used by
Cortex-M core.
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl/Kconfig | 10 ++
sound/soc/fsl/Makefile| 2 +
soun
ce will be registered by cpu dai driver.
- Fix do_div issue reported by kernel test robot
changes in v3:
- add local refcount for clk enablement in hw_params()
- update the document according Rob's comments
changes in v2:
- update codes and comments according to Mark's comments
Shengjiu W
Add snd_soc_pcm_component_ack back, which can be used to get an
updated buffer pointer in the platform driver.
On Asymmetric multiprocessor, this pointer can be sent to Cortex-M
core for audio processing.
Signed-off-by: Shengjiu Wang
---
include/sound/soc-component.h | 3 +++
sound/soc/soc
Hi Rob
On Thu, Mar 11, 2021 at 5:12 AM Rob Herring wrote:
>
> On Wed, Mar 10, 2021 at 6:33 AM Shengjiu Wang wrote:
> >
> > Hi Rob
> >
> > On Wed, Mar 10, 2021 at 10:49 AM Rob Herring wrote:
> > >
> > > On Mon, Mar 08, 2021 at 09:22:27PM +0800
Hi Rob
On Wed, Mar 10, 2021 at 10:49 AM Rob Herring wrote:
>
> On Mon, Mar 08, 2021 at 09:22:27PM +0800, Shengjiu Wang wrote:
> > fsl_rpmsg cpu dai driver is driver for rpmsg audio, which is mainly used
>
> Bindings describe h/w blocks, not drivers.
I will modify the descrip
it clock computation")
Signed-off-by: Shengjiu Wang
Signed-off-by: Daniel Baluta
Acked-by: Charles Keepax
---
changes in resend v2
- Add acked-by Charles
changes in v2:
- Find the real reason for the case, just patially remove bitclk relax
sound/soc/codecs/wm8960.c | 12 +---
1 fi
This driver is used to accept the message from rpmsg audio
channel, and if this driver is probed, it will help to register
the platform driver, the platform driver will use this
audio channel to send and receive messages to and from Cortex-M
core.
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl
fsl_rpmsg cpu dai driver is driver for rpmsg audio, which is mainly used
for getting the user's configuration from device tree and configure the
clocks which is used by Cortex-M core. So in this document define the
needed property.
Signed-off-by: Shengjiu Wang
---
.../devicetree/bindings/
.
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl/Kconfig | 5 +
sound/soc/fsl/Makefile| 1 +
sound/soc/fsl/imx-pcm-rpmsg.c | 919 ++
sound/soc/fsl/imx-pcm-rpmsg.h | 512 +++
4 files changed, 1437 insertions(+)
create mode 100644
This is a cpu dai driver for rpmsg audio use case,
which is mainly used for getting the user's configuration
from devicetree and configure the clocks which is used by
Cortex-M core.
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl/Kconfig | 7 +
sound/soc/fsl/Makefile| 2 +
soun
The platform device is not registered by device tree or
cpu dai driver, it is registered by the rpmsg channel,
So add a dedicated machine driver to handle this case.
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl/Kconfig | 12
sound/soc/fsl/Makefile| 2 +
sound/soc/fsl/imx
Add snd_soc_pcm_component_ack back, which can be used to get an
updated buffer pointer in the platform driver.
On Asymmetric multiprocessor, this pointer can be sent to Cortex-M
core for audio processing.
Signed-off-by: Shengjiu Wang
---
include/sound/soc-component.h | 3 +++
sound/soc/soc
e the document according Rob's comments
changes in v2:
- update codes and comments according to Mark's comments
Shengjiu Wang (6):
ASoC: soc-component: Add snd_soc_pcm_component_ack
ASoC: fsl_rpmsg: Add CPU DAI driver for audio base on rpmsg
ASoC: dt-bindings: fsl_rpmsg: Add binding do
On Sun, Mar 7, 2021 at 4:37 AM Rob Herring wrote:
>
> On Thu, Feb 25, 2021 at 10:52:43AM +0800, Shengjiu Wang wrote:
> > Imx-rpmsg is a new added machine driver for supporting audio on Cortex-M
> > core. The Cortex-M core will control the audio interface, DMA and audio
&g
, so that when
no exact value can be derived from sysclk pick the closest
value greater than expected bitclk.
Signed-off-by: Shengjiu Wang
Reviewed-by: Daniel Baluta
---
changes in v2:
- Add debug message according to Charles's comments
sound/soc/codecs/wm8962.c | 23 +
From: Robin Gong
Request dma channel from specific dma controller instead of generic
dma controller list, otherwise, may get the wrong dma controller
if there are multi dma controllers such as i.MX8MP.
Signed-off-by: Robin Gong
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl/fsl_asrc_dma.c
Hi
On Fri, Mar 5, 2021 at 4:05 AM Rob Herring wrote:
>
> On Thu, Feb 18, 2021 at 1:23 AM Shengjiu Wang wrote:
> >
> > On Thu, Feb 11, 2021 at 6:18 AM Rob Herring wrote:
> > >
> > > On Sun, Feb 07, 2021 at 06:23:55PM +0800, Shengjiu Wang wrote:
> > &
, so that when
no exact value can be derived from sysclk pick the closest
value greater than expected bitclk.
Signed-off-by: Shengjiu Wang
---
sound/soc/codecs/wm8962.c | 21 +++--
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/sound/soc/codecs/wm8962.c b/sound
it clock computation")
Signed-off-by: Shengjiu Wang
Signed-off-by: Daniel Baluta
---
changes in v2:
- Find the real reason for the case, just patially remove bitclk relax
sound/soc/codecs/wm8960.c | 12 +---
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/sound/soc/code
ned-off-by: Daniel Baluta
Signed-off-by: Shengjiu Wang
---
sound/soc/codecs/wm8960.c | 29 +++--
1 file changed, 3 insertions(+), 26 deletions(-)
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
index df351519a3a6..368bec1dfbdb 100644
--- a/sound/soc/codecs
On Thu, Feb 25, 2021 at 9:17 PM Mark Brown wrote:
>
> On Thu, Feb 25, 2021 at 08:08:32PM +0800, Shengjiu Wang wrote:
>
> > If sound card doesn't need specific codec device, just
> > dummy codec is enough, then we can link the dummy component
> > directly.
&
means dummy component is specified.
simple-audio-card,codec {
sound-dai = <0>;
};
Signed-off-by: Shengjiu Wang
---
sound/soc/generic/simple-card.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/sound/soc/generic/simple-card.c b/sound/soc/gen
.
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl/Kconfig | 5 +
sound/soc/fsl/Makefile| 1 +
sound/soc/fsl/imx-pcm-rpmsg.c | 919 ++
sound/soc/fsl/imx-pcm-rpmsg.h | 512 +++
4 files changed, 1437 insertions(+)
create mode 100644
The platform device is not registered by device tree or
cpu dai driver, it is registered by the rpmsg channel,
So add a dedicated machine driver to handle this case.
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl/Kconfig | 12
sound/soc/fsl/Makefile| 2 +
sound/soc/fsl/imx
h
the hardware.
Signed-off-by: Shengjiu Wang
---
.../bindings/sound/imx-audio-rpmsg.yaml | 55 +++
1 file changed, 55 insertions(+)
create mode 100644 Documentation/devicetree/bindings/sound/imx-audio-rpmsg.yaml
diff --git a/Documentation/devicetree/bindings/sound/imx-
This driver is used to accept the message from rpmsg audio
channel, and if this driver is probed, it will help to register
the platform driver, the platform driver will use this
audio channel to send and receive message to and from Cortex-M
core.
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl
fsl_rpmsg cpu dai driver is driver for rpmsg audio, which is mainly used
for getting the user's configuration from device tree and configure the
clocks which is used by Cortex-M core. So in this document define the
needed property.
Signed-off-by: Shengjiu Wang
---
.../devicetree/bindings/
.
changes in v3:
- add local refcount for clk enablement in hw_params()
- update the document according Rob's comments
changes in v2:
- update codes and comments according to Mark's comments
Shengjiu Wang (7):
ASoC: soc-component: Add snd_soc_pcm_component_ack
ASoC: fsl_rpmsg: Add CPU DAI
Add snd_soc_pcm_component_ack back, which can be used to get updated
buffer pointer in platform driver.
On Asymmetric multiprocessor, this pointer can be sent to Cortex-M
core for audio processing.
Signed-off-by: Shengjiu Wang
---
include/sound/soc-component.h | 3 +++
sound/soc/soc
This is a cpu dai driver for rpmsg audio use case,
which is mainly used for getting the user's configuration
from devicetree and configure the clocks which is used by
Cortex-M core.
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl/Kconfig | 7 +
sound/soc/fsl/Makefile| 2 +
soun
Add missed MODULE_DEVICE_TABLE for the driver can be loaded
automatically at boot.
Fixes: 920884777480 ("ASoC: ak5558: Add support for AK5558 ADC driver")
Cc:
Signed-off-by: Shengjiu Wang
---
sound/soc/codecs/ak5558.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/soc/cod
Add missed MODULE_DEVICE_TABLE for the driver can be loaded
automatically at boot.
Fixes: 08660086eff9 ("ASoC: ak4458: Add support for AK4458 DAC driver")
Cc:
Signed-off-by: Shengjiu Wang
---
sound/soc/codecs/ak4458.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/soc/cod
From: Viorel Suman
Move reset assert into runtime_resume since we
cannot rely on reset assert state when the device
is put out from suspend.
Signed-off-by: Viorel Suman
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl/fsl_xcvr.c | 10 ++
1 file changed, 6 insertions(+), 4 deletions
On SoCs such as i.MX7ULP, cpuidle has some levels which
may disable system/bus clocks, so need to add pm_qos to
prevent cpuidle from entering low level idles and make sure
system/bus clocks are enabled when sai is active.
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl/fsl_sai.c | 12
On Wed, Feb 10, 2021 at 11:39 PM Mark Brown wrote:
>
> On Wed, Feb 10, 2021 at 02:35:29PM +0800, Shengjiu Wang wrote:
> > On Wed, Feb 10, 2021 at 6:30 AM Mark Brown wrote:
>
> > > Like I say I'd actually recommend moving this control to DAPM.
>
> > I may und
On Thu, Feb 11, 2021 at 6:18 AM Rob Herring wrote:
>
> On Sun, Feb 07, 2021 at 06:23:55PM +0800, Shengjiu Wang wrote:
> > Imx-rpmsg is a new added machine driver for supporting audio on Cortex-M
> > core. The Cortex-M core will control the audio interface, DMA and audio
&g
On Thu, Feb 11, 2021 at 6:13 AM Rob Herring wrote:
>
> On Sun, Feb 07, 2021 at 06:23:51PM +0800, Shengjiu Wang wrote:
> > fsl_rpmsg cpu dai driver is driver for rpmsg audio, which is mainly used
> > for getting the user's configuration from device tree and configure the
&
On Wed, Feb 10, 2021 at 6:30 AM Mark Brown wrote:
>
> On Tue, Feb 09, 2021 at 05:16:16PM +0800, Shengjiu Wang wrote:
> > On Mon, Feb 8, 2021 at 7:53 PM Mark Brown wrote:
>
> > > hw_params() can be called multiple times and there's no need for it to
> > > be
On Mon, Feb 8, 2021 at 7:53 PM Mark Brown wrote:
>
> On Sun, Feb 07, 2021 at 06:23:50PM +0800, Shengjiu Wang wrote:
>
> > +static int fsl_rpmsg_hw_params(struct snd_pcm_substream *substream,
> > +struct snd_pcm_hw_params *params,
> > +
On Tue, Feb 9, 2021 at 12:39 AM Pierre-Louis Bossart
wrote:
>
>
>
> On 2/8/21 2:12 AM, Shengjiu Wang wrote:
> > This log message should be a debug message, because it
> > doesn't return directly but continue next loop.
> >
> > Signed-off-by: Shengjiu Wa
This log message should be a debug message, because it
doesn't return directly but continue next loop.
Signed-off-by: Shengjiu Wang
---
sound/soc/soc-pcm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
index 605acec
.
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl/Kconfig | 5 +
sound/soc/fsl/Makefile| 1 +
sound/soc/fsl/imx-pcm-rpmsg.c | 919 ++
sound/soc/fsl/imx-pcm-rpmsg.h | 512 +++
4 files changed, 1437 insertions(+)
create mode 100644
;
> Signed-off-by: Rikard Falkeborn
Acked-by: Shengjiu Wang
h
the hardware.
Signed-off-by: Shengjiu Wang
---
.../bindings/sound/imx-audio-rpmsg.yaml | 48 +++
1 file changed, 48 insertions(+)
create mode 100644 Documentation/devicetree/bindings/sound/imx-audio-rpmsg.yaml
diff --git a/Documentation/devicetree/bindings/sound/imx-
This driver is used to accept the message from rpmsg audio
channel, and if this driver is probed, it will help to register
the platform driver, the platform driver will use this
audio channel to send and receive message to and from Cortex-M
core.
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl
The platform device is not registered by device tree or
cpu dai driver, it is registered by the rpmsg channel,
So add a dedicated machine driver to handle this case.
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl/Kconfig | 12
sound/soc/fsl/Makefile| 2 +
sound/soc/fsl/imx
Add snd_soc_pcm_component_ack back, which can be used to get updated
buffer pointer in platform driver.
On Asymmetric multiprocessor, this pointer can be sent to Cortex-M
core for audio processing.
Signed-off-by: Shengjiu Wang
---
include/sound/soc-component.h | 3 +++
sound/soc/soc
fsl_rpmsg cpu dai driver is driver for rpmsg audio, which is mainly used
for getting the user's configuration from device tree and configure the
clocks which is used by Cortex-M core. So in this document define the
needed property.
Signed-off-by: Shengjiu Wang
---
.../devicetree/bindings/
This is a cpu dai driver for rpmsg audio use case,
which is mainly used for getting the user's configuration
from devicetree and configure the clocks which is used by
Cortex-M core.
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl/Kconfig | 7 ++
sound/soc/fsl/Makefile| 2 +
soun
.
changes in v2:
- update codes and comments according to Mark's comments
Shengjiu Wang (7):
ASoC: soc-component: Add snd_soc_pcm_component_ack
ASoC: fsl_rpmsg: Add CPU DAI driver for audio base on rpmsg
ASoC: dt-bindings: fsl_rpmsg: Add binding doc for rpmsg cpu dai driver
ASoC: imx-audio-
On Fri, Feb 5, 2021 at 11:00 PM Mark Brown wrote:
>
> On Fri, Feb 05, 2021 at 02:57:28PM +0800, Shengjiu Wang wrote:
>
> > + if (params_format(params) == SNDRV_PCM_FORMAT_S16_LE)
> > + msg->s_msg.param.format = RPMSG_S16_LE;
> > +
On Fri, Feb 5, 2021 at 10:27 PM Mark Brown wrote:
>
> On Fri, Feb 05, 2021 at 02:57:27PM +0800, Shengjiu Wang wrote:
>
> > + /* TYPE C is notification from M core */
> > + if (r_msg->header.type == MSG_TYPE_C) {
> > + if (r_msg
On Fri, Feb 5, 2021 at 10:04 PM Mark Brown wrote:
>
> On Fri, Feb 05, 2021 at 02:57:25PM +0800, Shengjiu Wang wrote:
> > This is a dummy cpu dai driver for rpmsg audio use case,
> > which is mainly used for getting the user's configuration
>
> This is actually doing s
o add
this configuration for snd_dmaengine_dai_dma_data.
Signed-off-by: Shengjiu Wang
---
include/sound/dmaengine_pcm.h | 5 +
sound/core/pcm_dmaengine.c| 2 ++
2 files changed, 7 insertions(+)
diff --git a/include/sound/dmaengine_pcm.h b/include/sound/dmaengine_pcm.h
index 8c5e38180fb0..96
This is a dummy cpu dai driver for rpmsg audio use case,
which is mainly used for getting the user's configuration
from devicetree and configure the clocks which is used by
Cortex-M core.
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl/Kconfig | 7 ++
sound/soc/fsl/Makefile
This driver is used to accept the message from rpmsg audio
channel, and if this driver is probed, it will help to register
the platform driver, the platform driver will use this
audio channel to send and receive message to and from Cortex-M
core.
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl
.
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl/Kconfig | 5 +
sound/soc/fsl/Makefile| 1 +
sound/soc/fsl/imx-pcm-rpmsg.c | 898 ++
sound/soc/fsl/imx-pcm-rpmsg.h | 512 +++
4 files changed, 1416 insertions(+)
create mode 100644
h
the hardware.
Signed-off-by: Shengjiu Wang
---
.../bindings/sound/imx-audio-rpmsg.yaml | 48 +++
1 file changed, 48 insertions(+)
create mode 100644 Documentation/devicetree/bindings/sound/imx-audio-rpmsg.yaml
diff --git a/Documentation/devicetree/bindings/sound/imx-
fsl_rpmsg cpu dai driver is dummy driver, which is mainly used for
getting the user's configuration from device tree and configure the
clocks which is used by Cortex-M core. So in this document define the
needed property.
Signed-off-by: Shengjiu Wang
---
.../devicetree/bindings/soun
The platform device is not registered by device tree or
cpu dai driver, it is registered by the rpmsg channel,
So add a dedicated machine driver to handle this case.
Signed-off-by: Shengjiu Wang
---
sound/soc/fsl/Kconfig | 12
sound/soc/fsl/Makefile| 2 +
sound/soc/fsl/imx
.
Shengjiu Wang (7):
ASoC: soc-component: Add snd_soc_pcm_component_ack
ASoC: fsl_rpmsg: Add CPU DAI driver for audio base on rpmsg
ASoC: dt-bindings: fsl_rpmsg: Add binding doc for rpmsg cpu dai driver
ASoC: imx-audio-rpmsg: Add rpmsg_driver for audio channel
ASoC: imx-pcm-rpmsg: Add platform
Add snd_soc_pcm_component_ack back, which can be used to get updated
buffer pointer in platform driver.
On Asymmetric multiprocessor, this pointer can be sent to Cortex-M
core for audio processing.
Signed-off-by: Shengjiu Wang
---
include/sound/soc-component.h | 3 +++
sound/soc/soc
On Thu, Jan 28, 2021 at 7:28 PM Tang Bin wrote:
>
> Utilize the defined parameter 'dev' to make the code cleaner.
>
> Signed-off-by: Tang Bin
Acked-by: Shengjiu Wang
On Mon, Feb 1, 2021 at 4:08 PM Yang Li wrote:
>
> Eliminate the following coccicheck warning:
> ./sound/soc/fsl/fsl_xcvr.c:739:2-3: Unneeded semicolon
>
> Reported-by: Abaci Robot
> Signed-off-by: Yang Li
Acked-by: Shengjiu Wang
o add
this configuration for snd_dmaengine_dai_dma_data.
Signed-off-by: Shengjiu Wang
---
include/sound/dmaengine_pcm.h | 5 +
sound/core/pcm_dmaengine.c| 2 ++
2 files changed, 7 insertions(+)
diff --git a/include/sound/dmaengine_pcm.h b/include/sound/dmaengine_pcm.h
index 8c5e38180fb0..96
1 - 100 of 458 matches
Mail list logo