diff options
author | Krzysztof Helt <krzysztof.h1@wp.pl> | 2008-07-31 15:09:32 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-08-06 09:39:56 -0400 |
commit | ead893c0deeec165524cc8a06e7e739d7d84b4c4 (patch) | |
tree | 86881775a9f4e7052eded95747fd8854d043fdda /include | |
parent | 5664daa1c1fa250dd7f6b336278b0402638e8edc (diff) |
ALSA: wss_lib: use wss pcm code instead of ad1848 one
Use the wss pcm code and kill the ad1848 pcm code.
The AD1848 chip is much slower than CS4231 chips
so the waiting loop was increased 100x (10x is not
enough).
Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Reviewed-by: Rene Herman <rene.herman@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'include')
-rw-r--r-- | include/sound/ad1848.h | 8 | ||||
-rw-r--r-- | include/sound/wss.h | 7 |
2 files changed, 7 insertions, 8 deletions
diff --git a/include/sound/ad1848.h b/include/sound/ad1848.h index 03e2abf64a7c..7ff484f55b02 100644 --- a/include/sound/ad1848.h +++ b/include/sound/ad1848.h | |||
@@ -97,11 +97,6 @@ | |||
97 | #define AD1848_CALIB_IN_PROGRESS 0x20 /* auto calibrate in progress */ | 97 | #define AD1848_CALIB_IN_PROGRESS 0x20 /* auto calibrate in progress */ |
98 | #define AD1848_DMA_REQUEST 0x10 /* DMA request in progress */ | 98 | #define AD1848_DMA_REQUEST 0x10 /* DMA request in progress */ |
99 | 99 | ||
100 | /* IBM Thinkpad specific stuff */ | ||
101 | #define AD1848_THINKPAD_CTL_PORT1 0x15e8 | ||
102 | #define AD1848_THINKPAD_CTL_PORT2 0x15e9 | ||
103 | #define AD1848_THINKPAD_CS4248_ENABLE_BIT 0x02 | ||
104 | |||
105 | /* exported functions */ | 100 | /* exported functions */ |
106 | 101 | ||
107 | void snd_ad1848_out(struct snd_wss *chip, unsigned char reg, | 102 | void snd_ad1848_out(struct snd_wss *chip, unsigned char reg, |
@@ -113,7 +108,4 @@ int snd_ad1848_create(struct snd_card *card, | |||
113 | unsigned short hardware, | 108 | unsigned short hardware, |
114 | struct snd_wss **chip); | 109 | struct snd_wss **chip); |
115 | 110 | ||
116 | int snd_ad1848_pcm(struct snd_wss *chip, int device, struct snd_pcm **rpcm); | ||
117 | const struct snd_pcm_ops *snd_ad1848_get_pcm_ops(int direction); | ||
118 | |||
119 | #endif /* __SOUND_AD1848_H */ | 111 | #endif /* __SOUND_AD1848_H */ |
diff --git a/include/sound/wss.h b/include/sound/wss.h index c896f6e1f937..fd01f22825cd 100644 --- a/include/sound/wss.h +++ b/include/sound/wss.h | |||
@@ -71,6 +71,11 @@ | |||
71 | #define WSS_HWSHARE_DMA1 (1<<1) | 71 | #define WSS_HWSHARE_DMA1 (1<<1) |
72 | #define WSS_HWSHARE_DMA2 (1<<2) | 72 | #define WSS_HWSHARE_DMA2 (1<<2) |
73 | 73 | ||
74 | /* IBM Thinkpad specific stuff */ | ||
75 | #define AD1848_THINKPAD_CTL_PORT1 0x15e8 | ||
76 | #define AD1848_THINKPAD_CTL_PORT2 0x15e9 | ||
77 | #define AD1848_THINKPAD_CS4248_ENABLE_BIT 0x02 | ||
78 | |||
74 | struct snd_wss { | 79 | struct snd_wss { |
75 | unsigned long port; /* base i/o port */ | 80 | unsigned long port; /* base i/o port */ |
76 | struct resource *res_port; | 81 | struct resource *res_port; |
@@ -153,6 +158,8 @@ int snd_wss_pcm(struct snd_wss *chip, int device, struct snd_pcm **rpcm); | |||
153 | int snd_wss_timer(struct snd_wss *chip, int device, struct snd_timer **rtimer); | 158 | int snd_wss_timer(struct snd_wss *chip, int device, struct snd_timer **rtimer); |
154 | int snd_wss_mixer(struct snd_wss *chip); | 159 | int snd_wss_mixer(struct snd_wss *chip); |
155 | 160 | ||
161 | const struct snd_pcm_ops *snd_wss_get_pcm_ops(int direction); | ||
162 | |||
156 | int snd_cs4236_create(struct snd_card *card, | 163 | int snd_cs4236_create(struct snd_card *card, |
157 | unsigned long port, | 164 | unsigned long port, |
158 | unsigned long cport, | 165 | unsigned long cport, |