From dd384e395e8cc452677dc0e1aa991bd9aee814d1 Mon Sep 17 00:00:00 2001 From: Shuai Li Date: Wed, 8 May 2019 17:37:37 +0800 Subject: [PATCH] audio: config 2+2 loopback [1/1] PD#SWPL-7741 Problem: Default is 6+2. But aec needs 2+2 setting. Solution: Change the dts setting. Verify: SM1 AC213. Change-Id: I5b3585c017146bde5b265f315f8167e8232566fb Signed-off-by: Shuai Li --- arch/arm/boot/dts/amlogic/sm1_s905x3_ac213.dts | 18 +++++++++--------- arch/arm64/boot/dts/amlogic/sm1_s905x3_ac213.dts | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/arch/arm/boot/dts/amlogic/sm1_s905x3_ac213.dts b/arch/arm/boot/dts/amlogic/sm1_s905x3_ac213.dts index ea6dff0..afbfaa9 100644 --- a/arch/arm/boot/dts/amlogic/sm1_s905x3_ac213.dts +++ b/arch/arm/boot/dts/amlogic/sm1_s905x3_ac213.dts @@ -1331,10 +1331,10 @@ * 4: pdmin; */ datain_src = <4>; - datain_chnum = <6>; - datain_chmask = <0x3f>; + datain_chnum = <2>; + datain_chmask = <0x3>; /* config which data pin for loopback */ - datain-lane-mask-in = <1 1 1 0>; + datain-lane-mask-in = <1 0 0 0>; /* calc mclk for datalb */ mclk-fs = <256>; @@ -1492,12 +1492,12 @@ }; pdmin: pdmin { - mux { /* GPIOA_5, GPIOA_6, GPIOA_8, GPIOA_9, GPIOA_7 */ - groups = "pdm_din0_a", - /*"pdm_din1_a",*/ - "pdm_din2_a", - /*"pdm_din3_a",*/ - "pdm_dclk_a"; + mux { /* GPIOZ_2, GPIOZ_3, GPIOZ_4, GPIOZ_5, GPIOZ_6 */ + groups = "pdm_din0_z", + "pdm_din1_z", + "pdm_din2_z", + "pdm_din3_z", + "pdm_dclk_z"; function = "pdm"; }; }; diff --git a/arch/arm64/boot/dts/amlogic/sm1_s905x3_ac213.dts b/arch/arm64/boot/dts/amlogic/sm1_s905x3_ac213.dts index f19f86e..bbb65ece 100644 --- a/arch/arm64/boot/dts/amlogic/sm1_s905x3_ac213.dts +++ b/arch/arm64/boot/dts/amlogic/sm1_s905x3_ac213.dts @@ -1408,10 +1408,10 @@ * 4: pdmin; */ datain_src = <4>; - datain_chnum = <6>; - datain_chmask = <0x3f>; + datain_chnum = <2>; + datain_chmask = <0x3>; /* config which data pin for loopback */ - datain-lane-mask-in = <1 1 1 0>; + datain-lane-mask-in = <1 0 0 0>; /* calc mclk for datalb */ mclk-fs = <256>; @@ -1569,12 +1569,12 @@ }; pdmin: pdmin { - mux { /* GPIOA_5, GPIOA_6, GPIOA_8, GPIOA_9, GPIOA_7 */ - groups = "pdm_din0_a", - "pdm_din1_a", - "pdm_din2_a", - /*"pdm_din3_a",*/ - "pdm_dclk_a"; + mux { /* GPIOZ_2, GPIOZ_3, GPIOZ_4, GPIOZ_5, GPIOZ_6 */ + groups = "pdm_din0_z", + "pdm_din1_z", + "pdm_din2_z", + "pdm_din3_z", + "pdm_dclk_z"; function = "pdm"; }; }; -- 2.7.4