From a79ba90bd8a2647d4a3d62188a5aa6cf6fb5b5e2 Mon Sep 17 00:00:00 2001 From: Xianbin Zhu Date: Sat, 2 Mar 2019 18:41:10 +0800 Subject: [PATCH] ASoC: msm: add boot marker for sa8155 automotive add marker in audio driver for start-up time measurement. Change-Id: Ibb63f6b40651646a8f16ef0cf391899f37e67eaf Signed-off-by: Xianbin Zhu --- asoc/sa8155.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/asoc/sa8155.c b/asoc/sa8155.c index b655572f04b7..54d65a31fbcd 100644 --- a/asoc/sa8155.c +++ b/asoc/sa8155.c @@ -49,6 +49,7 @@ #include #include #include +#include #include "device_event.h" #include "msm-pcm-routing-v2.h" @@ -7374,6 +7375,12 @@ static int msm_asoc_machine_probe(struct platform_device *pdev) struct msm_asoc_mach_data *pdata; int ret; enum apr_subsys_state q6_state; + static int first_probe = 1; + + if (first_probe) { + place_marker("M - DRIVER Audio Init"); + first_probe = 0; + } if (!pdev->dev.of_node) { dev_err(&pdev->dev, "No platform supplied from device tree\n"); @@ -7453,6 +7460,7 @@ static int msm_asoc_machine_probe(struct platform_device *pdev) pr_err("%s: Registration with SND event FWK failed ret = %d\n", __func__, ret); + place_marker("M - DRIVER Audio Ready"); return 0; err: msm_release_pinctrl(pdev);