0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef __RL6347A_H__
0010 #define __RL6347A_H__
0011
0012 #include <sound/hda_verbs.h>
0013
0014 #define VERB_CMD(V, N, D) ((N << 20) | (V << 8) | D)
0015
0016 #define RL6347A_VENDOR_REGISTERS 0x20
0017
0018 #define RL6347A_COEF_INDEX\
0019 VERB_CMD(AC_VERB_SET_COEF_INDEX, RL6347A_VENDOR_REGISTERS, 0)
0020 #define RL6347A_PROC_COEF\
0021 VERB_CMD(AC_VERB_SET_PROC_COEF, RL6347A_VENDOR_REGISTERS, 0)
0022
0023 struct rl6347a_priv {
0024 struct reg_default *index_cache;
0025 int index_cache_size;
0026 };
0027
0028 int rl6347a_hw_write(void *context, unsigned int reg, unsigned int value);
0029 int rl6347a_hw_read(void *context, unsigned int reg, unsigned int *value);
0030
0031 #endif