tda998x.h 658 B

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