From 7eef68ef9e942068ee9f9fbcbb996f9c884e4b9f Mon Sep 17 00:00:00 2001 From: Karthikeyan Mani Date: Thu, 13 Dec 2018 17:45:02 -0800 Subject: [PATCH] ASoC: msm: Get the soundwire port configuration Send the kona platform specific soundwire port configuration to the soundwire master driver through machine driver. Change-Id: I1144d00b6bd430f330833141e681dcc93bfff9d2 Signed-off-by: Karthikeyan Mani --- asoc/kona.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/asoc/kona.c b/asoc/kona.c index e4dce7d4b3..a312e6eac0 100644 --- a/asoc/kona.c +++ b/asoc/kona.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include "device_event.h" @@ -31,6 +32,7 @@ #include "codecs/bolero/bolero-cdc.h" #include #include "codecs/bolero/wsa-macro.h" +#include "sm8250-port-config.h" #define DRV_NAME "kona-asoc-snd" #define __CHIPSET__ "KONA " @@ -3452,6 +3454,8 @@ static int msm_int_audrx_init(struct snd_soc_pcm_runtime *rtd) wsa_macro_set_spkr_gain_offset(component, WSA_MACRO_GAIN_OFFSET_M1P5_DB); } + bolero_set_port_map(component, ARRAY_SIZE(sm_port_map), + sm_port_map); } card = rtd->card->snd_card; if (!pdata->codec_root) {