ASoC: es8323: update codec es8323 driver
[firefly-linux-kernel-4.4.55.git] / sound / soc / codecs / rt3261_ioctl.h
1 /*
2  * rt3261_ioctl.h  --  RT3261 ALSA SoC audio driver IO control
3  *
4  * Copyright 2012 Realtek Microelectronics
5  * Author: Bard <bardliao@realtek.com>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License version 2 as
9  * published by the Free Software Foundation.
10  */
11
12 #ifndef __RT3261_IOCTL_H__
13 #define __RT3261_IOCTL_H__
14
15 #include <sound/hwdep.h>
16 #include <linux/ioctl.h>
17
18 enum {
19         NORMAL=0,
20         SPK,
21         HP,
22         MODE_NUM,
23 };
24
25 #define EQ_REG_NUM 19
26 typedef struct  hweq_s {
27         unsigned int reg[EQ_REG_NUM];
28         unsigned int value[EQ_REG_NUM];
29         unsigned int ctrl;
30 } hweq_t;
31
32 int rt3261_ioctl_common(struct snd_hwdep *hw, struct file *file,
33                         unsigned int cmd, unsigned long arg);
34 int rt3261_update_eqmode(struct snd_soc_codec *codec, int mode);
35 #endif /* __RT3261_IOCTL_H__ */