4 * Copyright (C) 2008 Nokia Corporation
6 * Contact: Jarkko Nikula <jarkko.nikula@nokia.com>
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * version 2 as published by the Free Software Foundation.
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
24 #ifndef __OMAP_I2S_H__
25 #define __OMAP_I2S_H__
27 /* Source clocks for McBSP sample rate generator */
28 enum omap_mcbsp_clksrg_clk
{
29 OMAP_MCBSP_SYSCLK_CLKS_FCLK
, /* Internal FCLK */
30 OMAP_MCBSP_SYSCLK_CLKS_EXT
, /* External CLKS pin */
31 OMAP_MCBSP_SYSCLK_CLK
, /* Internal ICLK */
32 OMAP_MCBSP_SYSCLK_CLKX_EXT
, /* External CLKX pin */
33 OMAP_MCBSP_SYSCLK_CLKR_EXT
, /* External CLKR pin */
38 OMAP_MCBSP_CLKGDV
, /* Sample rate generator divider */
42 * REVISIT: Preparation for the ASoC v2. Let the number of available links to
43 * be same than number of McBSP ports found in OMAP(s) we are compiling for.
47 extern struct snd_soc_dai omap_mcbsp_dai
[NUM_LINKS
];