| /* SPDX-License-Identifier: GPL-2.0 */ |
| |
| #ifndef __AML_AUDIO_SHAREBUFFER_H__ |
| #define __AML_AUDIO_SHAREBUFFER_H__ |
| |
| extern int sharebuffer_prepare(struct snd_pcm_substream *substream, |
| void *pfrddr, int samesource_sel, int lane_i2s, int offset); |
| extern int sharebuffer_free(struct snd_pcm_substream *substream, |
| void *pfrddr, int samesource_sel); |
| extern int sharebuffer_trigger(int cmd, int samesource_sel, bool reenable); |
| |
| extern void sharebuffer_get_mclk_fs_ratio(int samesource_sel, |
| int *pll_mclk_ratio, int *mclk_fs_ratio); |
| #endif |