From 996c86f94e7c8b6bea6d64a2f5af0484b0fe9911 Mon Sep 17 00:00:00 2001 From: Zhiqiang Tu Date: Tue, 22 May 2018 13:32:18 +0800 Subject: ASoC: msm: add boot marker for mi2s and auto sound card Add boot marker for booting KPI measurement. Change-Id: I58fac2a1bed4f9c4e484b3dadb6a766c260f3f06 Signed-off-by: Zhiqiang Tu --- sound/soc/msm/apq8096-auto.c | 8 ++++++++ sound/soc/msm/qdsp6v2/msm-dai-q6-v2.c | 11 +++++++++++ 2 files changed, 19 insertions(+) (limited to 'sound') diff --git a/sound/soc/msm/apq8096-auto.c b/sound/soc/msm/apq8096-auto.c index a0c5ef0dce6d..9874e3aa0589 100644 --- a/sound/soc/msm/apq8096-auto.c +++ b/sound/soc/msm/apq8096-auto.c @@ -34,6 +34,7 @@ #include #include #include +#include #include "qdsp6v2/msm-pcm-routing-v2.h" #define DRV_NAME "apq8096-auto-asoc-snd" @@ -6831,6 +6832,12 @@ static int apq8096_asoc_machine_probe(struct platform_device *pdev) const struct of_device_id *match; 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"); @@ -6894,6 +6901,7 @@ static int apq8096_asoc_machine_probe(struct platform_device *pdev) goto err; } dev_info(&pdev->dev, "Sound card %s registered\n", card->name); + place_marker("M - DRIVER Audio Ready"); return 0; err: diff --git a/sound/soc/msm/qdsp6v2/msm-dai-q6-v2.c b/sound/soc/msm/qdsp6v2/msm-dai-q6-v2.c index 8098db80194d..9ad232293361 100644 --- a/sound/soc/msm/qdsp6v2/msm-dai-q6-v2.c +++ b/sound/soc/msm/qdsp6v2/msm-dai-q6-v2.c @@ -28,6 +28,7 @@ #include #include #include +#include #define MSM_DAI_PRI_AUXPCM_DT_DEV_ID 1 #define MSM_DAI_SEC_AUXPCM_DT_DEV_ID 2 @@ -4477,6 +4478,7 @@ static int msm_dai_q6_mi2s_dev_probe(struct platform_device *pdev) u32 mi2s_intf = 0; struct msm_mi2s_pdata *mi2s_pdata; int rc; + char boot_marker[40]; rc = of_property_read_u32(pdev->dev.of_node, q6_mi2s_dev_id, &mi2s_intf); @@ -4486,6 +4488,10 @@ static int msm_dai_q6_mi2s_dev_probe(struct platform_device *pdev) goto rtn; } + snprintf(boot_marker, sizeof(boot_marker), + "M - DRIVER MSM I2S_%d Init", mi2s_intf); + place_marker(boot_marker); + dev_dbg(&pdev->dev, "dev name %s dev id 0x%x\n", dev_name(&pdev->dev), mi2s_intf); @@ -4549,6 +4555,11 @@ static int msm_dai_q6_mi2s_dev_probe(struct platform_device *pdev) if (IS_ERR_VALUE(rc)) goto err_register; + + snprintf(boot_marker, sizeof(boot_marker), + "M - DRIVER MSM I2S_%d Ready", mi2s_intf); + place_marker(boot_marker); + return 0; err_register: -- cgit v1.2.3