1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * rl6347a.h - RL6347A class device shared support
5 * Copyright 2015 Realtek Semiconductor Corp.
7 * Author: Oder Chiou <oder_chiou@realtek.com>
12 #include <sound/hda_verbs.h>
14 #define VERB_CMD(V, N, D) ((N << 20) | (V << 8) | D)
16 #define RL6347A_VENDOR_REGISTERS 0x20
18 #define RL6347A_COEF_INDEX\
19 VERB_CMD(AC_VERB_SET_COEF_INDEX, RL6347A_VENDOR_REGISTERS, 0)
20 #define RL6347A_PROC_COEF\
21 VERB_CMD(AC_VERB_SET_PROC_COEF, RL6347A_VENDOR_REGISTERS, 0)
24 struct reg_default
*index_cache
;
28 int rl6347a_hw_write(void *context
, unsigned int reg
, unsigned int value
);
29 int rl6347a_hw_read(void *context
, unsigned int reg
, unsigned int *value
);
31 #endif /* __RL6347A_H__ */