tda998x.h 619 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef __DRM_I2C_TDA998X_H__
  2. #define __DRM_I2C_TDA998X_H__
  3. #include <linux/hdmi.h>
  4. #include <dt-bindings/display/tda998x.h>
  5. enum {
  6. AFMT_UNUSED = 0,
  7. AFMT_SPDIF = TDA998x_SPDIF,
  8. AFMT_I2S = TDA998x_I2S,
  9. };
  10. struct tda998x_audio_params {
  11. u8 config;
  12. u8 format;
  13. unsigned sample_width;
  14. unsigned sample_rate;
  15. struct hdmi_audio_infoframe cea;
  16. u8 status[5];
  17. };
  18. struct tda998x_encoder_params {
  19. u8 swap_b:3;
  20. u8 mirr_b:1;
  21. u8 swap_a:3;
  22. u8 mirr_a:1;
  23. u8 swap_d:3;
  24. u8 mirr_d:1;
  25. u8 swap_c:3;
  26. u8 mirr_c:1;
  27. u8 swap_f:3;
  28. u8 mirr_f:1;
  29. u8 swap_e:3;
  30. u8 mirr_e:1;
  31. struct tda998x_audio_params audio_params;
  32. };
  33. #endif