alsa pause command support in imx8m mini

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

alsa pause command support in imx8m mini

482 Views
gavintong
Contributor I

Hi all,

I had implemented a alsa sound driver with imx8m mini SDK board(using imx-5.4.70-2.3.0 sdk), when I issue a pause command using alsa api, it returns "PAUSE command ignored (no hw support)", and the i2s output seems keep sending out the last sample value.

 
//----from imx-pcm-dma-v2.c-------
 
ret = dma_get_slave_caps(chan, &dma_caps);
if (ret == 0) {
if (dma_caps.cmd_pause)
     imx_pcm_hardware.info |= SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_RESUME;
if (dma_caps.residue_granularity <= DMA_RESIDUE_GRANULARITY_SEGMENT)
    imx_pcm_hardware.info |= SNDRV_PCM_INFO_BATCH;

if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
   addr_widths = dma_caps.dst_addr_widths;
else
   addr_widths = dma_caps.src_addr_widths;
}

//-----------------------------------------------

In order to support 'SNDRV_PCM_INFO_PAUSE', the dma has to support pause cmd, but I found imx-sdma seems not implemented device-pause function.

Could anyone kindly give some suggestions?

Thanks a lot,

Gavin


 

0 Kudos
Reply
0 Replies