lkml.org 
[lkml]   [2018]   [Oct]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2 5/5] ASoC: qdsp6: q6asm-dai: Add support to compress offload
From
Date
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
>

\
 
 \ /
  Last update: 2018-10-05 10:15    [W:1.459 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site