x1000: refactor AIC initialization

Have pcm-x1000 handle most work, so target's audiohw code touches
only the relevant settings.

Change-Id: Icf3d1b7ca428ac50a5a16ecec39ed8186ac5ae13
This commit is contained in:
Aidan MacDonald 2021-05-30 19:56:44 +01:00
parent c78ba1aa68
commit f63edb52ef
7 changed files with 322 additions and 85 deletions

View file

@ -43,8 +43,9 @@
* cannot be used safely.
*/
#define DMA_CHANNEL_AUDIO 0
#define DMA_CHANNEL_FBCOPY 1
#define DMA_NUM_USED_CHANNELS 2
#define DMA_CHANNEL_RECORD 1
#define DMA_CHANNEL_FBCOPY 2
#define DMA_NUM_USED_CHANNELS 3
struct dma_desc {
uint32_t cm; /* meaning and layout same as DMA_CHN_CM */