alsa pause command support in imx8m mini

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

alsa pause command support in imx8m mini

759件の閲覧回数
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 件の賞賛
返信
0 返答(返信)