mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
38 lines
1.1 KiB
C
Executable File
38 lines
1.1 KiB
C
Executable File
|
|
#ifndef __DRV_HDMI_H__
|
|
#define __DRV_HDMI_H__
|
|
|
|
typedef struct
|
|
{
|
|
__u8 hw_intf; /* 0:iis 1:spdif 2:pcm */
|
|
__u16 fs_between; /* fs */
|
|
__u32 sample_rate; /*sample rate*/
|
|
__u8 clk_edge; /* 0:*/
|
|
__u8 ch0_en; /* 1 */
|
|
__u8 ch1_en; /* 0 */
|
|
__u8 ch2_en; /* 0 */
|
|
__u8 ch3_en; /* 0 */
|
|
__u8 word_length; /* 32 */
|
|
__u8 shift_ctl; /* 0 */
|
|
__u8 dir_ctl; /* 0 */
|
|
__u8 ws_pol;
|
|
__u8 just_pol;
|
|
__u8 channel_num;
|
|
__u8 data_raw;
|
|
__u8 sample_bit;
|
|
__u8 ca; /* channel allocation */
|
|
}hdmi_audio_t;
|
|
|
|
typedef struct
|
|
{
|
|
__s32 (*hdmi_audio_enable)(__u8 mode, __u8 channel);
|
|
__s32 (*hdmi_set_audio_para)(hdmi_audio_t * audio_para);
|
|
__s32 (*hdmi_is_playback)(void);
|
|
}__audio_hdmi_func;
|
|
|
|
void audio_set_hdmi_func(__audio_hdmi_func *hdmi_func);
|
|
#if defined (CONFIG_SND_SUNXI_SOC_AUDIOHUB_INTERFACE) || defined (CONFIG_SND_SOC_RT3261) || ((defined CONFIG_ARCH_SUN8IW7)&& (defined CONFIG_MFD_ACX00))
|
|
void audio_set_muti_hdmi_func(__audio_hdmi_func *hdmi_func);
|
|
#endif
|
|
#endif
|