asoc: update tx frame config for soundwire port
Set correct tx frame config for soundwire port
using wcd9375.
Change-Id: Icbefda65713338908e4d94935296ff30ac4e5f9c
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
diff --git a/asoc/kona-port-config.h b/asoc/kona-port-config.h
index 723c94a..6ab1d29 100644
--- a/asoc/kona-port-config.h
+++ b/asoc/kona-port-config.h
@@ -59,6 +59,14 @@
{3, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 2}, /* TX4 */
};
+static struct port_params tx_frame_params_wcd937x[SWR_MSTR_PORT_LEN] = {
+ {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF},
+ {3, 1, 0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0},
+ {3, 2, 0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0},
+ {3, 1, 0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0},
+ {3, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0},
+};
+
static struct swr_mstr_port_map sm_port_map[] = {
{TX_MACRO, SWR_UC0, tx_frame_params_default},
{RX_MACRO, SWR_UC0, rx_frame_params_default},
@@ -73,4 +81,11 @@
{WSA_MACRO, SWR_UC0, wsa_frame_params_default},
};
+static struct swr_mstr_port_map sm_port_map_wcd937x[] = {
+ {TX_MACRO, SWR_UC0, tx_frame_params_wcd937x},
+ {RX_MACRO, SWR_UC0, rx_frame_params_default},
+ {RX_MACRO, SWR_UC1, rx_frame_params_dsd},
+ {WSA_MACRO, SWR_UC0, wsa_frame_params_default},
+};
+
#endif /* _KONA_PORT_CONFIG */