-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrt5671_ioctl.h
66 lines (57 loc) · 1.29 KB
/
rt5671_ioctl.h
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/* LGE_CHANGE_S
* Comment : add realtek alsa sound driver for woden R2
* 2013-03-05, [email protected]
*/
/*
* rt5671_ioctl.h -- RT5671 ALSA SoC audio driver IO control
*
* Copyright 2012 Realtek Microelectronics
* Author: Bard <[email protected]>
*
* 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 __RT5671_IOCTL_H__
#define __RT5671_IOCTL_H__
#include <sound/hwdep.h>
#include <linux/ioctl.h>
enum {
NORMAL = 0,
SPK,
HP,
ADC_TYPE1,
ADC_TYPE2,
ADC_TYPE3,
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;
enum {
ALC_NORMAL = 0,
ALC_TYPE1,
ALC_TYPE2,
ALC_TYPE3,
ALC_MODE_NUM,
};
#define ALC_REG_NUM 6
typedef struct hwalc_s {
unsigned int value[ALC_REG_NUM];
} hwalc_t;
int rt5671_ioctl_common(struct snd_hwdep *hw, struct file *file,
unsigned int cmd, unsigned long arg);
int rt5671_update_eqmode(
struct snd_soc_codec *codec, int channel, int mode);
int rt5671_update_alcmode(struct snd_soc_codec *codec, int mode);
#endif /* __RT5671_IOCTL_H__ */
/* LGE_CHANGE_E */