0001
0002 #ifndef __DRM_I2C_TDA998X_H__
0003 #define __DRM_I2C_TDA998X_H__
0004
0005 #include <linux/hdmi.h>
0006 #include <dt-bindings/display/tda998x.h>
0007
0008 enum {
0009 AFMT_UNUSED = 0,
0010 AFMT_SPDIF = TDA998x_SPDIF,
0011 AFMT_I2S = TDA998x_I2S,
0012 };
0013
0014 struct tda998x_audio_params {
0015 u8 config;
0016 u8 format;
0017 unsigned sample_width;
0018 unsigned sample_rate;
0019 struct hdmi_audio_infoframe cea;
0020 u8 status[5];
0021 };
0022
0023 struct tda998x_encoder_params {
0024 u8 swap_b:3;
0025 u8 mirr_b:1;
0026 u8 swap_a:3;
0027 u8 mirr_a:1;
0028 u8 swap_d:3;
0029 u8 mirr_d:1;
0030 u8 swap_c:3;
0031 u8 mirr_c:1;
0032 u8 swap_f:3;
0033 u8 mirr_f:1;
0034 u8 swap_e:3;
0035 u8 mirr_e:1;
0036
0037 struct tda998x_audio_params audio_params;
0038 };
0039
0040 #endif