~ubuntu-audio-dev/alsa-driver/tiwai-trunk2

« back to all changes in this revision

Viewing changes to include/dmaengine_pcm.h

  • Committer: Canonistack server
  • Date: 2016-05-16 13:04:41 UTC
  • Revision ID: david.henningsson@canonical.com-20160516130441-xmcvo5v7n0mupdei
Test run of 623 machines: 3 failing with 3 errors and 0 warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
        void *filter_data);
52
52
struct dma_chan *snd_dmaengine_pcm_get_chan(struct snd_pcm_substream *substream);
53
53
 
 
54
/*
 
55
 * The DAI supports packed transfers, eg 2 16-bit samples in a 32-bit word.
 
56
 * If this flag is set the dmaengine driver won't put any restriction on
 
57
 * the supported sample formats and set the DMA transfer size to undefined.
 
58
 * The DAI driver is responsible to disable any unsupported formats in it's
 
59
 * configuration and catch corner cases that are not already handled in
 
60
 * the ALSA core.
 
61
 */
 
62
#define SND_DMAENGINE_PCM_DAI_FLAG_PACK BIT(0)
 
63
 
54
64
/**
55
65
 * struct snd_dmaengine_dai_dma_data - DAI DMA configuration data
56
66
 * @addr: Address of the DAI data source or destination register.
63
73
 * requesting the DMA channel.
64
74
 * @chan_name: Custom channel name to use when requesting DMA channel.
65
75
 * @fifo_size: FIFO size of the DAI controller in bytes
 
76
 * @flags: PCM_DAI flags, only SND_DMAENGINE_PCM_DAI_FLAG_PACK for now
66
77
 */
67
78
struct snd_dmaengine_dai_dma_data {
68
79
        dma_addr_t addr;
72
83
        void *filter_data;
73
84
        const char *chan_name;
74
85
        unsigned int fifo_size;
 
86
        unsigned int flags;
75
87
};
76
88
 
77
89
void snd_dmaengine_pcm_set_config_from_dai_data(