summaryrefslogtreecommitdiffstats
path: root/include/sound/pxa2xx-lib.h
diff options
context:
space:
mode:
authorRobert Jarzmik <robert.jarzmik@free.fr>2017-09-02 15:54:06 -0400
committerMark Brown <broonie@kernel.org>2017-09-04 13:24:56 -0400
commit6f8acad646d29fbf5665a6e0c9adae71c3c2131e (patch)
tree872fbd3a3e4c81e523424eecb68ba94cc03285f2 /include/sound/pxa2xx-lib.h
parent8d43344108c9945456128b75b69beee594b64ed6 (diff)
ASoC: arm: make pxa2xx-ac97-lib ac97 codec agnostic
All pxa library functions don't use the input parameters for nothing but slot number. This simplifies their prototypes, and makes them usable by both the legacy ac97 bus and the new ac97 bus. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/pxa2xx-lib.h')
-rw-r--r--include/sound/pxa2xx-lib.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/include/sound/pxa2xx-lib.h b/include/sound/pxa2xx-lib.h
index 6ef629bde164..85352becec7c 100644
--- a/include/sound/pxa2xx-lib.h
+++ b/include/sound/pxa2xx-lib.h
@@ -1,10 +1,13 @@
1#ifndef PXA2XX_LIB_H 1#ifndef PXA2XX_LIB_H
2#define PXA2XX_LIB_H 2#define PXA2XX_LIB_H
3 3
4#include <uapi/sound/asound.h>
4#include <linux/platform_device.h> 5#include <linux/platform_device.h>
5#include <sound/ac97_codec.h>
6 6
7/* PCM */ 7/* PCM */
8struct snd_pcm_substream;
9struct snd_pcm_hw_params;
10struct snd_pcm;
8 11
9extern int __pxa2xx_pcm_hw_params(struct snd_pcm_substream *substream, 12extern int __pxa2xx_pcm_hw_params(struct snd_pcm_substream *substream,
10 struct snd_pcm_hw_params *params); 13 struct snd_pcm_hw_params *params);
@@ -21,12 +24,12 @@ extern void pxa2xx_pcm_free_dma_buffers(struct snd_pcm *pcm);
21 24
22/* AC97 */ 25/* AC97 */
23 26
24extern unsigned short pxa2xx_ac97_read(struct snd_ac97 *ac97, unsigned short reg); 27extern int pxa2xx_ac97_read(int slot, unsigned short reg);
25extern void pxa2xx_ac97_write(struct snd_ac97 *ac97, unsigned short reg, unsigned short val); 28extern int pxa2xx_ac97_write(int slot, unsigned short reg, unsigned short val);
26 29
27extern bool pxa2xx_ac97_try_warm_reset(struct snd_ac97 *ac97); 30extern bool pxa2xx_ac97_try_warm_reset(void);
28extern bool pxa2xx_ac97_try_cold_reset(struct snd_ac97 *ac97); 31extern bool pxa2xx_ac97_try_cold_reset(void);
29extern void pxa2xx_ac97_finish_reset(struct snd_ac97 *ac97); 32extern void pxa2xx_ac97_finish_reset(void);
30 33
31extern int pxa2xx_ac97_hw_suspend(void); 34extern int pxa2xx_ac97_hw_suspend(void);
32extern int pxa2xx_ac97_hw_resume(void); 35extern int pxa2xx_ac97_hw_resume(void);