2019-05-29 23:57:50 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2008-04-25 11:55:19 +00:00
|
|
|
/*
|
|
|
|
* omap-mcbsp.h
|
|
|
|
*
|
|
|
|
* Copyright (C) 2008 Nokia Corporation
|
|
|
|
*
|
2011-08-11 12:44:57 +00:00
|
|
|
* Contact: Jarkko Nikula <jarkko.nikula@bitmer.com>
|
2011-05-03 15:14:06 +00:00
|
|
|
* Peter Ujfalusi <peter.ujfalusi@ti.com>
|
2008-04-25 11:55:19 +00:00
|
|
|
*/
|
|
|
|
|
2018-11-08 07:29:58 +00:00
|
|
|
#ifndef __OMAP_MCBSP_H__
|
|
|
|
#define __OMAP_MCBSP_H__
|
|
|
|
|
|
|
|
#include <sound/dmaengine_pcm.h>
|
2008-04-25 11:55:19 +00:00
|
|
|
|
|
|
|
/* Source clocks for McBSP sample rate generator */
|
|
|
|
enum omap_mcbsp_clksrg_clk {
|
|
|
|
OMAP_MCBSP_SYSCLK_CLKS_FCLK, /* Internal FCLK */
|
|
|
|
OMAP_MCBSP_SYSCLK_CLKS_EXT, /* External CLKS pin */
|
|
|
|
OMAP_MCBSP_SYSCLK_CLK, /* Internal ICLK */
|
|
|
|
OMAP_MCBSP_SYSCLK_CLKX_EXT, /* External CLKX pin */
|
|
|
|
OMAP_MCBSP_SYSCLK_CLKR_EXT, /* External CLKR pin */
|
|
|
|
};
|
|
|
|
|
|
|
|
/* McBSP dividers */
|
|
|
|
enum omap_mcbsp_div {
|
|
|
|
OMAP_MCBSP_CLKGDV, /* Sample rate generator divider */
|
|
|
|
};
|
|
|
|
|
2014-04-28 14:07:23 +00:00
|
|
|
int omap_mcbsp_st_add_controls(struct snd_soc_pcm_runtime *rtd, int port_id);
|
2010-02-22 12:21:12 +00:00
|
|
|
|
2018-11-08 07:29:58 +00:00
|
|
|
#endif /* __OMAP_MCBSP_H__ */
|