lkml.org 
[lkml]   [2020]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 07/11] ASoC: q6asm: add support to gapless flag in asm open
From
Date

> 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..

> } 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);

\
 
 \ /
  Last update: 2020-07-07 21:28    [W:0.185 / U:0.372 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site