/* * sound\soc\sunxi\sunxi-snddaudio.h * (C) Copyright 2014-2018 * Allwinner Technology Co., Ltd. * yumingfeng * * some simple description for this code * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * */ #ifndef __SUNXI_SNDDAUDIO_H_ #define __SUNXI_SNDDAUDIO_H_ #ifdef CONFIG_SND_SUNXI_MAD #include "sunxi-mad.h" #endif #include "sunxi-daudio.h" struct platform_data { unsigned int audio_format; unsigned int signal_inversion; unsigned int daudio_master; }; struct sunxi_snddaudio_priv { struct snd_soc_card *card; struct platform_data pdata; #ifdef CONFIG_SND_SUNXI_MAD struct sunxi_mad_priv mad_priv; #endif #ifdef DAUDIO_FORMAT_DYNC_DEBUG struct dentry *daudio_debug_root; struct dentry *format_file; struct dentry *signal_invert_file; struct dentry *clock_master_file; char debug_fmt_cmd[64]; char debug_signal_invert_cmd[64]; char debug_clk_mode_cmd[64]; #endif }; #endif