2009-03-04 08:49:31 +08:00
|
|
|
/* sound/soc/s3c24xx/s3c64xx-i2s.h
|
|
|
|
*
|
|
|
|
* ALSA SoC Audio Layer - S3C64XX I2S driver
|
|
|
|
*
|
|
|
|
* Copyright 2008 Openmoko, Inc.
|
|
|
|
* Copyright 2008 Simtec Electronics
|
|
|
|
* Ben Dooks <ben@simtec.co.uk>
|
|
|
|
* http://armlinux.simtec.co.uk/
|
|
|
|
*
|
|
|
|
* 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 __SND_SOC_S3C24XX_S3C64XX_I2S_H
|
|
|
|
#define __SND_SOC_S3C24XX_S3C64XX_I2S_H __FILE__
|
|
|
|
|
2009-04-30 03:30:39 +08:00
|
|
|
struct clk;
|
|
|
|
|
2009-03-04 08:49:31 +08:00
|
|
|
#include "s3c-i2s-v2.h"
|
|
|
|
|
|
|
|
#define S3C64XX_DIV_BCLK S3C_I2SV2_DIV_BCLK
|
|
|
|
#define S3C64XX_DIV_RCLK S3C_I2SV2_DIV_RCLK
|
|
|
|
#define S3C64XX_DIV_PRESCALER S3C_I2SV2_DIV_PRESCALER
|
|
|
|
|
2010-03-10 15:48:54 +08:00
|
|
|
#define S3C64XX_CLKSRC_PCLK S3C_I2SV2_CLKSRC_PCLK
|
|
|
|
#define S3C64XX_CLKSRC_MUX S3C_I2SV2_CLKSRC_AUDIOBUS
|
|
|
|
#define S3C64XX_CLKSRC_CDCLK S3C_I2SV2_CLKSRC_CDCLK
|
2009-03-04 08:49:31 +08:00
|
|
|
|
2010-03-10 15:48:57 +08:00
|
|
|
#define S3C64XX_I2S_RATES \
|
|
|
|
(SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 | SNDRV_PCM_RATE_16000 | \
|
|
|
|
SNDRV_PCM_RATE_22050 | SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | \
|
|
|
|
SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000)
|
|
|
|
|
|
|
|
#define S3C64XX_I2S_FMTS \
|
|
|
|
(SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE |\
|
|
|
|
SNDRV_PCM_FMTBIT_S24_LE)
|
|
|
|
|
2009-04-24 23:33:10 +08:00
|
|
|
extern struct snd_soc_dai s3c64xx_i2s_dai[];
|
2010-04-27 14:57:11 +08:00
|
|
|
extern struct snd_soc_dai s3c64xx_i2s_v4_dai;
|
2009-03-04 08:49:31 +08:00
|
|
|
|
|
|
|
#endif /* __SND_SOC_S3C24XX_S3C64XX_I2S_H */
|