1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/*
* rt5645_ioctl.h -- RT5645 ALSA SoC audio driver IO control
*
* Copyright 2012 Realtek Microelectronics
* Author: Bard <bardliao@realtek.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __RT5645_IOCTL_H__
#define __RT5645_IOCTL_H__
#include <sound/hwdep.h>
#include <linux/ioctl.h>
enum {
NORMAL=0,
CLUB,
SPK,
HP,
MODE_NUM,
};
enum {
EQ_CH_DACL=0,
EQ_CH_DACR,
EQ_CH_ADC,
EQ_CH_NUM,
};
#define EQ_REG_NUM 28
typedef struct hweq_s {
unsigned int reg[EQ_REG_NUM];
unsigned int value[EQ_REG_NUM];
unsigned int ctrl;
} hweq_t;
int rt5645_ioctl_common(struct snd_hwdep *hw, struct file *file,
unsigned int cmd, unsigned long arg);
int rt5645_update_eqmode(
struct snd_soc_codec *codec, int channel, int mode);
#endif /* __RT5645_IOCTL_H__ */
|