rl6347a.h 811 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * rl6347a.h - RL6347A class device shared support
  4. *
  5. * Copyright 2015 Realtek Semiconductor Corp.
  6. *
  7. * Author: Oder Chiou <[email protected]>
  8. */
  9. #ifndef __RL6347A_H__
  10. #define __RL6347A_H__
  11. #include <sound/hda_verbs.h>
  12. #define VERB_CMD(V, N, D) ((N << 20) | (V << 8) | D)
  13. #define RL6347A_VENDOR_REGISTERS 0x20
  14. #define RL6347A_COEF_INDEX\
  15. VERB_CMD(AC_VERB_SET_COEF_INDEX, RL6347A_VENDOR_REGISTERS, 0)
  16. #define RL6347A_PROC_COEF\
  17. VERB_CMD(AC_VERB_SET_PROC_COEF, RL6347A_VENDOR_REGISTERS, 0)
  18. struct rl6347a_priv {
  19. struct reg_default *index_cache;
  20. int index_cache_size;
  21. };
  22. int rl6347a_hw_write(void *context, unsigned int reg, unsigned int value);
  23. int rl6347a_hw_read(void *context, unsigned int reg, unsigned int *value);
  24. #endif /* __RL6347A_H__ */