xref: /openbmc/linux/sound/soc/ti/omap-mcbsp.h (revision bef7a78d)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * omap-mcbsp.h
4  *
5  * Copyright (C) 2008 Nokia Corporation
6  *
7  * Contact: Jarkko Nikula <jarkko.nikula@bitmer.com>
8  *          Peter Ujfalusi <peter.ujfalusi@ti.com>
9  */
10 
11 #ifndef __OMAP_MCBSP_H__
12 #define __OMAP_MCBSP_H__
13 
14 #include <sound/dmaengine_pcm.h>
15 
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 */
23 };
24 
25 /* McBSP dividers */
26 enum omap_mcbsp_div {
27 	OMAP_MCBSP_CLKGDV,		/* Sample rate generator divider */
28 };
29 
30 int omap_mcbsp_st_add_controls(struct snd_soc_pcm_runtime *rtd, int port_id);
31 
32 #endif /* __OMAP_MCBSP_H__ */
33