asoc:init rhode audio

Change-Id: Ia605774ce9438516dea037f2e2538e3b8037560c
Signed-off-by: yaozm1 <yaozm1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2107467
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
yaozm1 authored and Gilberto Gambugge committed 2023-06-01 00:35:13 -03:00
1 parent b3e58b6d6c
commit ebb8a240e5
4 files changed
+68 -1

No files matched your search

+4
View File
@@ -96,6 +96,10 @@ ifeq ($(KERNEL_BUILD), 0)
export
INCS += -include $(AUDIO_ROOT)/config/sdm450autoconf.h
endif
ifneq (,$(filter rhode%, $(TARGET_PRODUCT)))
INCS += -include $(AUDIO_ROOT)/config/rhodeautoconf.h
endif
endif
# As per target team, build is done as follows:
+57 -1
View File
@@ -5432,6 +5432,51 @@ static struct snd_soc_dai_link msm_awinic_be_dai_links[] = {
.ignore_suspend = 1,
},
};
static struct snd_soc_dai_link_component awinic_codecs[] = {
{
.of_node = NULL,
.dai_name = "aw882xx-aif-0-34",
.name = "aw882xxacf_smartpa.0-0034",
},
{
.of_node = NULL,
.dai_name = "aw882xx-aif-0-37",
.name = "aw882xxacf_smartpa.0-0037",
},
};
static struct snd_soc_dai_link msm_stereo_awinic_be_dai_links[] = {
{
.name = LPASS_BE_PRI_MI2S_RX,
.stream_name = "Primary MI2S Playback",
.cpu_dai_name = "msm-dai-q6-mi2s.0",
.platform_name = "msm-pcm-routing",
.num_codecs = ARRAY_SIZE(awinic_codecs),
.codecs = awinic_codecs,
.no_pcm = 1,
.dpcm_playback = 1,
.id = MSM_BACKEND_DAI_PRI_MI2S_RX,
.be_hw_params_fixup = msm_be_hw_params_fixup,
.ops = &msm_mi2s_be_ops,
.ignore_suspend = 1,
.ignore_pmdown_time = 1,
},
{
.name = LPASS_BE_PRI_MI2S_TX,
.stream_name = "Primary MI2S Capture",
.cpu_dai_name = "msm-dai-q6-mi2s.0",
.platform_name = "msm-pcm-routing",
.num_codecs = ARRAY_SIZE(awinic_codecs),
.codecs = awinic_codecs,
.no_pcm = 1,
.dpcm_capture = 1,
.id = MSM_BACKEND_DAI_PRI_MI2S_TX,
.be_hw_params_fixup = msm_be_hw_params_fixup,
.ops = &msm_mi2s_be_ops,
.ignore_suspend = 1,
},
};
#endif
#if !defined(CONFIG_SND_SMARTPA_AW882XX)
@@ -6266,7 +6311,7 @@ static struct snd_soc_card *populate_snd_card_dailinks(struct device *dev)
__func__);
} else {
dev_dbg(dev,"%s,aw,has-882xx=%d\n",__func__,has_awinic_pa);
if (has_awinic_pa) {
if (has_awinic_pa == 1) {
memcpy(msm_bengal_dai_links + total_links,
msm_awinic_fe_dai_links,
sizeof(msm_awinic_fe_dai_links));
@@ -6277,6 +6322,17 @@ static struct snd_soc_card *populate_snd_card_dailinks(struct device *dev)
sizeof(msm_awinic_be_dai_links));
total_links +=
ARRAY_SIZE(msm_awinic_be_dai_links);
} else if (has_awinic_pa == 2) {
memcpy(msm_bengal_dai_links + total_links,
msm_awinic_fe_dai_links,
sizeof(msm_awinic_fe_dai_links));
total_links +=
ARRAY_SIZE(msm_awinic_fe_dai_links);
memcpy(msm_bengal_dai_links + total_links,
msm_stereo_awinic_be_dai_links,
sizeof(msm_stereo_awinic_be_dai_links));
total_links +=
ARRAY_SIZE(msm_stereo_awinic_be_dai_links);
}
}
#endif
+3
View File
@@ -90,6 +90,9 @@ ifeq ($(KERNEL_BUILD), 0)
export
INCS += -include $(AUDIO_ROOT)/config/sdm450autoconf.h
endif
ifneq (,$(filter rhode%, $(TARGET_PRODUCT)))
INCS += -include $(AUDIO_ROOT)/config/rhodeautoconf.h
endif
endif
# As per target team, build is done as follows:
+4
View File
@@ -0,0 +1,4 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
*/
#define CONFIG_AW882XX_STEREO_SMARTPA 1