From 4dad88ac993a5efea7770328913aa3ba43eb5111 Mon Sep 17 00:00:00 2001 From: Abhinav Gaur Date: Wed, 22 Dec 2021 10:33:46 +0530 Subject: [PATCH] ASOC: automotive routing drivers base version Branch out from mainline and create separate routing driver for automotive platform for boot KPI optimization. Parent commit id for the base routing driver version for tracking purpose : commit dd9977f073f1bcd93a0515aa529afa053989bb54 Change-Id: I64b89bafb304d403efd08850a72830100939c3ba Signed-off-by: Abhinav Gaur --- asoc/Kbuild | 16 +- asoc/msm-pcm-routing-auto.c | 43366 ++++++++++++++++++++++++++++++++++ asoc/msm_dailink.h | 16 + asoc/platform_init_auto.c | 61 + asoc/sa6155.c | 6 +- asoc/sa8155.c | 6 +- 6 files changed, 43461 insertions(+), 10 deletions(-) create mode 100755 asoc/msm-pcm-routing-auto.c mode change 100755 => 100644 asoc/msm_dailink.h create mode 100644 asoc/platform_init_auto.c mode change 100755 => 100644 asoc/sa6155.c 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