Jarkko Nikula | 2e74796 | 2008-04-25 13:55:19 +0200 | [diff] [blame] | 1 | /* |
| 2 | * omap-mcbsp.h |
| 3 | * |
| 4 | * Copyright (C) 2008 Nokia Corporation |
| 5 | * |
Jarkko Nikula | 7ec41ee | 2011-08-11 15:44:57 +0300 | [diff] [blame] | 6 | * Contact: Jarkko Nikula <jarkko.nikula@bitmer.com> |
Peter Ujfalusi | 56a8742 | 2011-05-03 18:14:06 +0300 | [diff] [blame] | 7 | * Peter Ujfalusi <peter.ujfalusi@ti.com> |
Jarkko Nikula | 2e74796 | 2008-04-25 13:55:19 +0200 | [diff] [blame] | 8 | * |
| 9 | * This program is free software; you can redistribute it and/or |
| 10 | * modify it under the terms of the GNU General Public License |
| 11 | * version 2 as published by the Free Software Foundation. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, but |
| 14 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | * General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU General Public License |
| 19 | * along with this program; if not, write to the Free Software |
| 20 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA |
| 21 | * 02110-1301 USA |
| 22 | * |
| 23 | */ |
| 24 | |
| 25 | #ifndef __OMAP_I2S_H__ |
| 26 | #define __OMAP_I2S_H__ |
| 27 | |
| 28 | /* Source clocks for McBSP sample rate generator */ |
| 29 | enum omap_mcbsp_clksrg_clk { |
| 30 | OMAP_MCBSP_SYSCLK_CLKS_FCLK, /* Internal FCLK */ |
| 31 | OMAP_MCBSP_SYSCLK_CLKS_EXT, /* External CLKS pin */ |
| 32 | OMAP_MCBSP_SYSCLK_CLK, /* Internal ICLK */ |
| 33 | OMAP_MCBSP_SYSCLK_CLKX_EXT, /* External CLKX pin */ |
| 34 | OMAP_MCBSP_SYSCLK_CLKR_EXT, /* External CLKR pin */ |
| 35 | }; |
| 36 | |
| 37 | /* McBSP dividers */ |
| 38 | enum omap_mcbsp_div { |
| 39 | OMAP_MCBSP_CLKGDV, /* Sample rate generator divider */ |
| 40 | }; |
| 41 | |
Sebastian Reichel | 0a17a37 | 2014-04-28 16:07:23 +0200 | [diff] [blame] | 42 | int omap_mcbsp_st_add_controls(struct snd_soc_pcm_runtime *rtd, int port_id); |
Ilkka Koskinen | 83905c1 | 2010-02-22 12:21:12 +0000 | [diff] [blame] | 43 | |
Jarkko Nikula | 2e74796 | 2008-04-25 13:55:19 +0200 | [diff] [blame] | 44 | #endif |