diff options
author | Dong Aisheng <b29396@freescale.com> | 2011-09-07 20:51:50 +0800 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-09-19 18:31:59 +0100 |
commit | 76067540c642b1a14679ab74bd027a074c23e63b (patch) | |
tree | abfed6d3a416cd00904371cb4977e672e77230cf /include/sound/saif.h | |
parent | 5d42940c25ac69c4f5240392cf5e26bf08029e7a (diff) | |
download | op-kernel-dev-76067540c642b1a14679ab74bd027a074c23e63b.zip op-kernel-dev-76067540c642b1a14679ab74bd027a074c23e63b.tar.gz |
ASoC: mxs-saif: add record function
1. add different clkmux mode handling
SAIF can use two instances to implement full duplex (playback &
recording) and record saif may work on EXTMASTER mode which is
using other saif's BITCLK&LRCLK.
The clkmux mode could be set in pdata->init() in mach-specific code.
For generic saif driver, it only needs to know who is his master
and the master id is also provided in mach-specific code.
2. support playback and capture simutaneously however the sample
rates can not be different due to hw limitation.
Signed-off-by: Dong Aisheng <b29396@freescale.com>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound/saif.h')
-rw-r--r-- | include/sound/saif.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/sound/saif.h b/include/sound/saif.h new file mode 100644 index 0000000..d0e0de7 --- /dev/null +++ b/include/sound/saif.h @@ -0,0 +1,16 @@ +/* + * Copyright 2011 Freescale Semiconductor, Inc. All Rights Reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#ifndef __SOUND_SAIF_H__ +#define __SOUND_SAIF_H__ + +struct mxs_saif_platform_data { + int (*init) (void); + int (*get_master_id) (unsigned int saif_id); +}; +#endif |