Re: [PATCH 07/11] ASoC: q6asm: add support to gapless flag in asm open

From: Srinivas Kandagatla
Date: Wed Jul 08 2020 - 05:44:36 EST



Thanks Pierre for review,

On 07/07/2020 17:57, Pierre-Louis Bossart wrote:

diff --git a/sound/soc/qcom/qdsp6/q6asm-dai.c b/sound/soc/qcom/qdsp6/q6asm-dai.c
index c3558288242a..8c214436a2c2 100644
--- a/sound/soc/qcom/qdsp6/q6asm-dai.c
+++ b/sound/soc/qcom/qdsp6/q6asm-dai.c
@@ -258,7 +258,7 @@ static int q6asm_dai_prepare(struct snd_soc_component *component,
ÂÂÂÂÂ if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
ÂÂÂÂÂÂÂÂÂ ret = q6asm_open_write(prtd->audio_client, prtd->stream_id,
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ FORMAT_LINEAR_PCM,
-ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 0, prtd->bits_per_sample);
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 0, prtd->bits_per_sample, false);

nit-pick: it's a bit ironic that is_gapless is false for PCM, when there is no gap in the first place..

I think this is to do with same apis reused for both compressed and pcm.

Probably we can live with it for now!

--srini

ÂÂÂÂÂ } else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
ÂÂÂÂÂÂÂÂÂ ret = q6asm_open_read(prtd->audio_client, prtd->stream_id,
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ FORMAT_LINEAR_PCM,
@@ -685,7 +685,7 @@ static int q6asm_dai_compr_set_params(struct snd_soc_component *component,
ÂÂÂÂÂ if (dir == SND_COMPRESS_PLAYBACK) {
ÂÂÂÂÂÂÂÂÂ ret = q6asm_open_write(prtd->audio_client, prtd->stream_id,
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ params->codec.id, params->codec.profile,
-ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ prtd->bits_per_sample);
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ prtd->bits_per_sample, true);