Home
last modified time | relevance | path

Searched refs:write_sq (Results 1 – 6 of 6) sorted by relevance

/linux-2.4.37.9/drivers/sound/dmasound/
Ddmasound_core.c523 if (sq == &write_sq) { in sq_setup()
575 if (write_sq.locked == 0) { in sq_write()
576 if ((uWritten = sq_setup(&write_sq)) < 0) return uWritten ; in sq_write()
601 write_sq.syncing &= ~2 ; /* take out POST status */ in sq_write()
604 if (write_sq.count > 0 && in sq_write()
605 (bLeft = write_sq.block_size-write_sq.rear_size) > 0) { in sq_write()
606 dest = write_sq.buffers[write_sq.rear]; in sq_write()
607 bUsed = write_sq.rear_size; in sq_write()
615 write_sq.rear_size = bUsed; in sq_write()
619 while (write_sq.count >= write_sq.max_active) { in sq_write()
[all …]
Ddmasound_paula.c483 start = write_sq.buffers[write_sq.front]; in AmiPlayNextFrame()
484 size = (write_sq.count == index ? write_sq.rear_size in AmiPlayNextFrame()
485 : write_sq.block_size)>>1; in AmiPlayNextFrame()
528 write_sq.front = (write_sq.front+1) % write_sq.max_count; in AmiPlayNextFrame()
529 write_sq.active |= AMI_PLAY_LOADED; in AmiPlayNextFrame()
539 if (write_sq.active & AMI_PLAY_LOADED) { in AmiPlay()
545 if (write_sq.active & AMI_PLAY_PLAYING) in AmiPlay()
549 if (write_sq.count < minframes) { in AmiPlay()
555 if (write_sq.count <= minframes && in AmiPlay()
556 write_sq.rear_size < write_sq.block_size && !write_sq.syncing) { in AmiPlay()
[all …]
Ddmasound_q40.c421 start = write_sq.buffers[write_sq.front]; in Q40PlayNextFrame()
422 size = (write_sq.count == index ? write_sq.rear_size : write_sq.block_size); in Q40PlayNextFrame()
427 write_sq.front = (write_sq.front+1) % write_sq.max_count; in Q40PlayNextFrame()
428 write_sq.active++; in Q40PlayNextFrame()
450 if (write_sq.active || write_sq.count<=0 ) { in Q40Play()
456 if (write_sq.count <= 1 && write_sq.rear_size < write_sq.block_size && !write_sq.syncing) { in Q40Play()
487 if (!write_sq.active) { in Q40Interrupt()
491 WAKE_UP(write_sq.sync_queue); in Q40Interrupt()
494 } else write_sq.active=0; in Q40Interrupt()
495 write_sq.count--; in Q40Interrupt()
[all …]
Ddmasound_atari.c1167 start = write_sq.buffers[write_sq.front]; in AtaPlayNextFrame()
1168 end = start+((write_sq.count == index) ? write_sq.rear_size in AtaPlayNextFrame()
1169 : write_sq.block_size); in AtaPlayNextFrame()
1175 write_sq.front = (write_sq.front+1) % write_sq.max_count; in AtaPlayNextFrame()
1176 write_sq.active++; in AtaPlayNextFrame()
1198 if (write_sq.active == 2 || /* DMA is 'full' */ in AtaPlay()
1199 write_sq.count <= 0) { /* nothing to do */ in AtaPlay()
1204 if (write_sq.active == 0) { in AtaPlay()
1208 if (write_sq.count == 1 && in AtaPlay()
1209 write_sq.rear_size < write_sq.block_size && in AtaPlay()
[all …]
Ddmasound_awacs.c811 next_frg = (write_sq.front + write_sq.active) % write_sq.max_count; in __PMacPlay()
838 while (write_sq.active < 2 && write_sq.active < write_sq.count) { in __PMacPlay()
839 count = (write_sq.count == write_sq.active + 1) ? in __PMacPlay()
840 write_sq.rear_size:write_sq.block_size ; in __PMacPlay()
841 if (count < write_sq.block_size) { in __PMacPlay()
842 if (!write_sq.syncing) /* last block not yet filled,*/ in __PMacPlay()
847 write_sq.rear_size = write_sq.block_size ; in __PMacPlay()
848 write_sq.syncing &= ~2 ; /* clear POST */ in __PMacPlay()
861 if (write_sq.count < write_sq.max_count) { in __PMacPlay()
862 if (++next_frg >= write_sq.max_count) in __PMacPlay()
[all …]
Ddmasound.h255 #define write_sq dmasound_write_sq macro