From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
To: Vinod <vkoul@kernel.org>
Cc: broonie@kernel.org, alsa-devel@alsa-project.org,
robh+dt@kernel.org, linux-kernel@vger.kernel.org,
bgoswami@codeaurora.org, rohitkr@codeaurora.org,
lgirdwood@gmail.com, tiwai@suse.com, devicetree@vger.kernel.org,
mark.rutland@arm.com
Subject: Re: [PATCH v2 5/5] ASoC: qdsp6: q6asm-dai: Add support to compress offload
Date: Fri, 5 Oct 2018 09:15:30 +0100 [thread overview]
Message-ID: <dd8fe500-ce7c-4a50-48a4-ef4b5c53dccc@linaro.org> (raw)
In-Reply-To: <20181005003919.GH2372@vkoul-mobl>
Thanks Vinod for the Review!
On 05/10/18 01:39, Vinod wrote:
> On 26-09-18, 11:23, Srinivas Kandagatla wrote:
>> This patch adds MP3 playback support in q6asm dais, adding other codec
>> support should be pretty trivial.
>>
>> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
>> ---
>> sound/soc/qcom/Kconfig | 1 +
>> sound/soc/qcom/qdsp6/q6asm-dai.c | 377 ++++++++++++++++++++++++++++++-
>> 2 files changed, 377 insertions(+), 1 deletion(-)
>>
...
>> +#define Q6ASM_DAI_RX 2
>> +
>> +
>
> Unnecessary double space
>
I did notice this just after I sent the patch!
>> enum stream_state {
>> Q6ASM_STREAM_IDLE = 0,
>> Q6ASM_STREAM_STOPPED,
>> @@ -39,11 +51,22 @@ enum stream_state {
>>
>> struct q6asm_dai_rtd {
>> struct snd_pcm_substream *substream;
>> + struct snd_compr_stream *cstream;
>> + struct snd_compr_params codec_param;
>> + struct snd_dma_buffer dma_buffer;
>> +
>> phys_addr_t phys;
>> + spinlock_t lock;
>
> why would we need a lock for compress case?
bytes_received counter is updated as part of Ack and referenced in the
irq context in the event_handler callback from dsp, this lock is to
protect it !
--srini
>
prev parent reply other threads:[~2018-10-05 8:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-26 10:23 [PATCH v2 0/5] ASoC: qdsp6: add compress offload support Srinivas Kandagatla
2018-09-26 10:23 ` [PATCH v2 1/5] ALSA: soc-compress: add support to snd_compr_set_runtime_buffer() Srinivas Kandagatla
2018-10-05 0:31 ` Vinod
2018-10-05 8:16 ` Srinivas Kandagatla
2018-09-26 10:23 ` [PATCH v2 2/5] ALSA: compress: make use of runtime buffer for copy Srinivas Kandagatla
2018-09-26 10:23 ` [PATCH v2 3/5] ASoC: q6asm-dai: dt-bindings: Add support to compress dais Srinivas Kandagatla
2018-09-26 10:23 ` [PATCH v2 4/5] ASoC: qdsp6: q6asm: add support to MP3 format Srinivas Kandagatla
2018-09-26 10:23 ` [PATCH v2 5/5] ASoC: qdsp6: q6asm-dai: Add support to compress offload Srinivas Kandagatla
2018-10-05 0:39 ` Vinod
2018-10-05 8:15 ` Srinivas Kandagatla [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=dd8fe500-ce7c-4a50-48a4-ef4b5c53dccc@linaro.org \
--to=srinivas.kandagatla@linaro.org \
--cc=alsa-devel@alsa-project.org \
--cc=bgoswami@codeaurora.org \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
--cc=rohitkr@codeaurora.org \
--cc=tiwai@suse.com \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox