B/s (0)
After this patch:
dmatest: dma0chan0-copy0: summary 8 tests, 0 failures 179 iops 734873 KB/s (0)
After this patch and increase dma clk to 400MHz:
dmatest: dma0chan0-copy0: summary 8 tests, 0 failures 259 iops 1062929 KB/s
(0)
Signed-off-by: Sugar Zhang
---
drivers/dma/pl330.c | 2
This patch handle the clk by pm runtime mechanism to simplify
the clk management.
Signed-off-by: Sugar Zhang
---
sound/soc/rockchip/rockchip_spdif.c | 59 +++--
1 file changed, 17 insertions(+), 42 deletions(-)
diff --git a/sound/soc/rockchip/rockchip_spdif.c
On 2020/6/24 15:54, Vinod Koul wrote:
On 09-06-20, 09:14, Sugar Zhang wrote:
There is no reason to limit the performance on the 'NO-FLUSHP' SoCs,
cuz these platforms are just that the 'FLUSHP' instruction is broken.
Lets not use terms like cuz... 'because
.
Unfortunately it doesn't fix the rk3328 gmac controller.
Tested-by: Peter Geis
On Mon, Jun 8, 2020 at 9:15 PM Sugar Zhang wrote:
Changes in v2:
- fix FATAL ERROR: Unable to parse input tree
Sugar Zhang (13):
dmaengine: pl330: Remove the burst limit for quirk 'NO-FLUSHP
This patch Adds the quirk 'arm,pl330-periph-burst' for pl330.
Signed-off-by: Sugar Zhang
---
Changes in v2: None
Documentation/devicetree/bindings/dma/arm-pl330.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/dma/arm-pl330.txt
b/Doc
ansfer for SINGLE request.
Finaly, we add the quirk to specify pl330 to use burst transfers only.
Signed-off-by: Sugar Zhang
---
Changes in v2: None
drivers/dma/pl330.c | 10 +-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
inde
There is no reason to limit the performance on the 'NO-FLUSHP' SoCs,
cuz these platforms are just that the 'FLUSHP' instruction is broken.
so, remove the limit to improve the efficiency.
Signed-off-by: Sugar Zhang
---
Changes in v2: None
driv
Changes in v2:
- fix FATAL ERROR: Unable to parse input tree
Sugar Zhang (13):
dmaengine: pl330: Remove the burst limit for quirk 'NO-FLUSHP'
dmaengine: pl330: Add quirk 'arm,pl330-periph-burst'
dt-bindings: dma: pl330: Document the quirk 'arm,pl330-periph-burst
This patch Add the quirk to specify to use burst transfer
for better compatible and higher performance.
Signed-off-by: Sugar Zhang
---
Changes in v2:
- fix FATAL ERROR: Unable to parse input tree
arch/arm/boot/dts/rk3036.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/boot
This patch Adds the quirk 'arm,pl330-periph-burst' for pl330.
Signed-off-by: Sugar Zhang
---
Documentation/devicetree/bindings/dma/arm-pl330.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/dma/arm-pl330.txt
b/Documentation/devicetree/bindin
ansfer for SINGLE request.
Finaly, we add the quirk to specify pl330 to use burst transfers only.
Signed-off-by: Sugar Zhang
---
drivers/dma/pl330.c | 10 +-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index ff0a91f..1941ec6
There is no reason to limit the performance on the 'NO-FLUSHP' SoCs,
cuz these platforms are just that the 'FLUSHP' instruction is broken.
so, remove the limit to improve the efficiency.
Signed-off-by: Sugar Zhang
---
drivers/dma/pl330.c | 34 ++
Sugar Zhang (13):
dmaengine: pl330: Remove the burst limit for quirk 'NO-FLUSHP'
dmaengine: pl330: Add quirk 'arm,pl330-periph-burst'
dt-bindings: dma: pl330: Document the quirk 'arm,pl330-periph-burst'
ARM: dts: rk3036: Add 'arm,pl330-periph-burs
This patch Add the quirk to specify to use burst transfer
for better compatible and higher performance.
Signed-off-by: Sugar Zhang
---
arch/arm/boot/dts/rk3036.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/boot/dts/rk3036.dtsi b/arch/arm/boot/dts/rk3036.dtsi
index d9a0c9a2
to the DBGINST1 Register
6. Write zero to the DBGCMD Register
so, we should make sure the debug is idle before step 4/5/6, not
only step 6. if not, there maybe a risk that fail to write DBGINST0/1.
Signed-off-by: Sugar Zhang
---
drivers/dma/pl330.c | 12 ++--
1 file changed, 6 insertions
This patch fix the wrong reg value for rk322x/rk322xh,
cuz there is no STORE JUSTIFIED MODE on it.
on rk322x/rk322xh, the same bit means PDM_MODE/RESERVED,
if the bit is set to RESERVED, the controller will not work.
Signed-off-by: Sugar Zhang
---
sound/soc/rockchip/rockchip_pdm.c | 7
This patch marks RXFIFO_DATA as precious to avoid being read
outside a call from the driver, such as regmap debugfs
Signed-off-by: Sugar Zhang
---
sound/soc/rockchip/rockchip_pdm.c | 13 +
1 file changed, 13 insertions(+)
diff --git a/sound/soc/rockchip/rockchip_pdm.c
b/sound/soc
This patch make the waterlevel more reasonable, because the pdm
controller share the single FIFO(128 entries) with each channel.
adjust waterlevel in frame to meet the vad or dma frames request.
Signed-off-by: Sugar Zhang
---
sound/soc/rockchip/rockchip_pdm.c | 3 ++-
1 file changed, 2
This patch adds bindings for rk1808 soc.
Signed-off-by: Sugar Zhang
---
Documentation/devicetree/bindings/sound/rockchip,pdm.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/sound/rockchip,pdm.txt
b/Documentation/devicetree/bindings/sound/rockchip
This patch adds support for rk1808, the pdm controller
is the same as rk3308.
Signed-off-by: Sugar Zhang
---
sound/soc/rockchip/rockchip_pdm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/soc/rockchip/rockchip_pdm.c
b/sound/soc/rockchip/rockchip_pdm.c
index 4f93a74..3e1c5fd
This patch adds bindings for rk3308/px30.
Signed-off-by: Sugar Zhang
---
Documentation/devicetree/bindings/sound/rockchip,pdm.txt | 4
1 file changed, 4 insertions(+)
diff --git a/Documentation/devicetree/bindings/sound/rockchip,pdm.txt
b/Documentation/devicetree/bindings/sound/rockchip
This patch adds support fractional div for rk3308.
Signed-off-by: Sugar Zhang
---
sound/soc/rockchip/rockchip_pdm.c | 172 --
sound/soc/rockchip/rockchip_pdm.h | 9 ++
2 files changed, 139 insertions(+), 42 deletions(-)
diff --git a/sound/soc/rockchip
This patch decreases the transfer bursts to avoid the fifo overrun.
Signed-off-by: Sugar Zhang
---
sound/soc/rockchip/rockchip_pdm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/rockchip/rockchip_pdm.c
b/sound/soc/rockchip/rockchip_pdm.c
index abbb6d7..c50494b
This patch set left justified store mode default.
Signed-off-by: Sugar Zhang
---
sound/soc/rockchip/rockchip_pdm.c | 1 +
sound/soc/rockchip/rockchip_pdm.h | 3 +++
2 files changed, 4 insertions(+)
diff --git a/sound/soc/rockchip/rockchip_pdm.c
b/sound/soc/rockchip/rockchip_pdm.c
index
This patch add default regs value for controller.
Signed-off-by: Sugar Zhang
---
sound/soc/rockchip/rockchip_pdm.c | 8
1 file changed, 8 insertions(+)
diff --git a/sound/soc/rockchip/rockchip_pdm.c
b/sound/soc/rockchip/rockchip_pdm.c
index 360ebf2..8c1be59 100644
--- a/sound/soc
There is no need to reset controller every time, do this
once in pdm_probe.
Signed-off-by: Sugar Zhang
---
sound/soc/rockchip/rockchip_pdm.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/sound/soc/rockchip/rockchip_pdm.c
b/sound/soc/rockchip/rockchip_pdm.c
index
This is because set_fmt ops maybe called when PD is off,
and in such case, regmap_ops will lead system hang.
enale PD before doing regmap_ops.
Signed-off-by: Sugar Zhang
---
sound/soc/rockchip/rockchip_pdm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/soc/rockchip
These patches to add support pdm for rk322x/rk1808/rk3308/px30 socs
and fix some issues.
Sugar Zhang (12):
ASoC: rockchip: pdm: fix regmap_ops hang issue
ASoC: rockchip: pdm: using left justified store mode
ASoC: rockchip: pdm: add default regs
ASoC: rockchip: pdm: optimize clear logic
| |
| clear INTCLR
| mask INTEN
| |
| spin_unlock_irqrestore
Signed-off-by: Sugar Zhang
This patch add pdm controller device node for rk3328.
Signed-off-by: Sugar Zhang
---
Changes in v2:
- separate pinctrl pins
remove unused fsync clk, it's debug pins
arch/arm64/boot/dts/rockchip/rk3328.dtsi | 77
1 file changed, 77 insertions(+)
diff
pdm sdi0~3 pins are optional, for example, if 4ch required,
only sdi0~1 need to be enabled.
Signed-off-by: Sugar Zhang
---
Changes in v2: None
Documentation/devicetree/bindings/sound/rockchip,pdm.txt | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/Documentation
These patches to add support pdm for rk3328 socs.
Changes in v2:
- separate pinctrl pins
remove unused fsync clk, it's debug pins
Sugar Zhang (2):
arm64: dts: rockchip: add rk3328 pdm node
ASoC: rockchip: separate pinctrl pins from each other
.../devicetree/bindings/sound/roc
This patch add bindings for rk3036/rk3228/rk3328/rk3366 i2s.
Signed-off-by: Sugar Zhang
---
Documentation/devicetree/bindings/sound/rockchip-i2s.txt | 4
1 file changed, 4 insertions(+)
diff --git a/Documentation/devicetree/bindings/sound/rockchip-i2s.txt
b/Documentation/devicetree
These patches to add i2s, spdif dt nodes for rk3328 soc.
Sugar Zhang (2):
arm64: dts: rockchip: add rk3328 i2s nodes
arm64: dts: rockchip: add rk3328 spdif node
arch/arm64/boot/dts/rockchip/rk3328.dtsi | 46
1 file changed, 46 insertions(+)
--
2.7.4
This patch add the spdif dt node for rk3328.
Signed-off-by: Sugar Zhang
---
arch/arm64/boot/dts/rockchip/rk3328.dtsi | 13 +
1 file changed, 13 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi
b/arch/arm64/boot/dts/rockchip/rk3328.dtsi
index f1a284b..d278670
This patch add the i2s dt nodes for rk3328.
Signed-off-by: Sugar Zhang
---
arch/arm64/boot/dts/rockchip/rk3328.dtsi | 33
1 file changed, 33 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi
b/arch/arm64/boot/dts/rockchip/rk3328.dtsi
index
This patch add the spdif dt node for rk3368 soc.
Signed-off-by: Sugar Zhang
---
arch/arm64/boot/dts/rockchip/rk3368.dtsi | 19 +++
1 file changed, 19 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3368.dtsi
b/arch/arm64/boot/dts/rockchip/rk3368.dtsi
index 6d5dc05
This patch add the spdif dt node for rk322x SoCs.
Signed-off-by: Sugar Zhang
---
arch/arm/boot/dts/rk322x.dtsi | 20
1 file changed, 20 insertions(+)
diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/boot/dts/rk322x.dtsi
index f3e4ffd..b3b80e1 100644
--- a/arch/arm
These patches to add support pdm for rk3328 socs.
Sugar Zhang (2):
ASoC: rockchip: add support for pdm controller
arm64: dts: rk3328: add pdm node
.../devicetree/bindings/sound/rockchip,pdm.txt | 39 ++
arch/arm64/boot/dts/rockchip/rk3328.dtsi | 55 +++
sound/soc/rockchip
The Pulse Density Modulation Interface Controller (PDMC) is
a PDM interface controller and decoder that support PDM format.
It integrates a clock generator driving the PDM microphone
and embeds filters which decimate the incoming bit stream to
obtain most common audio rates.
Signed-off-by: Sugar
This patch add pdm controller device node for rk3328.
Signed-off-by: Sugar Zhang
---
arch/arm64/boot/dts/rockchip/rk3328.dtsi | 55
1 file changed, 55 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi
b/arch/arm64/boot/dts/rockchip/rk3328
Signed-off-by: Sugar Zhang
---
arch/arm/boot/dts/rk322x.dtsi | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/boot/dts/rk322x.dtsi
index 48a0c1c..cc6a27d 100644
--- a/arch/arm/boot/dts/rk322x.dtsi
+++ b/arch/arm/boot/dts
this patch add support for i2s bclk fs configuration, we can
configure bclk_fs by devicetree as required.
Signed-off-by: Sugar Zhang
---
Documentation/devicetree/bindings/sound/rockchip-i2s.txt | 2 ++
sound/soc/rockchip/rockchip_i2s.c| 9 -
2 files changed, 10
we found mclk maybe not precise as required because of PLL,
but it still can be used and no side effect. for example, if we
require mclk 11289600, but get 11289598, it doesn't matter.
so using DIV_ROUND_CLOSEST to fix it.
Signed-off-by: Sugar Zhang
---
sound/soc/rockchip/rockchip_i2s.
These patches to fix some problem for rockchip i2s.
Sugar Zhang (3):
ASoC: rockchip: i2s: add a delay before i2s clear
ASoC: rockchip: i2s: add support for i2s bclk fs configuration
ASoC: rockchip: i2s: fixup clk div
zhangjun (1):
ASoC: rockchip: i2s: add other configurable formats
in order to guarantee i2s lrck signal integrity, when i2s stop,
need at least one lrck cycle to ensure signal integrity.
the max delay time is when lrck is 8khz, the delay time is
125us(1/8khz), using udelay(150) with a 25us margin.
Signed-off-by: Sugar Zhang
---
sound/soc/rockchip
From: zhangjun
simple-audio-card,bitclock-inversion = <1> : bclk falling edge taken
simple-audio-card,format = "dsp_a" : pcm no delay mode
simple-audio-card,format = "dsp_b" : pcm late 1 mode
Signed-off-by: zhangjun
Signed-off-by: Sugar Zhang
---
sound/soc/ro
this patch add compatible for rk3228/rk3328 spdif,
Signed-off-by: Sugar Zhang
---
Documentation/devicetree/bindings/sound/rockchip-spdif.txt | 2 ++
sound/soc/rockchip/rockchip_spdif.c| 4
2 files changed, 6 insertions(+)
diff --git a/Documentation/devicetree
These patches to add support spdif for rk322x socs.
Sugar Zhang (2):
ASoC: rockchip: add bindings for spdif controller
ARM: dts: rk322x: add spdif node
.../devicetree/bindings/sound/rockchip-spdif.txt | 2 ++
arch/arm/boot/dts/rk322x.dtsi| 20
This patch add spdif node for rk322x.
Signed-off-by: Sugar Zhang
---
arch/arm/boot/dts/rk322x.dtsi | 20
1 file changed, 20 insertions(+)
diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/boot/dts/rk322x.dtsi
index 48a0c1c..56f0842 100644
--- a/arch/arm/boot/dts
when step into runtime_suspend, spdif pd will be disabled and loss state.
so need to restore register when runtime_resume.
Signed-off-by: Sugar Zhang
---
Changes in v3:
- remove unneeded initialization
Changes in v2:
- remove system suspend/resume and restore register
in runtime_suspend
when step into runtime_suspend, i2s pd will be disabled and loss state.
so need to restore register when runtime_resume.
Signed-off-by: Sugar Zhang
---
Changes in v3:
- remove unneeded initialization
Changes in v2:
- remove system suspend/resume and restore register
in runtime_suspend
when step into runtime_suspend, spdif pd will be disabled and loss state.
so need to restore register when runtime_resume.
Signed-off-by: Sugar Zhang
---
Changes in v2:
- remove system suspend/resume and restore register
in runtime_suspend/resume per Doug Anderson's suggestion
soun
when step into runtime_suspend, i2s pd will be disabled and loss state.
so need to restore register when runtime_resume.
Signed-off-by: Sugar Zhang
---
Changes in v2:
- remove system suspend/resume and restore register
in runtime_suspend/resume per Doug Anderson's suggestion
soun
restore hw registers after power loss during a suspend/resume cycle.
Signed-off-by: Sugar Zhang
---
sound/soc/rockchip/rockchip_spdif.c | 26 ++
1 file changed, 26 insertions(+)
diff --git a/sound/soc/rockchip/rockchip_spdif.c
b/sound/soc/rockchip/rockchip_spdif.c
restore hw registers after power loss during a suspend/resume cycle.
Signed-off-by: Sugar Zhang
---
sound/soc/rockchip/rockchip_i2s.c | 26 ++
1 file changed, 26 insertions(+)
diff --git a/sound/soc/rockchip/rockchip_i2s.c
b/sound/soc/rockchip/rockchip_i2s.c
index
There are 3 i2s sdio pins, which iomux mode is as follows:
- sdi3_sdo1
- sdi2_sdo2
- sdi1_sdo3
we need to configure these pins' iomux mode via the GRF register
when use multi channel playback/capture.
Signed-off-by: Sugar Zhang
---
Changes in v2:
- fix a typo error.
as suggested by
There are 3 i2s sdio pins, which iomux mode is as follows:
- sdi3_sdo1
- sdi2_sdo2
- sdi1_sdo3
we need to configure these pins' iomux mode via the GRF register
when use multi channel playback/capture.
Signed-off-by: Sugar Zhang
---
.../devicetree/bindings/sound/rockchip-i2s.txt
this patch corrects the interface adc/dac control register definition
according to datasheet.
Signed-off-by: Sugar Zhang
---
sound/soc/codecs/rt5640.c | 2 +-
sound/soc/codecs/rt5640.h | 36 ++--
2 files changed, 19 insertions(+), 19 deletions(-)
diff --git a
this patch add compatible for rk3366/rk3368/rk3399 spdif,
these three spdifs share the same type.
Signed-off-by: Sugar Zhang
---
Documentation/devicetree/bindings/sound/rockchip-spdif.txt | 8 ++--
sound/soc/rockchip/rockchip_spdif.c| 13 ++---
2 files
enable/disable master clock when codec is active or not.
Signed-off-by: Sugar Zhang
---
Documentation/devicetree/bindings/sound/rt5640.txt | 3 +++
sound/soc/codecs/rt5640.c | 31 ++
sound/soc/codecs/rt5640.h | 2 ++
3
this patch add default values for registers according description from TRM.
Signed-off-by: Sugar Zhang
---
sound/soc/rockchip/rockchip_i2s.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/sound/soc/rockchip/rockchip_i2s.c
b/sound/soc/rockchip/rockchip_i2s.c
index 6561c4c
enable/disable master clock when codec is active or not.
Signed-off-by: Sugar Zhang
---
Documentation/devicetree/bindings/sound/rt5640.txt | 3 +++
sound/soc/codecs/rt5640.c | 31 ++
sound/soc/codecs/rt5640.h | 2 ++
3
this patch add default values for registers according description from TRM.
Signed-off-by: Sugar Zhang
---
sound/soc/rockchip/rockchip_i2s.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/sound/soc/rockchip/rockchip_i2s.c
b/sound/soc/rockchip/rockchip_i2s.c
index 6561c4c
add default values for i2s registers from TRM.
rt5640: add master clock handing.
Sugar Zhang (2):
ASoC: rockchip: i2s: add default values for registers
ASoC: rt5640: add master clock handling for rt5640
Documentation/devicetree/bindings/sound/rt5640.txt | 3 +++
sound/soc/codecs/rt5640.c
with these various chips, we add playback and
capture property to specify these values.
there are default channels configuration in driver: 8 channels playback
and 2 channels capture. if not add property, we use the default values.
Signed-off-by: Sugar Zhang
---
sound/soc/rockchip
add playback and capture properties to compatible various chips.
Signed-off-by: Sugar Zhang
---
arch/arm/boot/dts/rk3066a.dtsi | 6 ++
arch/arm/boot/dts/rk3188.dtsi | 2 ++
arch/arm/boot/dts/rk3288.dtsi | 2 ++
3 files changed, 10 insertions(+)
diff --git a/arch/arm/boot/dts/rk3066a.dtsi
with these various chips, we add playback and
capture property to specify these values.
there are default channels configuration in driver: 8 channels playback
and 2 channels capture. if not add property, we use the default values.
Sugar Zhang (3):
ASoC: rockchip: i2s: compatible with different
rockchip,playback-channels: max playback channels, 8 channels default.
Signed-off-by: Sugar Zhang
---
Documentation/devicetree/bindings/sound/rockchip-i2s.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/sound/rockchip-i2s.txt
b/Documentation
rockchip,capture-channels: max capture channels, 2 channels default.
Signed-off-by: Sugar Zhang
---
Changes in v3:
- move property into the Optional properties section
Changes in v2:
- remove unused lrck property
Documentation/devicetree/bindings/sound/rockchip-i2s.txt | 5 +
1 file
support 8 channels capture support.
share lrck tx/rx when symmetric_rates enabled.
Sugar Zhang (3):
ASoC: rockchip: i2s: add 8 channels capture support
Documentation: DT bindings: rockchip-i2s: add capture property
ASoC: rockchip: i2s: share tx/rx lrck when symmetric_rates enabled
support max 8 channels capture, please add property
'rockchip,capture-channels' in dts to enable this,
if not, support 2 channels capture default.
Signed-off-by: Sugar Zhang
---
Changes in v3: None
Changes in v2:
- remove lrck mode, and move it to new patch
sound/soc/rockchip/rock
we share lrck_tx to lrck_rx only if when both i2s symmetric_rates and
dai_link symmetric_rates enabled.
if only lrck_tx is wired into external codec, we should enable this to
provider lrck for rx logic inside i2s module.
Signed-off-by: Sugar Zhang
---
Changes in v3:
- modify the judgment
support 8 channels capture support.
share lrck tx/rx when symmetric_rates enabled.
Sugar Zhang (3):
ASoC: rockchip: i2s: add 8 channels capture support
Documentation: DT bindings: rockchip-i2s: add capture property
ASoC: rockchip: i2s: share tx/rx lrck when symmetric_rates enabled
support max 8 channels capture, please add property
'rockchip,capture-channels' in dts to enable this,
if not, support 2 channels capture default.
Signed-off-by: Sugar Zhang
---
Changes in v2:
- remove lrck mode, and move it to new patch
sound/soc/rockchip/rockchip_
share lrck_tx to lrck_rx when symmetric_rates enabled.
Signed-off-by: Sugar Zhang
---
Changes in v2:
- new patch
sound/soc/rockchip/rockchip_i2s.c | 8
sound/soc/rockchip/rockchip_i2s.h | 6 ++
2 files changed, 14 insertions(+)
diff --git a/sound/soc/rockchip/rockchip_i2s.c
b
rockchip,capture-channels: max capture channels, 2 channels default.
Signed-off-by: Sugar Zhang
---
Changes in v2:
- remove unused lrck property
Documentation/devicetree/bindings/sound/rockchip-i2s.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings
th lrck_rx.
- rx_share: lrck_rx is shared with lrck_tx.
to enable this, please add property 'rockchip,lrck-mode' in dts,
if not, use 'txrx' lrck mode default.
Signed-off-by: Sugar Zhang
---
sound/soc/rockchip/rockchip_i2s.c | 48 +--
sound/so
rockchip,capture-channels: max capture channels, 2 channels default.
rockchip,lrck-mode: 0: rxtx separate, 1: tx share, 2: rx share.
default use 'rxtx separate' mode.
Signed-off-by: Sugar Zhang
---
Documentation/devicetree/bindings/sound/rockchip-i2s.txt | 5 +
1 file changed, 5
Support max 8 channels capture.
support lrck clk mode configuration, there are 3 modes:
- txrx: lrck_tx and lrck_rx are different.
- tx_share: lrck_tx is shared with lrck_rx.
- rx_share: lrck_rx is shared with lrck_tx.
Sugar Zhang (2):
ASoC: rockchip: i2s: add 8 channels capture and lrck
80 matches
Mail list logo