Loading asoc/msm-pcm-q6-v2.c +10 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,9 @@ #include <dsp/q6audio-v2.h> #include <dsp/q6core.h> #include <dsp/q6asm-v2.h> #ifdef CONFIG_MSM_BOOT_TIME_MARKER #include <soc/qcom/boot_stats.h> #endif #include "msm-pcm-q6-v2.h" #include "msm-pcm-routing-v2.h" Loading Loading @@ -640,11 +643,18 @@ static int msm_pcm_trigger(struct snd_pcm_substream *substream, int cmd) int ret = 0; struct snd_pcm_runtime *runtime = substream->runtime; struct msm_audio *prtd = runtime->private_data; static int first_time = 1; switch (cmd) { case SNDRV_PCM_TRIGGER_START: case SNDRV_PCM_TRIGGER_RESUME: case SNDRV_PCM_TRIGGER_PAUSE_RELEASE: if (first_time) { #ifdef CONFIG_MSM_BOOT_TIME_MARKER place_marker("K - Early chime"); #endif first_time = 0; } pr_debug("%s: Trigger start\n", __func__); ret = q6asm_run_nowait(prtd->audio_client, 0, 0, 0); break; Loading Loading
asoc/msm-pcm-q6-v2.c +10 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,9 @@ #include <dsp/q6audio-v2.h> #include <dsp/q6core.h> #include <dsp/q6asm-v2.h> #ifdef CONFIG_MSM_BOOT_TIME_MARKER #include <soc/qcom/boot_stats.h> #endif #include "msm-pcm-q6-v2.h" #include "msm-pcm-routing-v2.h" Loading Loading @@ -640,11 +643,18 @@ static int msm_pcm_trigger(struct snd_pcm_substream *substream, int cmd) int ret = 0; struct snd_pcm_runtime *runtime = substream->runtime; struct msm_audio *prtd = runtime->private_data; static int first_time = 1; switch (cmd) { case SNDRV_PCM_TRIGGER_START: case SNDRV_PCM_TRIGGER_RESUME: case SNDRV_PCM_TRIGGER_PAUSE_RELEASE: if (first_time) { #ifdef CONFIG_MSM_BOOT_TIME_MARKER place_marker("K - Early chime"); #endif first_time = 0; } pr_debug("%s: Trigger start\n", __func__); ret = q6asm_run_nowait(prtd->audio_client, 0, 0, 0); break; Loading