Lines Matching refs:dmasound
222 struct sound_settings dmasound = { variable
223 .lock = __SPIN_LOCK_UNLOCKED(dmasound.lock)
228 dmasound.mach.silence(); /* _MUST_ stop DMA */ in sound_silence()
233 return dmasound.mach.setFormat(format); in sound_set_format()
240 return dmasound.soft.speed; in sound_set_speed()
247 if (dmasound.mach.max_dsp_speed && in sound_set_speed()
248 (speed > dmasound.mach.max_dsp_speed)) in sound_set_speed()
249 speed = dmasound.mach.max_dsp_speed ; in sound_set_speed()
251 dmasound.soft.speed = speed; in sound_set_speed()
253 if (dmasound.minDev == SND_DEV_DSP) in sound_set_speed()
254 dmasound.dsp.speed = dmasound.soft.speed; in sound_set_speed()
256 return dmasound.soft.speed; in sound_set_speed()
262 return dmasound.soft.stereo; in sound_set_stereo()
266 dmasound.soft.stereo = stereo; in sound_set_stereo()
267 if (dmasound.minDev == SND_DEV_DSP) in sound_set_stereo()
268 dmasound.dsp.stereo = stereo; in sound_set_stereo()
279 switch (dmasound.soft.format) { in sound_copy_translate()
327 if (!try_module_get(dmasound.mach.owner)) { in mixer_open()
340 module_put(dmasound.mach.owner); in mixer_release()
356 strscpy(info.id, dmasound.mach.name2, sizeof(info.id)); in mixer_ioctl()
357 strscpy(info.name, dmasound.mach.name2, sizeof(info.name)); in mixer_ioctl()
364 if (dmasound.mach.mixer_ioctl) in mixer_ioctl()
365 return dmasound.mach.mixer_ioctl(cmd, arg); in mixer_ioctl()
397 dmasound.treble = 0; in mixer_init()
398 dmasound.bass = 0; in mixer_init()
399 if (dmasound.mach.mixer_init) in mixer_init()
400 dmasound.mach.mixer_init(); in mixer_init()
423 sq->buffers[i] = dmasound.mach.dma_alloc(size, GFP_KERNEL); in sq_allocate_buffers()
426 dmasound.mach.dma_free(sq->buffers[i], size); in sq_allocate_buffers()
441 dmasound.mach.dma_free(sq->buffers[i], sq->bufSize); in sq_release_buffers()
465 dmasound.mach.init(); in sq_setup()
487 (dmasound.soft.size * (dmasound.soft.stereo+1) ) ; in sq_setup()
489 (dmasound.hard.size * (dmasound.hard.stereo+1) ) ; in sq_setup()
494 (dmasound.hard.size * (dmasound.hard.stereo+1) ) ; in sq_setup()
496 (dmasound.soft.size * (dmasound.soft.stereo+1) ) ; in sq_setup()
498 sq->block_size *= dmasound.hard.speed ; in sq_setup()
499 sq->block_size /= dmasound.soft.speed ; in sq_setup()
502 (dmasound.hard.size * (dmasound.hard.stereo+1))/8 ; in sq_setup()
531 setup_func = dmasound.mach.write_sq_setup; in sq_setup()
540 dmasound.mach.play(); in sq_play()
564 dmasound.mach.init() ; in sq_write()
600 spin_lock_irqsave(&dmasound.lock, flags); in sq_write()
602 spin_unlock_irqrestore(&dmasound.lock, flags); in sq_write()
608 uUsed = sound_copy_translate(dmasound.trans_write, src, uLeft, in sq_write()
650 uUsed = sound_copy_translate(dmasound.trans_write, src, uLeft, in sq_write()
763 if (!try_module_get(dmasound.mach.owner)) { in sq_open()
777 if (dmasound.mach.sq_open) in sq_open()
778 dmasound.mach.sq_open(file->f_mode); in sq_open()
784 dmasound.minDev = iminor(inode) & 0x0f; in sq_open()
794 dmasound.soft = dmasound.mach.default_soft ; in sq_open()
795 dmasound.dsp = dmasound.mach.default_soft ; in sq_open()
796 dmasound.hard = dmasound.mach.default_hard ; in sq_open()
803 if (dmasound.minDev == SND_DEV_AUDIO) { in sq_open()
812 module_put(dmasound.mach.owner); in sq_open()
894 dmasound.hard = dmasound.mach.default_hard ; in sq_release()
897 module_put(dmasound.mach.owner); in sq_release()
998 fmt = dmasound.mach.hardware_afmts ; /* this is what OSS says.. */ in sq_ioctl()
1040 return IOCTL_OUT(arg, dmasound.soft.speed); in sq_ioctl()
1134 val = dmasound.mach.capabilities & 0xffffff00; in sq_ioctl()
1184 dmasound.soft = dmasound.mach.default_soft ; in sq_init()
1185 dmasound.hard = dmasound.mach.default_hard ; in sq_init()
1186 dmasound.dsp = dmasound.mach.default_soft ; in sq_init()
1258 if (!try_module_get(dmasound.mach.owner)) in state_open()
1265 dmasound.mach.name, (DMASOUND_CORE_REVISION<<4) + in state_open()
1266 ((dmasound.mach.version>>8) & 0x0f)); in state_open()
1269 DMASOUND_CORE_REVISION, DMASOUND_CORE_EDITION, dmasound.mach.name2, in state_open()
1270 (dmasound.mach.version >> 8), (dmasound.mach.version & 0xff)) ; in state_open()
1276 if (dmasound.mach.state_info) in state_open()
1277 len += dmasound.mach.state_info(buffer+len, in state_open()
1290 get_afmt_string(dmasound.soft.format), in state_open()
1291 get_afmt_string(dmasound.hard.format)); in state_open()
1294 dmasound.soft.speed, dmasound.hard.speed); in state_open()
1297 dmasound.soft.stereo ? "stereo" : "mono", in state_open()
1298 dmasound.hard.stereo ? "stereo" : "mono" ); in state_open()
1332 module_put(dmasound.mach.owner); in state_release()
1395 if (!dmasound.mach.irqinit()) { in dmasound_init()
1402 dmasound.mach.name, (DMASOUND_CORE_REVISION<<4) + in dmasound_init()
1403 ((dmasound.mach.version>>8) & 0x0f)); in dmasound_init()
1406 DMASOUND_CORE_REVISION, DMASOUND_CORE_EDITION, dmasound.mach.name2, in dmasound_init()
1407 (dmasound.mach.version >> 8), (dmasound.mach.version & 0xff)) ; in dmasound_init()
1417 dmasound.mach.irqcleanup(); in dmasound_deinit()
1558 EXPORT_SYMBOL(dmasound);