hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/include/sound/pxa2xx-lib.h
....@@ -10,6 +10,7 @@
1010 struct snd_pcm_hw_params;
1111 struct snd_soc_pcm_runtime;
1212 struct snd_pcm;
13
+struct snd_soc_component;
1314
1415 extern int pxa2xx_pcm_hw_params(struct snd_pcm_substream *substream,
1516 struct snd_pcm_hw_params *params);
....@@ -23,8 +24,29 @@
2324 struct vm_area_struct *vma);
2425 extern int pxa2xx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream);
2526 extern void pxa2xx_pcm_free_dma_buffers(struct snd_pcm *pcm);
26
-extern int pxa2xx_soc_pcm_new(struct snd_soc_pcm_runtime *rtd);
27
-extern const struct snd_pcm_ops pxa2xx_pcm_ops;
27
+extern void pxa2xx_soc_pcm_free(struct snd_soc_component *component,
28
+ struct snd_pcm *pcm);
29
+extern int pxa2xx_soc_pcm_new(struct snd_soc_component *component,
30
+ struct snd_soc_pcm_runtime *rtd);
31
+extern int pxa2xx_soc_pcm_open(struct snd_soc_component *component,
32
+ struct snd_pcm_substream *substream);
33
+extern int pxa2xx_soc_pcm_close(struct snd_soc_component *component,
34
+ struct snd_pcm_substream *substream);
35
+extern int pxa2xx_soc_pcm_hw_params(struct snd_soc_component *component,
36
+ struct snd_pcm_substream *substream,
37
+ struct snd_pcm_hw_params *params);
38
+extern int pxa2xx_soc_pcm_hw_free(struct snd_soc_component *component,
39
+ struct snd_pcm_substream *substream);
40
+extern int pxa2xx_soc_pcm_prepare(struct snd_soc_component *component,
41
+ struct snd_pcm_substream *substream);
42
+extern int pxa2xx_soc_pcm_trigger(struct snd_soc_component *component,
43
+ struct snd_pcm_substream *substream, int cmd);
44
+extern snd_pcm_uframes_t
45
+pxa2xx_soc_pcm_pointer(struct snd_soc_component *component,
46
+ struct snd_pcm_substream *substream);
47
+extern int pxa2xx_soc_pcm_mmap(struct snd_soc_component *component,
48
+ struct snd_pcm_substream *substream,
49
+ struct vm_area_struct *vma);
2850
2951 /* AC97 */
3052