Lines Matching refs:dmasound
223 struct sound_settings dmasound = { variable
224 .lock = __SPIN_LOCK_UNLOCKED(dmasound.lock)
229 dmasound.mach.silence(); /* _MUST_ stop DMA */ in sound_silence()
234 return dmasound.mach.setFormat(format); in sound_set_format()
241 return dmasound.soft.speed; in sound_set_speed()
248 if (dmasound.mach.max_dsp_speed && in sound_set_speed()
249 (speed > dmasound.mach.max_dsp_speed)) in sound_set_speed()
250 speed = dmasound.mach.max_dsp_speed ; in sound_set_speed()
252 dmasound.soft.speed = speed; in sound_set_speed()
254 if (dmasound.minDev == SND_DEV_DSP) in sound_set_speed()
255 dmasound.dsp.speed = dmasound.soft.speed; in sound_set_speed()
257 return dmasound.soft.speed; in sound_set_speed()
263 return dmasound.soft.stereo; in sound_set_stereo()
267 dmasound.soft.stereo = stereo; in sound_set_stereo()
268 if (dmasound.minDev == SND_DEV_DSP) in sound_set_stereo()
269 dmasound.dsp.stereo = stereo; in sound_set_stereo()
280 switch (dmasound.soft.format) { in sound_copy_translate()
328 if (!try_module_get(dmasound.mach.owner)) { in mixer_open()
341 module_put(dmasound.mach.owner); in mixer_release()
357 strscpy(info.id, dmasound.mach.name2, sizeof(info.id)); in mixer_ioctl()
358 strscpy(info.name, dmasound.mach.name2, sizeof(info.name)); in mixer_ioctl()
365 if (dmasound.mach.mixer_ioctl) in mixer_ioctl()
366 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()
1183 dmasound.soft = dmasound.mach.default_soft ; in sq_init()
1184 dmasound.hard = dmasound.mach.default_hard ; in sq_init()
1185 dmasound.dsp = dmasound.mach.default_soft ; in sq_init()
1257 if (!try_module_get(dmasound.mach.owner)) in state_open()
1264 dmasound.mach.name, (DMASOUND_CORE_REVISION<<4) + in state_open()
1265 ((dmasound.mach.version>>8) & 0x0f)); in state_open()
1268 DMASOUND_CORE_REVISION, DMASOUND_CORE_EDITION, dmasound.mach.name2, in state_open()
1269 (dmasound.mach.version >> 8), (dmasound.mach.version & 0xff)) ; in state_open()
1275 if (dmasound.mach.state_info) in state_open()
1276 len += dmasound.mach.state_info(buffer+len, in state_open()
1289 get_afmt_string(dmasound.soft.format), in state_open()
1290 get_afmt_string(dmasound.hard.format)); in state_open()
1293 dmasound.soft.speed, dmasound.hard.speed); in state_open()
1296 dmasound.soft.stereo ? "stereo" : "mono", in state_open()
1297 dmasound.hard.stereo ? "stereo" : "mono" ); in state_open()
1331 module_put(dmasound.mach.owner); in state_release()
1393 if (!dmasound.mach.irqinit()) { in dmasound_init()
1400 dmasound.mach.name, (DMASOUND_CORE_REVISION<<4) + in dmasound_init()
1401 ((dmasound.mach.version>>8) & 0x0f)); in dmasound_init()
1404 DMASOUND_CORE_REVISION, DMASOUND_CORE_EDITION, dmasound.mach.name2, in dmasound_init()
1405 (dmasound.mach.version >> 8), (dmasound.mach.version & 0xff)) ; in dmasound_init()
1415 dmasound.mach.irqcleanup(); in dmasound_deinit()
1556 EXPORT_SYMBOL(dmasound);