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 <hongtaop@codeaurora.org>
This commit is contained in:
parent
4f7c9992de
commit
8985f86c67
@ -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 <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 @@ 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");
|
||||
|
Loading…
Reference in New Issue
Block a user