[PATCH v1 0/2] patches to add support for rockchip rt5640 card

2016-02-22 Thread Sugar Zhang
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

[PATCH 1/3] ASoC: rockchip: i2s: compatible with different chips

2015-11-09 Thread Sugar Zhang
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

[PATCH 3/3] ARM: dts: rockchip: add channels properties for i2s

2015-11-09 Thread Sugar Zhang
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

[PATCH 0/3] ASoC: rockchip: i2s: compatible with different chips

2015-11-09 Thread Sugar Zhang
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

[PATCH 2/3] ASoC: rockchip: add playback property

2015-11-09 Thread Sugar Zhang
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

[PATCH 1/3] ASoC: rockchip: i2s: compatible with different chips

2015-11-09 Thread Sugar Zhang
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 <sugar.zh...@rock-chips.

[PATCH 3/3] ARM: dts: rockchip: add channels properties for i2s

2015-11-09 Thread Sugar Zhang
add playback and capture properties to compatible various chips. Signed-off-by: Sugar Zhang <sugar.zh...@rock-chips.com> --- 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

[PATCH 0/3] ASoC: rockchip: i2s: compatible with different chips

2015-11-09 Thread Sugar Zhang
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

[PATCH 2/3] ASoC: rockchip: add playback property

2015-11-09 Thread Sugar Zhang
rockchip,playback-channels: max playback channels, 8 channels default. Signed-off-by: Sugar Zhang <sugar.zh...@rock-chips.com> --- Documentation/devicetree/bindings/sound/rockchip-i2s.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/ro

[PATCH v3 2/3] Documentation: DT bindings: rockchip-i2s: add capture property

2015-11-05 Thread Sugar Zhang
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

[PATCH v3 0/3] ASoC: rockchip: i2s: add 8 channels capture support and share lrck

2015-11-05 Thread Sugar Zhang
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

[PATCH v3 1/3] ASoC: rockchip: i2s: add 8 channels capture support

2015-11-05 Thread Sugar Zhang
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/rockchip_i2s.c

[PATCH v3 3/3] ASoC: rockchip: i2s: share tx/rx lrck when symmetric_rates enabled

2015-11-05 Thread Sugar Zhang
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

[PATCH v3 2/3] Documentation: DT bindings: rockchip-i2s: add capture property

2015-11-05 Thread Sugar Zhang
rockchip,capture-channels: max capture channels, 2 channels default. Signed-off-by: Sugar Zhang <sugar.zh...@rock-chips.com> --- Changes in v3: - move property into the Optional properties section Changes in v2: - remove unused lrck property Documentation/devicetree/bindings/sound/ro

[PATCH v3 3/3] ASoC: rockchip: i2s: share tx/rx lrck when symmetric_rates enabled

2015-11-05 Thread Sugar Zhang
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 <sugar.zh...@rock-chips.com> --- Changes

[PATCH v3 0/3] ASoC: rockchip: i2s: add 8 channels capture support and share lrck

2015-11-05 Thread Sugar Zhang
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

[PATCH v3 1/3] ASoC: rockchip: i2s: add 8 channels capture support

2015-11-05 Thread Sugar Zhang
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 <sugar.zh...@rock-chips.com> --- Changes in v3: None Changes in v2: - remove lrck mode, and move it to new patch

[PATCH v2 0/3] ASoC: rockchip: i2s: add 8 channels capture support and share lrck

2015-10-08 Thread Sugar Zhang
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

[PATCH v2 1/3] ASoC: rockchip: i2s: add 8 channels capture support

2015-10-08 Thread Sugar Zhang
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_i2s.c | 40

[PATCH v2 3/3] ASoC: rockchip: i2s: share tx/rx lrck when symmetric_rates enabled

2015-10-08 Thread Sugar Zhang
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

[PATCH v2 2/3] Documentation: DT bindings: rockchip-i2s: add capture property

2015-10-08 Thread Sugar Zhang
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

[PATCH v2 2/3] Documentation: DT bindings: rockchip-i2s: add capture property

2015-10-08 Thread Sugar Zhang
rockchip,capture-channels: max capture channels, 2 channels default. Signed-off-by: Sugar Zhang <sugar.zh...@rock-chips.com> --- Changes in v2: - remove unused lrck property Documentation/devicetree/bindings/sound/rockchip-i2s.txt | 2 ++ 1 file changed, 2 insertions(+) diff

[PATCH v2 0/3] ASoC: rockchip: i2s: add 8 channels capture support and share lrck

2015-10-08 Thread Sugar Zhang
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

[PATCH v2 1/3] ASoC: rockchip: i2s: add 8 channels capture support

2015-10-08 Thread Sugar Zhang
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 <sugar.zh...@rock-chips.com> --- Changes in v2: - remove lrck mode, and move it to new patch sound/soc/ro

[PATCH v2 3/3] ASoC: rockchip: i2s: share tx/rx lrck when symmetric_rates enabled

2015-10-08 Thread Sugar Zhang
share lrck_tx to lrck_rx when symmetric_rates enabled. Signed-off-by: Sugar Zhang <sugar.zh...@rock-chips.com> --- 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/sou

[PATCH 1/2] ASoC: rockchip: i2s: add 8 channels capture and lrck-mode support

2015-09-22 Thread Sugar Zhang
. - 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/soc/rockchip/rockchip_i2s.h | 23

[PATCH 2/2] Documentation: DT bindings: rockchip-i2s: add capture and lrck-mode

2015-09-22 Thread Sugar Zhang
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 insertions

[PATCH 0/2] ASoC: rockchip: i2s: add 8 channels capture and lrck-mode

2015-09-22 Thread Sugar Zhang
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

[PATCH 1/2] ASoC: rockchip: i2s: add 8 channels capture and lrck-mode support

2015-09-22 Thread Sugar Zhang
. - 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 <sugar.zh...@rock-chips.com> --- sound/soc/rockchip/rockchip_i2s.c | 48 +-- sou

[PATCH 2/2] Documentation: DT bindings: rockchip-i2s: add capture and lrck-mode

2015-09-22 Thread Sugar Zhang
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 <sugar.zh...@rock-chips.com> --- Documentation/devicetree/bindings/sound/rockchip-i2s.txt | 5 ++

[PATCH 0/2] ASoC: rockchip: i2s: add 8 channels capture and lrck-mode

2015-09-22 Thread Sugar Zhang
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

<    1   2