From b777edbce7d7d5aa1cd9bcb2aae9013ea9369aa4 Mon Sep 17 00:00:00 2001 From: "Vlad.Karpovich" Date: Mon, 19 Mar 2018 16:03:09 -0500 Subject: [PATCH] ASoC: madera: Add slimbus TX channel. Rearrange Madera codec slim bus map to use channel 131 as 4th channel for an audio capture. Mot-CRs-fixed: (CR) Change-Id: I6917ad47f3b33e655ff28304cb360e5ec2a17145 Signed-off-by: Vlad.Karpovich Reviewed-on: https://gerrit.mot.com/1151551 Reviewed-on: https://gerrit.mot.com/1291626 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Seungyoon Lee Reviewed-by: Vitor Queiroz Albuquerque Submit-Approved: Jira Key --- sound/soc/codecs/madera-slimbus.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/madera-slimbus.c b/sound/soc/codecs/madera-slimbus.c index 737b1aec6e21..10cf8fe2ae89 100644 --- a/sound/soc/codecs/madera-slimbus.c +++ b/sound/soc/codecs/madera-slimbus.c @@ -52,18 +52,19 @@ static void madera_slim_fixup_prop(struct slim_ch *prop, #define TX_STREAM_1 128 #define TX_STREAM_2 132 -#define TX_STREAM_3 131 +#define TX_STREAM_3 134 #define RX_STREAM_1 144 #define RX_STREAM_2 146 #define RX_STREAM_3 148 static u32 rx_porth1[2], rx_porth2[2], rx_porth3[2]; -static u32 tx_porth1[3], tx_porth2[2], tx_porth3[1]; +static u32 tx_porth1[4], tx_porth2[2], tx_porth3[1]; static u16 rx_handles1[] = { RX_STREAM_1, RX_STREAM_1 + 1 }; static u16 rx_handles2[] = { RX_STREAM_2, RX_STREAM_2 + 1 }; static u16 rx_handles3[] = { RX_STREAM_3, RX_STREAM_3 + 1 }; -static u16 tx_handles1[] = { TX_STREAM_1, TX_STREAM_1 + 1, TX_STREAM_1 + 2}; +static u16 tx_handles1[] = { TX_STREAM_1, TX_STREAM_1 + 1, + TX_STREAM_1 + 2, TX_STREAM_1 + 3 }; static u16 tx_handles2[] = { TX_STREAM_2, TX_STREAM_2 + 1 }; static u16 tx_handles3[] = { TX_STREAM_3 }; static u16 rx_group1, rx_group2, rx_group3;