Barry Song | 01e2ab2 | 2009-07-27 18:06:39 +0800 | [diff] [blame] | 1 | /* |
Barry Song | 3a39f83 | 2009-07-29 15:03:16 +0800 | [diff] [blame] | 2 | * sound/soc/blackfin/bf5xx-tdm.h |
Barry Song | 01e2ab2 | 2009-07-27 18:06:39 +0800 | [diff] [blame] | 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 as |
| 6 | * published by the Free Software Foundation. |
| 7 | */ |
| 8 | |
| 9 | #ifndef _BF5XX_TDM_H |
| 10 | #define _BF5XX_TDM_H |
| 11 | |
Barry Song | 08db48f | 2009-09-15 11:24:52 +0800 | [diff] [blame^] | 12 | #define BFIN_TDM_DAI_MAX_SLOTS 8 |
| 13 | struct bf5xx_tdm_port { |
| 14 | u16 tcr1; |
| 15 | u16 rcr1; |
| 16 | u16 tcr2; |
| 17 | u16 rcr2; |
| 18 | unsigned int tx_map[BFIN_TDM_DAI_MAX_SLOTS]; |
| 19 | unsigned int rx_map[BFIN_TDM_DAI_MAX_SLOTS]; |
| 20 | int configured; |
| 21 | }; |
| 22 | |
Barry Song | 01e2ab2 | 2009-07-27 18:06:39 +0800 | [diff] [blame] | 23 | extern struct snd_soc_dai bf5xx_tdm_dai; |
| 24 | |
| 25 | #endif |