Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu
[linux/fpc-iii.git] / sound / soc / codecs / rl6347a.h
blob1cb56e50b7f339f70eb23874943be5c05fc10ad0
1 /*
2 * rl6347a.h - RL6347A class device shared support
4 * Copyright 2015 Realtek Semiconductor Corp.
6 * Author: Oder Chiou <oder_chiou@realtek.com>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
12 #ifndef __RL6347A_H__
13 #define __RL6347A_H__
15 #define VERB_CMD(V, N, D) ((N << 20) | (V << 8) | D)
17 #define RL6347A_VENDOR_REGISTERS 0x20
19 #define RL6347A_COEF_INDEX\
20 VERB_CMD(AC_VERB_SET_COEF_INDEX, RL6347A_VENDOR_REGISTERS, 0)
21 #define RL6347A_PROC_COEF\
22 VERB_CMD(AC_VERB_SET_PROC_COEF, RL6347A_VENDOR_REGISTERS, 0)
24 struct rl6347a_priv {
25 struct reg_default *index_cache;
26 int index_cache_size;
29 int rl6347a_hw_write(void *context, unsigned int reg, unsigned int value);
30 int rl6347a_hw_read(void *context, unsigned int reg, unsigned int *value);
32 #endif /* __RL6347A_H__ */