diff -drupN a/sound/soc/sunxi/sunxi-snddaudio.h b/sound/soc/sunxi/sunxi-snddaudio.h --- a/sound/soc/sunxi/sunxi-snddaudio.h 1970-01-01 03:00:00.000000000 +0300 +++ b/sound/soc/sunxi/sunxi-snddaudio.h 2022-06-12 05:28:14.000000000 +0300 @@ -0,0 +1,50 @@ +/* + * 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