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

Commit 4cebdfaf authored by Anish Kumar's avatar Anish Kumar
Browse files

ASoC: msm: Add support to improve debug logging



Improve debug logs by adding function names. This
change is required to fix rarely reproducible
customer issues.

Change-Id: I2290b094f17e57f4c7f1f2631683c1eabf504f96
Signed-off-by: default avatarAnish Kumar <kanish@codeaurora.org>
parent 1bfd6829
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -182,6 +182,7 @@ struct audio_client {
	wait_queue_head_t      mem_wait;
	int                    perf_mode;
	int					   stream_id;
	struct device *dev;
	/* audio cache operations fptr*/
	int (*fptr_cache_ops)(struct audio_buffer *abuff, int cache_op);
	atomic_t               unmap_cb_success;
+3 −0
Original line number Diff line number Diff line
@@ -462,6 +462,7 @@ static int msm_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
static int msm_pcm_open(struct snd_pcm_substream *substream)
{
	struct snd_pcm_runtime *runtime = substream->runtime;
	struct snd_soc_pcm_runtime *soc_prtd = substream->private_data;
	struct msm_audio *prtd;
	int ret = 0;

@@ -479,6 +480,8 @@ static int msm_pcm_open(struct snd_pcm_substream *substream)
		return -ENOMEM;
	}

	prtd->audio_client->dev = soc_prtd->platform->dev;

	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
		runtime->hw = msm_pcm_hardware_playback;

+726 −465

File changed.

Preview size limit exceeded, changes collapsed.