*参照元 [#gadfbc20]
#backlinks

*説明 [#x5b0897c]
-パス: [[linux-4.4.1/include/sound/dmaengine_pcm.h]]

-FIXME: これは何?
--説明


**参考 [#c58ae71d]


*実装 [#g0fa22a2]
 /**
  * struct snd_dmaengine_pcm_config - Configuration data for dmaengine based PCM
  * @prepare_slave_config: Callback used to fill in the DMA slave_config for a
  *   PCM substream. Will be called from the PCM drivers hwparams callback.
  * @compat_request_channel: Callback to request a DMA channel for platforms
  *   which do not use devicetree.
  * @compat_filter_fn: Will be used as the filter function when requesting a
  *  channel for platforms which do not use devicetree. The filter parameter
  *  will be the DAI's DMA data.
  * @dma_dev: If set, request DMA channel on this device rather than the DAI
  *  device.
  * @chan_names: If set, these custom DMA channel names will be requested at
  *  registration time.
  * @pcm_hardware: snd_pcm_hardware struct to be used for the PCM.
  * @prealloc_buffer_size: Size of the preallocated audio buffer.
  *
  * Note: If both compat_request_channel and compat_filter_fn are set
  * compat_request_channel will be used to request the channel and
  * compat_filter_fn will be ignored. Otherwise the channel will be requested
  * using dma_request_channel with compat_filter_fn as the filter function.
  */
 struct snd_dmaengine_pcm_config {
         int (*prepare_slave_config)(struct snd_pcm_substream *substream,
                         struct snd_pcm_hw_params *params,
                         struct dma_slave_config *slave_config);
-
--[[linux-4.4.1/snd_pcm_substream]]
--[[linux-4.4.1/snd_pcm_hw_params]]
--[[linux-4.4.1/dma_slave_config]]

         struct dma_chan *(*compat_request_channel)(
                         struct snd_soc_pcm_runtime *rtd,
                         struct snd_pcm_substream *substream);
-
--[[linux-4.4.1/snd_soc_pcm_runtime]]

         dma_filter_fn compat_filter_fn;
-
--[[linux-4.4.1/dma_filter_fn]]

         struct device *dma_dev;
         const char *chan_names[SNDRV_PCM_STREAM_LAST + 1];
 
-
--[[linux-4.4.1/device]]

         const struct snd_pcm_hardware *pcm_hardware;
         unsigned int prealloc_buffer_size;
-
--[[linux-4.4.1/snd_pcm_hardware]]

 };


*コメント [#df76038d]


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS