Lines Matching +full:pre +full:- +full:programmed

1 // SPDX-License-Identifier: GPL-2.0-only
11 * - added versioning
12 * - put in and populated the hardware_afmts field.
13 * [0.2] - put in SNDCTL_DSP_GETCAPS value.
14 * 01/02/2001 [0.3] - put in default hard/soft settings.
171 return -EFAULT; in ata_ct_law()
173 count--; in ata_ct_law()
192 return -EFAULT; in ata_ct_s8()
211 return -EFAULT; in ata_ct_u8()
213 count--; in ata_ct_u8()
222 return -EFAULT; in ata_ct_u8()
225 count--; in ata_ct_u8()
246 return -EFAULT; in ata_ct_s16be()
250 count--; in ata_ct_s16be()
258 return -EFAULT; in ata_ct_s16be()
278 return -EFAULT; in ata_ct_u16be()
283 count--; in ata_ct_u16be()
293 return -EFAULT; in ata_ct_u16be()
296 count--; in ata_ct_u16be()
318 return -EFAULT; in ata_ct_s16le()
323 count--; in ata_ct_s16le()
333 return -EFAULT; in ata_ct_s16le()
337 count--; in ata_ct_s16le()
359 return -EFAULT; in ata_ct_u16le()
373 return -EFAULT; in ata_ct_u16le()
377 count--; in ata_ct_u16le()
407 return -EFAULT; in ata_ctx_law()
409 userCount--; in ata_ctx_law()
413 frameLeft--; in ata_ctx_law()
414 bal -= sSpeed; in ata_ctx_law()
426 return -EFAULT; in ata_ctx_law()
429 return -EFAULT; in ata_ctx_law()
431 userCount -= 2; in ata_ctx_law()
435 frameLeft -= 2; in ata_ctx_law()
436 bal -= sSpeed; in ata_ctx_law()
441 used -= userCount; in ata_ctx_law()
442 *frameUsed += usedf-frameLeft; in ata_ctx_law()
466 return -EFAULT; in ata_ctx_s8()
467 userCount--; in ata_ctx_s8()
471 frameLeft--; in ata_ctx_s8()
472 bal -= sSpeed; in ata_ctx_s8()
483 return -EFAULT; in ata_ctx_s8()
485 userCount -= 2; in ata_ctx_s8()
489 frameLeft -= 2; in ata_ctx_s8()
490 bal -= sSpeed; in ata_ctx_s8()
495 used -= userCount; in ata_ctx_s8()
496 *frameUsed += usedf-frameLeft; in ata_ctx_s8()
520 return -EFAULT; in ata_ctx_u8()
522 userCount--; in ata_ctx_u8()
526 frameLeft--; in ata_ctx_u8()
527 bal -= sSpeed; in ata_ctx_u8()
538 return -EFAULT; in ata_ctx_u8()
541 userCount -= 2; in ata_ctx_u8()
545 frameLeft -= 2; in ata_ctx_u8()
546 bal -= sSpeed; in ata_ctx_u8()
551 used -= userCount; in ata_ctx_u8()
552 *frameUsed += usedf-frameLeft; in ata_ctx_u8()
576 return -EFAULT; in ata_ctx_s16be()
578 userCount -= 2; in ata_ctx_s16be()
583 frameLeft -= 4; in ata_ctx_s16be()
584 bal -= sSpeed; in ata_ctx_s16be()
595 return -EFAULT; in ata_ctx_s16be()
597 userCount -= 4; in ata_ctx_s16be()
601 frameLeft -= 4; in ata_ctx_s16be()
602 bal -= sSpeed; in ata_ctx_s16be()
607 used -= userCount; in ata_ctx_s16be()
608 *frameUsed += usedf-frameLeft; in ata_ctx_s16be()
632 return -EFAULT; in ata_ctx_u16be()
635 userCount -= 2; in ata_ctx_u16be()
640 frameLeft -= 4; in ata_ctx_u16be()
641 bal -= sSpeed; in ata_ctx_u16be()
652 return -EFAULT; in ata_ctx_u16be()
655 userCount -= 4; in ata_ctx_u16be()
659 frameLeft -= 4; in ata_ctx_u16be()
660 bal -= sSpeed; in ata_ctx_u16be()
665 used -= userCount; in ata_ctx_u16be()
666 *frameUsed += usedf-frameLeft; in ata_ctx_u16be()
690 return -EFAULT; in ata_ctx_s16le()
693 userCount -= 2; in ata_ctx_s16le()
698 frameLeft -= 4; in ata_ctx_s16le()
699 bal -= sSpeed; in ata_ctx_s16le()
710 return -EFAULT; in ata_ctx_s16le()
713 userCount -= 4; in ata_ctx_s16le()
717 frameLeft -= 4; in ata_ctx_s16le()
718 bal -= sSpeed; in ata_ctx_s16le()
723 used -= userCount; in ata_ctx_s16le()
724 *frameUsed += usedf-frameLeft; in ata_ctx_s16le()
748 return -EFAULT; in ata_ctx_u16le()
751 userCount -= 2; in ata_ctx_u16le()
756 frameLeft -= 4; in ata_ctx_u16le()
757 bal -= sSpeed; in ata_ctx_u16le()
768 return -EFAULT; in ata_ctx_u16le()
771 userCount -= 4; in ata_ctx_u16le()
775 frameLeft -= 4; in ata_ctx_u16le()
776 bal -= sSpeed; in ata_ctx_u16le()
781 used -= userCount; in ata_ctx_u16le()
782 *frameUsed += usedf-frameLeft; in ata_ctx_u16le()
847 and will cause an interrupt after a programmed number in AtaIrqInit()
874 (((v) < 0) ? -12 : ((v) > 100) ? 12 : ((v) - 50) * 6 / 25)
875 #define TONE_DB_TO_VOXWARE(v) (((v) * 25 + ((v) > 0 ? 5 : -5)) / 6 + 50)
914 idx = -1; in TTInit()
919 if ((100 * abs(dmasound.soft.speed - freq[i]) / freq[i]) < catchRadius) in TTInit()
921 if (idx > -1) { in TTInit()
953 expand_bal = -dmasound.soft.speed; in TTInit()
986 (((v) < 0) ? -40 : ((v) > 100) ? 0 : ((v) * 2) / 5 - 40)
1002 (((v) < 0) ? -80 : ((v) > 100) ? 0 : ((v) * 4) / 5 - 80)
1040 idx = -1; in FalconInit()
1042 /* if we will tolerate 3% error 8000Hz->8195Hz (2.38%) would in FalconInit()
1046 if ((100 * abs(dmasound.soft.speed - freq[i]) / freq[i]) < catchRadius) in FalconInit()
1048 if (idx > -1) { in FalconInit()
1097 tt_dmasnd.cbar_src = 0x0001; /* DMA(25MHz) --> DAC */ in FalconInit()
1109 expand_bal = -dmasound.soft.speed; in FalconInit()
1133 default: /* :-) */ in FalconSetFormat()
1152 * i.e. output level from 0 to -22.5dB in -1.5dB steps.
1155 ((v) < 0 ? 15 : (v) > 100 ? 0 : 15 - (v) * 3 / 20)
1156 #define VOLUME_ATT_TO_VOXWARE(v) (100 - (v) * 20 / 3)
1180 DMASNDSetEnd(virt_to_phys(end - 1) + 1); in AtaPlayNextFrame()
1193 * holds the number of frames the DMA is currently programmed for in AtaPlay()
1194 * instead, may be 0, 1 (currently being played) or 2 (pre-programmed). in AtaPlay()
1200 * version of the driver as we benefit from having pre-programmed the in AtaPlay()
1203 * pre-programmed frame is playing! in AtaPlay()
1293 * pre-programmed one is also finished because there has been a long in AtaInterrupt()
1299 write_sq.count--; in AtaInterrupt()
1300 write_sq.active--; in AtaInterrupt()
1316 * means the only remaining frame was already programmed in AtaInterrupt()
1392 return -EINVAL; in AtaMixerIoctl()
1476 len += sprintf(buffer+len, "\tvol left %ddB [-40... 0]\n", in TTStateInfo()
1478 len += sprintf(buffer+len, "\tvol right %ddB [-40... 0]\n", in TTStateInfo()
1480 len += sprintf(buffer+len, "\tbass %ddB [-12...+12]\n", in TTStateInfo()
1482 len += sprintf(buffer+len, "\ttreble %ddB [-12...+12]\n", in TTStateInfo()
1494 len += sprintf(buffer+len, "\tvol left %ddB [-22.5 ... 0]\n", in FalconStateInfo()
1496 len += sprintf(buffer+len, "\tvol right %ddB [-22.5 ... 0]\n", in FalconStateInfo()
1554 .hardware_afmts = AFMT_S8, /* h'ware-supported formats *only* here */
1581 .hardware_afmts = (AFMT_S8 | AFMT_S16_BE), /* h'ware-supported formats *only* here */
1603 return -ENODEV; in dmasound_atari_init()
1608 return -EBUSY; in dmasound_atari_init()
1611 return -ENODEV; in dmasound_atari_init()