diff options
author | Mark Brown <broonie@linaro.org> | 2013-11-08 05:43:18 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-11-08 05:43:18 -0500 |
commit | 5196e6ffc253937a8f22121d28ac7192e7260793 (patch) | |
tree | 338644a50b42a361093e3e5b1235b1df186baf84 /include | |
parent | 53659907765e8b91481d9ff8a4fc78c4897043f0 (diff) | |
parent | a894bd7fb539d671149fea9420c94c0fbe6baf7a (diff) |
Merge remote-tracking branch 'asoc/fix/dma' into asoc-linus
Diffstat (limited to 'include')
-rw-r--r-- | include/sound/dmaengine_pcm.h | 8 | ||||
-rw-r--r-- | include/sound/soc-dai.h | 7 |
2 files changed, 15 insertions, 0 deletions
diff --git a/include/sound/dmaengine_pcm.h b/include/sound/dmaengine_pcm.h index f11c35cd5532..15017311f2e9 100644 --- a/include/sound/dmaengine_pcm.h +++ b/include/sound/dmaengine_pcm.h | |||
@@ -61,6 +61,8 @@ struct dma_chan *snd_dmaengine_pcm_get_chan(struct snd_pcm_substream *substream) | |||
61 | * @slave_id: Slave requester id for the DMA channel. | 61 | * @slave_id: Slave requester id for the DMA channel. |
62 | * @filter_data: Custom DMA channel filter data, this will usually be used when | 62 | * @filter_data: Custom DMA channel filter data, this will usually be used when |
63 | * requesting the DMA channel. | 63 | * requesting the DMA channel. |
64 | * @chan_name: Custom channel name to use when requesting DMA channel. | ||
65 | * @fifo_size: FIFO size of the DAI controller in bytes | ||
64 | */ | 66 | */ |
65 | struct snd_dmaengine_dai_dma_data { | 67 | struct snd_dmaengine_dai_dma_data { |
66 | dma_addr_t addr; | 68 | dma_addr_t addr; |
@@ -68,6 +70,8 @@ struct snd_dmaengine_dai_dma_data { | |||
68 | u32 maxburst; | 70 | u32 maxburst; |
69 | unsigned int slave_id; | 71 | unsigned int slave_id; |
70 | void *filter_data; | 72 | void *filter_data; |
73 | const char *chan_name; | ||
74 | unsigned int fifo_size; | ||
71 | }; | 75 | }; |
72 | 76 | ||
73 | void snd_dmaengine_pcm_set_config_from_dai_data( | 77 | void snd_dmaengine_pcm_set_config_from_dai_data( |
@@ -96,6 +100,10 @@ void snd_dmaengine_pcm_set_config_from_dai_data( | |||
96 | * playback. | 100 | * playback. |
97 | */ | 101 | */ |
98 | #define SND_DMAENGINE_PCM_FLAG_HALF_DUPLEX BIT(3) | 102 | #define SND_DMAENGINE_PCM_FLAG_HALF_DUPLEX BIT(3) |
103 | /* | ||
104 | * The PCM streams have custom channel names specified. | ||
105 | */ | ||
106 | #define SND_DMAENGINE_PCM_FLAG_CUSTOM_CHANNEL_NAME BIT(4) | ||
99 | 107 | ||
100 | /** | 108 | /** |
101 | * struct snd_dmaengine_pcm_config - Configuration data for dmaengine based PCM | 109 | * struct snd_dmaengine_pcm_config - Configuration data for dmaengine based PCM |
diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h index ae9a227d35d3..97943fd397cc 100644 --- a/include/sound/soc-dai.h +++ b/include/sound/soc-dai.h | |||
@@ -276,6 +276,13 @@ static inline void snd_soc_dai_set_dma_data(struct snd_soc_dai *dai, | |||
276 | dai->capture_dma_data = data; | 276 | dai->capture_dma_data = data; |
277 | } | 277 | } |
278 | 278 | ||
279 | static inline void snd_soc_dai_init_dma_data(struct snd_soc_dai *dai, | ||
280 | void *playback, void *capture) | ||
281 | { | ||
282 | dai->playback_dma_data = playback; | ||
283 | dai->capture_dma_data = capture; | ||
284 | } | ||
285 | |||
279 | static inline void snd_soc_dai_set_drvdata(struct snd_soc_dai *dai, | 286 | static inline void snd_soc_dai_set_drvdata(struct snd_soc_dai *dai, |
280 | void *data) | 287 | void *data) |
281 | { | 288 | { |