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
|
#ifndef LX6464ES_H
#define LX6464ES_H
#include <linux/spinlock.h>
#include <linux/atomic.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include "lx_core.h"
#define LXP "LX6464ES: "
enum {
ES_cmd_free = 0,
ES_cmd_processing = 1,
ES_read_pending = 2,
ES_read_finishing = 3,
};
enum lx_stream_status {
LX_STREAM_STATUS_FREE,
LX_STREAM_STATUS_SCHEDULE_RUN,
LX_STREAM_STATUS_RUNNING,
LX_STREAM_STATUS_SCHEDULE_STOP,
};
struct lx_stream {
struct snd_pcm_substream *stream;
snd_pcm_uframes_t frame_pos;
enum lx_stream_status status;
unsigned int is_capture:1;
};
struct lx6464es {
struct snd_card *card;
struct pci_dev *pci;
int irq;
u8 mac_address[6];
spinlock_t lock;
struct mutex setup_mutex;
struct tasklet_struct trigger_tasklet;
struct tasklet_struct tasklet_capture;
struct tasklet_struct tasklet_playback;
unsigned long port_plx;
void __iomem *port_plx_remapped;
void __iomem *port_dsp_bar;
spinlock_t msg_lock;
struct lx_rmh rmh;
uint freq_ratio : 2;
uint playback_mute : 1;
uint hardware_running[2];
u32 board_sample_rate;
u16 pcm_granularity;
struct snd_dma_buffer capture_dma_buf;
struct snd_dma_buffer playback_dma_buf;
struct snd_pcm *pcm;
struct lx_stream capture_stream;
struct lx_stream playback_stream;
};
#endif /* LX6464ES_H */
|