lkml.org 
[lkml]   [2020]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5/8] ASoC: q6asm: use flags directly from asm-dai
    Date
    use flags set by asm-dais directly!

    This will be useful gapless case where write needs a special flag to indicate
    that last buffer.

    Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
    ---
    sound/soc/qcom/qdsp6/q6asm.c | 5 +----
    1 file changed, 1 insertion(+), 4 deletions(-)

    diff --git a/sound/soc/qcom/qdsp6/q6asm.c b/sound/soc/qcom/qdsp6/q6asm.c
    index f5d1f3c2c1ec..d6728304ce6a 100644
    --- a/sound/soc/qcom/qdsp6/q6asm.c
    +++ b/sound/soc/qcom/qdsp6/q6asm.c
    @@ -1546,10 +1546,7 @@ int q6asm_write_async(struct audio_client *ac, uint32_t stream_id, uint32_t len,
    write->mem_map_handle =
    ac->port[SNDRV_PCM_STREAM_PLAYBACK].mem_map_handle;

    - if (wflags == NO_TIMESTAMP)
    - write->flags = (wflags & 0x800000FF);
    - else
    - write->flags = (0x80000000 | wflags);
    + write->flags = wflags;

    port->dsp_buf++;

    --
    2.21.0
    \
     
     \ /
      Last update: 2020-06-11 14:43    [W:2.482 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site