mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
ASoC: Add place markers to machine driver
Add place markers in probe call of machine driver for measuring boot kpi values. Change-Id: Ib23a64685f5ae5fb04d40db70f7c6376ad27db7b Signed-off-by: Nagarjuna Paladugu <npaladug@codeaurora.org>
This commit is contained in:
parent
5dcf7dd485
commit
628c995972
1 changed files with 7 additions and 0 deletions
|
|
@ -57,6 +57,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"
|
||||
|
||||
|
|
@ -7472,7 +7473,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");
|
||||
return -EINVAL;
|
||||
|
|
@ -7551,6 +7557,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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue