From 8985f86c676121fd4771275837f63a2a152278b7 Mon Sep 17 00:00:00 2001 From: Hongtao Peng Date: Thu, 25 Nov 2021 11:46:33 +0800 Subject: [PATCH] soc: add snd_event_init func for mark audio KPI snd_event_dlkm is loaded as the first module. Add init function and place mark in it to indicate the start time of audio driver initialization. Change-Id: Ie0c85b9166686d91f71ff773224eca59d85a36e5 Signed-off-by: Hongtao Peng --- soc/snd_event.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/soc/snd_event.c b/soc/snd_event.c index ace76b2e85a7..abc450405fe1 100644 --- a/soc/snd_event.c +++ b/soc/snd_event.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Copyright (c) 2018, The Linux Foundation. All rights reserved. + * Copyright (c) 2018, 2021 The Linux Foundation. All rights reserved. */ #include @@ -8,6 +8,7 @@ #include #include #include +#include struct snd_event_client { struct list_head node; @@ -490,5 +491,17 @@ exit: } EXPORT_SYMBOL(snd_event_notify); +static int __init snd_event_init(void) +{ + place_marker("M - Driver Sound Event Init"); + return 0; +} +module_init(snd_event_init); + +static void __exit snd_event_exit(void) +{ +} +module_exit(snd_event_exit); + MODULE_LICENSE("GPL v2"); MODULE_DESCRIPTION("SND event module");