add AT73C213 DAC support for AT91SAM9261
PATCH 1/1 add AT73C213 DAC support for AT91SAM9261
Many AT91SAM9261-based boards use AT73C213 as external audio DAC, this patch makes it work.
---------------------------------------
(quoted diff) +0 -0
b/arch/arm/mach-at91/at91sam9261_devices.c
old mode 100644
new mode 100755
(quoted diff) +0 -0
b/arch/arm/mach-at91/board-sam9261ek.c
old mode 100644
new mode 100755
index 0ce38df..a739cfe
arch/arm/mach-at91/board-sam9261ek.c +49 -0
79 lines not on this page · raw message
sound/core/control.c +0 -0
sound/spi/at73c213.c +0 -0
@@ -114,7 +114,11 @@ snd_at73c213_write_reg(struct snd_at73c213 *chip,
u8 reg, u8 val)
static struct snd_pcm_hardware snd_at73c213_playback_hw = {
.info = SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER,
+#ifdef __BIG_ENDIAN
.formats = SNDRV_PCM_FMTBIT_S16_BE,
+#else
+ .formats = SNDRV_PCM_FMTBIT_S16_LE,
+#endif
.rates = SNDRV_PCM_RATE_CONTINUOUS,
.rate_min = 8000, /* Replaced by chip->bitrate later. */
.rate_max = 50000, /* Replaced by chip->bitrate later. */
Quoted 2 lines · Conke Hu
Many AT91SAM9261-based boards use AT73C213 as external audio DAC, this patch makes it work.
Please send AT91 patches to Andrew Victor.
arch/arm/mach-at91/at91sam9261_devices.c
Quoted 6 lines
Signed-off-by Conke Hu <[email protected]>---------------------------------------
arch/arm/mach-at91/at91sam9261_devices.c +0
-0
This isn't an executable.
arch/arm/mach-at91/board-sam9261ek.c
Quoted 4 lines
arch/arm/mach-at91/board-sam9261ek.c +0
-0
Neither is this. Please don't change their modes. The same goes for the other two files that show up as this.
Signature · 3 lines
Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: