From 21e41bde4d683485578c6844b5bce813d6c72de7 Mon Sep 17 00:00:00 2001 From: Deru Wang Date: Mon, 18 Jan 2021 15:57:34 +0800 Subject: [PATCH] asoc: add audio driver markers for automotive platforms add init/ready markers for measuring audio driver kpi on sa*155 platforms. Change-Id: Icfd996689728e4279dc764f5703570379bb776e6 Signed-off-by: Deru Wang --- asoc/sa6155.c | 7 ++++--- asoc/sa8155.c | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/asoc/sa6155.c b/asoc/sa6155.c index 9c2c5b660092..14e34459c2f9 100644 --- a/asoc/sa6155.c +++ b/asoc/sa6155.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2014-2020, The Linux Foundation. All rights reserved. +/* Copyright (c) 2014-2021, The Linux Foundation. All rights reserved. */ /* * Copyright 2011, The Android Open Source Project @@ -48,6 +48,7 @@ #include #include #include +#include #include "device_event.h" #include "msm-pcm-routing-v2.h" #include "msm_dailink.h" @@ -7274,9 +7275,9 @@ static int msm_asoc_machine_probe(struct platform_device *pdev) static int first_probe = 1; if (first_probe) { + place_marker("M - DRIVER Audio Init"); first_probe = 0; } - pr_debug("M - DRIVER Audio Init\n"); if (!pdev->dev.of_node) { dev_err(&pdev->dev, "No platform supplied from device tree\n"); @@ -7356,7 +7357,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); - pr_debug("M - DRIVER Audio Ready\n"); + place_marker("M - DRIVER Audio Ready"); return 0; err: msm_release_pinctrl(pdev); diff --git a/asoc/sa8155.c b/asoc/sa8155.c index 6b7760fc69b1..167cd963d7e5 100644 --- a/asoc/sa8155.c +++ b/asoc/sa8155.c @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-only -/* Copyright (c) 2014-2020, The Linux Foundation. All rights reserved. +/* Copyright (c) 2014-2021, The Linux Foundation. All rights reserved. */ /* * Copyright 2011, The Android Open Source Project @@ -49,6 +49,7 @@ #include #include #include +#include #include "device_event.h" #include "msm-pcm-routing-v2.h" #include "msm_dailink.h" @@ -7271,9 +7272,9 @@ static int msm_asoc_machine_probe(struct platform_device *pdev) static int first_probe = 1; if (first_probe) { + place_marker("M - DRIVER Audio Init"); first_probe = 0; } - pr_debug("M - DRIVER Audio Init\n"); if (!pdev->dev.of_node) { dev_err(&pdev->dev, "No platform supplied from device tree\n"); @@ -7353,7 +7354,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); - pr_debug("M - DRIVER Audio Ready\n"); + place_marker("M - DRIVER Audio Ready"); return 0; err: msm_release_pinctrl(pdev);