2019-05-30 07:57:50 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2008-04-25 19:55:19 +08:00
|
|
|
/*
|
|
|
|
* omap-mcbsp.h
|
|
|
|
*
|
|
|
|
* Copyright (C) 2008 Nokia Corporation
|
|
|
|
*
|
2011-08-11 20:44:57 +08:00
|
|
|
* Contact: Jarkko Nikula <jarkko.nikula@bitmer.com>
|
2011-05-03 23:14:06 +08:00
|
|
|
* Peter Ujfalusi <peter.ujfalusi@ti.com>
|
2008-04-25 19:55:19 +08:00
|
|
|
*/
|
|
|
|
|
2018-11-08 15:29:58 +08:00
|
|
|
#ifndef __OMAP_MCBSP_H__
|
|
|
|
#define __OMAP_MCBSP_H__
|
|
|
|
|
|
|
|
#include <sound/dmaengine_pcm.h>
|
2008-04-25 19:55:19 +08: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 22:07:23 +08:00
|
|
|
int omap_mcbsp_st_add_controls(struct snd_soc_pcm_runtime *rtd, int port_id);
|
2010-02-22 20:21:12 +08:00
|
|
|
|
2018-11-08 15:29:58 +08:00
|
|
|
#endif /* __OMAP_MCBSP_H__ */
|