6b13f685e
김민수
BSP 최초 추가
|
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
#ifndef __AOA_H
#define __AOA_H
#include <asm/prom.h>
#include <linux/module.h>
#include <sound/core.h>
#include <sound/asound.h>
#include <sound/control.h>
#include "aoa-gpio.h"
#include "soundbus/soundbus.h"
#define MAX_CODEC_NAME_LEN 32
struct aoa_codec {
char name[MAX_CODEC_NAME_LEN];
struct module *owner;
int (*init)(struct aoa_codec *codec);
void (*exit)(struct aoa_codec *codec);
struct device_node *node;
struct soundbus_dev *soundbus_dev;
struct gpio_runtime *gpio;
u32 connected;
void *fabric_data;
struct list_head list;
struct aoa_fabric *fabric;
};
extern int
aoa_codec_register(struct aoa_codec *codec);
extern void
aoa_codec_unregister(struct aoa_codec *codec);
#define MAX_LAYOUT_NAME_LEN 32
struct aoa_fabric {
char name[MAX_LAYOUT_NAME_LEN];
struct module *owner;
int (*found_codec)(struct aoa_codec *codec);
void (*remove_codec)(struct aoa_codec *codec);
void (*attached_codec)(struct aoa_codec *codec);
};
extern int
aoa_fabric_register(struct aoa_fabric *fabric, struct device *dev);
extern void
aoa_fabric_unregister(struct aoa_fabric *fabric);
extern void
aoa_fabric_unlink_codec(struct aoa_codec *codec);
struct aoa_card {
struct snd_card *alsa_card;
};
extern int aoa_snd_device_new(snd_device_type_t type,
void * device_data, struct snd_device_ops * ops);
extern struct snd_card *aoa_get_card(void);
extern int aoa_snd_ctl_add(struct snd_kcontrol* control);
extern struct gpio_methods *pmf_gpio_methods;
extern struct gpio_methods *ftr_gpio_methods;
#endif /* __AOA_H */
|