diff options
Diffstat (limited to 'sound/oss/pas2_pcm.c')
-rw-r--r-- | sound/oss/pas2_pcm.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/sound/oss/pas2_pcm.c b/sound/oss/pas2_pcm.c index 6f13ab4afc6b..474803b52f7d 100644 --- a/sound/oss/pas2_pcm.c +++ b/sound/oss/pas2_pcm.c | |||
@@ -22,10 +22,6 @@ | |||
22 | 22 | ||
23 | #include "pas2.h" | 23 | #include "pas2.h" |
24 | 24 | ||
25 | #ifndef DEB | ||
26 | #define DEB(WHAT) | ||
27 | #endif | ||
28 | |||
29 | #define PAS_PCM_INTRBITS (0x08) | 25 | #define PAS_PCM_INTRBITS (0x08) |
30 | /* | 26 | /* |
31 | * Sample buffer timer interrupt enable | 27 | * Sample buffer timer interrupt enable |
@@ -156,8 +152,6 @@ static int pas_audio_ioctl(int dev, unsigned int cmd, void __user *arg) | |||
156 | int val, ret; | 152 | int val, ret; |
157 | int __user *p = arg; | 153 | int __user *p = arg; |
158 | 154 | ||
159 | DEB(printk("pas2_pcm.c: static int pas_audio_ioctl(unsigned int cmd = %X, unsigned int arg = %X)\n", cmd, arg)); | ||
160 | |||
161 | switch (cmd) | 155 | switch (cmd) |
162 | { | 156 | { |
163 | case SOUND_PCM_WRITE_RATE: | 157 | case SOUND_PCM_WRITE_RATE: |
@@ -204,8 +198,6 @@ static int pas_audio_ioctl(int dev, unsigned int cmd, void __user *arg) | |||
204 | 198 | ||
205 | static void pas_audio_reset(int dev) | 199 | static void pas_audio_reset(int dev) |
206 | { | 200 | { |
207 | DEB(printk("pas2_pcm.c: static void pas_audio_reset(void)\n")); | ||
208 | |||
209 | pas_write(pas_read(0xF8A) & ~0x40, 0xF8A); /* Disable PCM */ | 201 | pas_write(pas_read(0xF8A) & ~0x40, 0xF8A); /* Disable PCM */ |
210 | } | 202 | } |
211 | 203 | ||
@@ -214,8 +206,6 @@ static int pas_audio_open(int dev, int mode) | |||
214 | int err; | 206 | int err; |
215 | unsigned long flags; | 207 | unsigned long flags; |
216 | 208 | ||
217 | DEB(printk("pas2_pcm.c: static int pas_audio_open(int mode = %X)\n", mode)); | ||
218 | |||
219 | spin_lock_irqsave(&pas_lock, flags); | 209 | spin_lock_irqsave(&pas_lock, flags); |
220 | if (pcm_busy) | 210 | if (pcm_busy) |
221 | { | 211 | { |
@@ -239,8 +229,6 @@ static void pas_audio_close(int dev) | |||
239 | { | 229 | { |
240 | unsigned long flags; | 230 | unsigned long flags; |
241 | 231 | ||
242 | DEB(printk("pas2_pcm.c: static void pas_audio_close(void)\n")); | ||
243 | |||
244 | spin_lock_irqsave(&pas_lock, flags); | 232 | spin_lock_irqsave(&pas_lock, flags); |
245 | 233 | ||
246 | pas_audio_reset(dev); | 234 | pas_audio_reset(dev); |
@@ -256,8 +244,6 @@ static void pas_audio_output_block(int dev, unsigned long buf, int count, | |||
256 | { | 244 | { |
257 | unsigned long flags, cnt; | 245 | unsigned long flags, cnt; |
258 | 246 | ||
259 | DEB(printk("pas2_pcm.c: static void pas_audio_output_block(char *buf = %P, int count = %X)\n", buf, count)); | ||
260 | |||
261 | cnt = count; | 247 | cnt = count; |
262 | if (audio_devs[dev]->dmap_out->dma > 3) | 248 | if (audio_devs[dev]->dmap_out->dma > 3) |
263 | cnt >>= 1; | 249 | cnt >>= 1; |
@@ -303,8 +289,6 @@ static void pas_audio_start_input(int dev, unsigned long buf, int count, | |||
303 | unsigned long flags; | 289 | unsigned long flags; |
304 | int cnt; | 290 | int cnt; |
305 | 291 | ||
306 | DEB(printk("pas2_pcm.c: static void pas_audio_start_input(char *buf = %P, int count = %X)\n", buf, count)); | ||
307 | |||
308 | cnt = count; | 292 | cnt = count; |
309 | if (audio_devs[dev]->dmap_out->dma > 3) | 293 | if (audio_devs[dev]->dmap_out->dma > 3) |
310 | cnt >>= 1; | 294 | cnt >>= 1; |
@@ -388,8 +372,6 @@ static struct audio_driver pas_audio_driver = | |||
388 | 372 | ||
389 | void __init pas_pcm_init(struct address_info *hw_config) | 373 | void __init pas_pcm_init(struct address_info *hw_config) |
390 | { | 374 | { |
391 | DEB(printk("pas2_pcm.c: long pas_pcm_init()\n")); | ||
392 | |||
393 | pcm_bitsok = 8; | 375 | pcm_bitsok = 8; |
394 | if (pas_read(0xEF8B) & 0x08) | 376 | if (pas_read(0xEF8B) & 0x08) |
395 | pcm_bitsok |= 16; | 377 | pcm_bitsok |= 16; |