Lines Matching refs:dmasound
229 struct sound_settings dmasound; variable
233 dmasound.mach.silence(); /* _MUST_ stop DMA */ in sound_silence()
238 return dmasound.mach.setFormat(format); in sound_set_format()
244 return dmasound.soft.speed; in sound_set_speed()
251 if (dmasound.mach.max_dsp_speed && in sound_set_speed()
252 (speed > dmasound.mach.max_dsp_speed)) in sound_set_speed()
253 speed = dmasound.mach.max_dsp_speed ; in sound_set_speed()
255 dmasound.soft.speed = speed; in sound_set_speed()
257 if (dmasound.minDev == SND_DEV_DSP) in sound_set_speed()
258 dmasound.dsp.speed = dmasound.soft.speed; in sound_set_speed()
260 return dmasound.soft.speed; in sound_set_speed()
266 return dmasound.soft.stereo; in sound_set_stereo()
270 dmasound.soft.stereo = stereo; in sound_set_stereo()
271 if (dmasound.minDev == SND_DEV_DSP) in sound_set_stereo()
272 dmasound.dsp.stereo = stereo; in sound_set_stereo()
283 switch (dmasound.soft.format) { in sound_copy_translate()
330 dmasound.mach.open(); in mixer_open()
339 dmasound.mach.release(); in mixer_release()
354 strncpy(info.id, dmasound.mach.name2, sizeof(info.id)); in mixer_ioctl()
355 strncpy(info.name, dmasound.mach.name2, sizeof(info.name)); in mixer_ioctl()
363 if (dmasound.mach.mixer_ioctl) in mixer_ioctl()
364 return dmasound.mach.mixer_ioctl(cmd, arg); in mixer_ioctl()
387 dmasound.treble = 0; in mixer_init()
388 dmasound.bass = 0; in mixer_init()
389 if (dmasound.mach.mixer_init) in mixer_init()
390 dmasound.mach.mixer_init(); in mixer_init()
417 sq->buffers[i] = dmasound.mach.dma_alloc(size, GFP_KERNEL); in sq_allocate_buffers()
420 dmasound.mach.dma_free(sq->buffers[i], size); in sq_allocate_buffers()
435 dmasound.mach.dma_free(sq->buffers[i], sq->bufSize); in sq_release_buffers()
459 dmasound.mach.init(); in sq_setup()
481 (dmasound.soft.size * (dmasound.soft.stereo+1) ) ; in sq_setup()
483 (dmasound.hard.size * (dmasound.hard.stereo+1) ) ; in sq_setup()
488 (dmasound.hard.size * (dmasound.hard.stereo+1) ) ; in sq_setup()
490 (dmasound.soft.size * (dmasound.soft.stereo+1) ) ; in sq_setup()
492 sq->block_size *= dmasound.hard.speed ; in sq_setup()
493 sq->block_size /= dmasound.soft.speed ; in sq_setup()
496 (dmasound.hard.size * (dmasound.hard.stereo+1))/8 ; in sq_setup()
525 setup_func = dmasound.mach.write_sq_setup; in sq_setup()
530 setup_func = dmasound.mach.read_sq_setup; in sq_setup()
540 dmasound.mach.play(); in sq_play()
564 dmasound.mach.init() ; in sq_write()
608 uUsed = sound_copy_translate(dmasound.trans_write, src, uLeft, in sq_write()
638 uUsed = sound_copy_translate(dmasound.trans_write, src, uLeft, in sq_write()
710 if (dmasound.mach.record == NULL) in sq_read()
717 dmasound.mach.init() ; in sq_read()
740 dmasound.mach.record(); in sq_read()
758 uUsed = sound_copy_translate(dmasound.trans_read, dst, uLeft, in sq_read()
872 dmasound.mach.open(); in sq_open()
875 dmasound.mach.release(); in sq_open()
879 if (dmasound.mach.record) { in sq_open()
881 dmasound.mach.release(); in sq_open()
887 dmasound.mach.release() ; in sq_open()
895 dmasound.mach.release() ; in sq_open()
900 if (dmasound.mach.sq_open) in sq_open()
901 dmasound.mach.sq_open(file->f_mode); in sq_open()
907 dmasound.minDev = MINOR(inode->i_rdev) & 0x0f; in sq_open()
917 dmasound.soft = dmasound.mach.default_soft ; in sq_open()
918 dmasound.dsp = dmasound.mach.default_soft ; in sq_open()
919 dmasound.hard = dmasound.mach.default_hard ; in sq_open()
926 if (dmasound.minDev == SND_DEV_AUDIO) { in sq_open()
956 if (dmasound.mach.record && read_sq.active) { in sq_reset_input()
957 if (dmasound.mach.abort_read) { /* this routine must really be present */ in sq_reset_input()
964 dmasound.mach.abort_read() ; in sq_reset_input()
968 dmasound.mach.name) ; in sq_reset_input()
1050 dmasound.hard = dmasound.mach.default_hard ; in sq_release()
1053 dmasound.mach.release(); in sq_release()
1095 if (dmasound.mach.record) in queues_are_quiescent()
1161 fmt = dmasound.mach.hardware_afmts ; /* this is what OSS says.. */ in sq_ioctl()
1175 if (dmasound.mach.record && (file->f_mode & FMODE_READ)) { in sq_ioctl()
1203 if ((file->f_mode & FMODE_READ) && dmasound.mach.record) in sq_ioctl()
1215 return IOCTL_OUT(arg, dmasound.soft.speed); in sq_ioctl()
1256 return IOCTL_OUT(arg, dmasound.soft.stereo+1); in sq_ioctl()
1286 if ((file->f_mode & FMODE_READ) && dmasound.mach.record) { in sq_ioctl()
1319 val = dmasound.mach.capabilities & 0xffffff00; in sq_ioctl()
1349 if (dmasound.mach.record) in sq_init()
1367 dmasound.soft = dmasound.mach.default_soft ; in sq_init()
1368 dmasound.hard = dmasound.mach.default_hard ; in sq_init()
1369 dmasound.dsp = dmasound.mach.default_soft ; in sq_init()
1450 dmasound.mach.open(); in state_open()
1455 dmasound.mach.name, (DMASOUND_CORE_REVISION<<4) + in state_open()
1456 ((dmasound.mach.version>>8) & 0x0f)); in state_open()
1459 DMASOUND_CORE_REVISION, DMASOUND_CORE_EDITION, dmasound.mach.name2, in state_open()
1460 (dmasound.mach.version >> 8), (dmasound.mach.version & 0xff)) ; in state_open()
1466 if (dmasound.mach.state_info) in state_open()
1467 len += dmasound.mach.state_info(buffer+len, in state_open()
1480 get_afmt_string(dmasound.soft.format), in state_open()
1481 get_afmt_string(dmasound.hard.format)); in state_open()
1484 dmasound.soft.speed, dmasound.hard.speed); in state_open()
1487 dmasound.soft.stereo ? "stereo" : "mono", in state_open()
1488 dmasound.hard.stereo ? "stereo" : "mono" ); in state_open()
1497 if (dmasound.mach.record) in state_open()
1510 if (dmasound.mach.record) in state_open()
1532 dmasound.mach.release(); in state_release()
1599 if (!dmasound.mach.irqinit()) { in dmasound_init()
1608 dmasound.mach.name, (DMASOUND_CORE_REVISION<<4) + in dmasound_init()
1609 ((dmasound.mach.version>>8) & 0x0f)); in dmasound_init()
1612 DMASOUND_CORE_REVISION, DMASOUND_CORE_EDITION, dmasound.mach.name2, in dmasound_init()
1613 (dmasound.mach.version >> 8), (dmasound.mach.version & 0xff)) ; in dmasound_init()
1617 if (dmasound.mach.record) in dmasound_init()
1632 dmasound.mach.irqcleanup(); in dmasound_deinit()
1802 EXPORT_SYMBOL(dmasound);