Frank Mandarino | 171eb8f | 2007-02-02 17:18:38 +0100 | [diff] [blame] | 1 | /* |
Frank Mandarino | 36b8a8b | 2007-04-16 17:18:52 +0200 | [diff] [blame] | 2 | * at91-ssc.h - ALSA SSC interface for the Atmel AT91 SoC |
Frank Mandarino | 171eb8f | 2007-02-02 17:18:38 +0100 | [diff] [blame] | 3 | * |
| 4 | * Author: Frank Mandarino <fmandarino@endrelia.com> |
| 5 | * Endrelia Technologies Inc. |
| 6 | * Created: Jan 9, 2007 |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License version 2 as |
| 10 | * published by the Free Software Foundation. |
| 11 | */ |
| 12 | |
Frank Mandarino | 36b8a8b | 2007-04-16 17:18:52 +0200 | [diff] [blame] | 13 | #ifndef _AT91_SSC_H |
| 14 | #define _AT91_SSC_H |
Frank Mandarino | 171eb8f | 2007-02-02 17:18:38 +0100 | [diff] [blame] | 15 | |
Frank Mandarino | 36b8a8b | 2007-04-16 17:18:52 +0200 | [diff] [blame] | 16 | /* SSC system clock ids */ |
Frank Mandarino | 171eb8f | 2007-02-02 17:18:38 +0100 | [diff] [blame] | 17 | #define AT91_SYSCLK_MCK 0 /* SSC uses AT91 MCK as system clock */ |
| 18 | |
Frank Mandarino | 36b8a8b | 2007-04-16 17:18:52 +0200 | [diff] [blame] | 19 | /* SSC divider ids */ |
Frank Mandarino | 171eb8f | 2007-02-02 17:18:38 +0100 | [diff] [blame] | 20 | #define AT91SSC_CMR_DIV 0 /* MCK divider for BCLK */ |
| 21 | #define AT91SSC_TCMR_PERIOD 1 /* BCLK divider for transmit FS */ |
| 22 | #define AT91SSC_RCMR_PERIOD 2 /* BCLK divider for receive FS */ |
| 23 | |
Liam Girdwood | d37ae53 | 2008-07-07 16:07:37 +0100 | [diff] [blame] | 24 | extern struct snd_soc_dai at91_ssc_dai[]; |
Frank Mandarino | 171eb8f | 2007-02-02 17:18:38 +0100 | [diff] [blame] | 25 | |
Frank Mandarino | 36b8a8b | 2007-04-16 17:18:52 +0200 | [diff] [blame] | 26 | #endif /* _AT91_SSC_H */ |
Frank Mandarino | 171eb8f | 2007-02-02 17:18:38 +0100 | [diff] [blame] | 27 | |