added 2.6.29.6 aldebaran kernel
[nao-ulib.git] / kernel / 2.6.29.6-aldebaran-rt / sound / soc / s3c24xx / s3c2412-i2s.h
blobaac08a25e541df2dc2cb6e0c0ebba094029105c7
1 /* sound/soc/s3c24xx/s3c2412-i2s.c
3 * ALSA Soc Audio Layer - S3C2412 I2S driver
5 * Copyright (c) 2007 Simtec Electronics
6 * http://armlinux.simtec.co.uk/
7 * Ben Dooks <ben@simtec.co.uk>
9 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License as published by the
11 * Free Software Foundation; either version 2 of the License, or (at your
12 * option) any later version.
15 #ifndef __SND_SOC_S3C24XX_S3C2412_I2S_H
16 #define __SND_SOC_S3C24XX_S3C2412_I2S_H __FILE__
18 #define S3C2412_DIV_BCLK (1)
19 #define S3C2412_DIV_RCLK (2)
20 #define S3C2412_DIV_PRESCALER (3)
22 #define S3C2412_CLKSRC_PCLK (0)
23 #define S3C2412_CLKSRC_I2SCLK (1)
25 extern struct clk *s3c2412_get_iisclk(void);
27 extern struct snd_soc_dai s3c2412_i2s_dai;
29 struct s3c2412_rate_calc {
30 unsigned int clk_div; /* for prescaler */
31 unsigned int fs_div; /* for root frame clock */
34 extern int s3c2412_iis_calc_rate(struct s3c2412_rate_calc *info,
35 unsigned int *fstab,
36 unsigned int rate, struct clk *clk);
38 #endif /* __SND_SOC_S3C24XX_S3C2412_I2S_H */