1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Copyright (C) 2008 Nokia Corporation
7 * Contact: Jarkko Nikula <jarkko.nikula@bitmer.com>
8 * Peter Ujfalusi <peter.ujfalusi@ti.com>
11 #ifndef __OMAP_MCBSP_H__
12 #define __OMAP_MCBSP_H__
14 #include <sound/dmaengine_pcm.h>
16 /* Source clocks for McBSP sample rate generator */
17 enum omap_mcbsp_clksrg_clk
{
18 OMAP_MCBSP_SYSCLK_CLKS_FCLK
, /* Internal FCLK */
19 OMAP_MCBSP_SYSCLK_CLKS_EXT
, /* External CLKS pin */
20 OMAP_MCBSP_SYSCLK_CLK
, /* Internal ICLK */
21 OMAP_MCBSP_SYSCLK_CLKX_EXT
, /* External CLKX pin */
22 OMAP_MCBSP_SYSCLK_CLKR_EXT
, /* External CLKR pin */
27 OMAP_MCBSP_CLKGDV
, /* Sample rate generator divider */
30 int omap_mcbsp_st_add_controls(struct snd_soc_pcm_runtime
*rtd
, int port_id
);
32 #endif /* __OMAP_MCBSP_H__ */