diff --git a/asoc/Kbuild b/asoc/Kbuild index 8276d7df6000..8f105ae11d28 100644 --- a/asoc/Kbuild +++ b/asoc/Kbuild @@ -210,11 +210,19 @@ ifdef CONFIG_SND_SOC_QDSP6V2 PLATFORM_OBJS += msm-pcm-loopback-v2.o PLATFORM_OBJS += msm-pcm-q6-noirq.o PLATFORM_OBJS += msm-pcm-q6-v2.o - PLATFORM_OBJS += msm-pcm-routing-v2.o - PLATFORM_OBJS += msm-pcm-voice-v2.o - PLATFORM_OBJS += msm-pcm-voip-v2.o + ifeq (y,$(findstring y,$(CONFIG_QTI_QUIN_GVM) $(CONFIG_PLATFORM_AUTO))) + PLATFORM_OBJS += msm-pcm-routing-auto.o + else + PLATFORM_OBJS += msm-pcm-routing-v2.o + PLATFORM_OBJS += msm-pcm-voice-v2.o + PLATFORM_OBJS += msm-pcm-voip-v2.o + endif PLATFORM_OBJS += msm-transcode-loopback-q6-v2.o - PLATFORM_OBJS += platform_init.o + ifeq (y,$(findstring y,$(CONFIG_QTI_QUIN_GVM) $(CONFIG_PLATFORM_AUTO))) + PLATFORM_OBJS += platform_init_auto.o + else + PLATFORM_OBJS += platform_init.o + endif endif ifdef CONFIG_WCD9XXX_CODEC_CORE PLATFORM_OBJS += msm-dai-slim.o diff --git a/asoc/msm-pcm-routing-auto.c b/asoc/msm-pcm-routing-auto.c new file mode 100755 index 000000000000..8d8a5931bbe7 --- /dev/null +++ b/asoc/msm-pcm-routing-auto.c @@ -0,0 +1,43366 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* Copyright (c) 2012-2021, The Linux Foundation. All rights reserved. + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include