summaryrefslogtreecommitdiffstats
path: root/kernel/sound/oss/sb_audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sound/oss/sb_audio.c')
-rw-r--r--kernel/sound/oss/sb_audio.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/kernel/sound/oss/sb_audio.c b/kernel/sound/oss/sb_audio.c
index 048439a16..dc91072f4 100644
--- a/kernel/sound/oss/sb_audio.c
+++ b/kernel/sound/oss/sb_audio.c
@@ -102,12 +102,8 @@ void sb_audio_close(int dev)
if(devc->duplex
&& !devc->fullduplex
&& (devc->opened & OPEN_READ) && (devc->opened & OPEN_WRITE))
- {
- struct dma_buffparms *dmap_temp;
- dmap_temp = audio_devs[dev]->dmap_out;
- audio_devs[dev]->dmap_out = audio_devs[dev]->dmap_in;
- audio_devs[dev]->dmap_in = dmap_temp;
- }
+ swap(audio_devs[dev]->dmap_out, audio_devs[dev]->dmap_in);
+
audio_devs[dev]->dmap_out->dma = devc->dma8;
audio_devs[dev]->dmap_in->dma = ( devc->duplex ) ?
devc->dma16 : devc->dma8;