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

Commit addd4dab authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: msm: add boot marker for mi2s and auto sound card"

parents 5cb5749c 996c86f9
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@
#include <sound/pcm_params.h>
#include <sound/info.h>
#include <device_event.h>
#include <soc/qcom/boot_stats.h>
#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:
+11 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@
#include <sound/msm-dai-q6-v2.h>
#include <sound/pcm_params.h>
#include <sound/q6core.h>
#include <soc/qcom/boot_stats.h>

#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: