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

Commit 21e41bde authored by Deru Wang's avatar Deru Wang
Browse files

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: default avatarDeru Wang <deruwang@codeaurora.org>
parent e60b9d6c
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
/* 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 <dsp/audio_notifier.h>
#include <dsp/q6afe-v2.h>
#include <dsp/q6core.h>
#include <soc/qcom/boot_stats.h>
#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);
+4 −3
Original line number Diff line number Diff line
// 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 <dsp/audio_notifier.h>
#include <dsp/q6afe-v2.h>
#include <dsp/q6core.h>
#include <soc/qcom/boot_stats.h>
#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);