Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8985f86c authored by Hongtao Peng's avatar Hongtao Peng
Browse files

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: default avatarHongtao Peng <hongtaop@codeaurora.org>
parent 4f7c9992
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
// 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 <linux/platform_device.h>
@@ -8,6 +8,7 @@
#include <linux/module.h>
#include <linux/of_device.h>
#include <soc/snd_event.h>
#include <soc/qcom/boot_stats.h>

struct snd_event_client {
	struct list_head node;
@@ -490,5 +491,17 @@ int snd_event_notify(struct device *dev, unsigned int state)
}
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");