summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChen Liangjun <b36089@freescale.com>2012-07-29 21:33:04 +0800
committerChen Liangjun <b36089@freescale.com>2012-07-30 16:57:25 +0800
commit253214e27a09c3320423b5274be00c3416b48c1a (patch)
tree76a8519f61ea0e2a3f192c7286b847140354f910 /include
parent238d8d1281485f65b8a6b56df638476f5cb22db7 (diff)
ENGR00218421-2 ESAI_ASRC:Add support for p2p virtual device playback
In the origin code, ESAI driver supoprt audio p2p playback by setting input PCM data's sample rate thought amixer interface.It is ugly and request user application call amixer control interface everytime before and playback. In this patch, user can call the audio p2p playback by writing data to an special virtual device. Driver would automatically get the params of input PCM. At the same time, driver would get the output sample rate and word data. With the data abover, driver can set ASRC properly and audio p2p palyback is support. This patch mainly focus on: 1 clean old p2p playback way for ESAI. 2 Setup the output sample rate and word width to virtual device's substream_runtime's private data. Everytime the virtual device is called, the data abover is used for config ASRC, ESAI, and codec. Signed-off-by: Chen Liangjun <b36089@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mxc_asrc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mxc_asrc.h b/include/linux/mxc_asrc.h
index 72556a5e1669..081fafa65ab0 100644
--- a/include/linux/mxc_asrc.h
+++ b/include/linux/mxc_asrc.h
@@ -190,6 +190,11 @@ struct dma_block {
struct list_head queue;
};
+struct asrc_p2p_params {
+ u32 p2p_rate;/* ASRC output rate for p2p */
+ enum asrc_word_width p2p_width;/* ASRC output wordwidth for p2p */
+};
+
struct asrc_pair_params {
enum asrc_pair_index index;
struct list_head input_queue;