Lines Matching refs:dmasound
159 char *table = dmasound.soft.format == AFMT_MU_LAW ? dmasound_ulaw2dma8 in ata_ct_law()
165 if (dmasound.soft.stereo) in ata_ct_law()
188 if (dmasound.soft.stereo) in ata_ct_s8()
204 if (!dmasound.soft.stereo) { in ata_ct_u8()
238 if (!dmasound.soft.stereo) { in ata_ct_s16be()
269 if (!dmasound.soft.stereo) { in ata_ct_u16be()
307 if (!dmasound.soft.stereo) { in ata_ct_s16le()
346 if (!dmasound.soft.stereo) { in ata_ct_u16le()
381 char *table = dmasound.soft.format == AFMT_MU_LAW ? dmasound_ulaw2dma8 in ata_ctx_law()
385 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_law()
390 if (!dmasound.soft.stereo) { in ata_ctx_law()
445 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_s8()
450 if (!dmasound.soft.stereo) { in ata_ctx_s8()
498 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_u8()
503 if (!dmasound.soft.stereo) { in ata_ctx_u8()
553 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_s16be()
558 if (!dmasound.soft.stereo) { in ata_ctx_s16be()
607 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_u16be()
612 if (!dmasound.soft.stereo) { in ata_ctx_u16be()
663 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_s16le()
668 if (!dmasound.soft.stereo) { in ata_ctx_s16le()
719 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_u16le()
724 if (!dmasound.soft.stereo) { in ata_ctx_u16le()
871 dmasound.bass = TONE_VOXWARE_TO_DB(bass); in AtaSetBass()
872 atari_microwire_cmd(MW_LM1992_BASS(dmasound.bass)); in AtaSetBass()
873 return TONE_DB_TO_VOXWARE(dmasound.bass); in AtaSetBass()
879 dmasound.treble = TONE_VOXWARE_TO_DB(treble); in AtaSetTreble()
880 atari_microwire_cmd(MW_LM1992_TREBLE(dmasound.treble)); in AtaSetTreble()
881 return TONE_DB_TO_VOXWARE(dmasound.treble); in AtaSetTreble()
910 if ((100 * abs(dmasound.soft.speed - freq[i]) / freq[i]) < catchRadius) in TTInit()
913 dmasound.soft.speed = freq[idx]; in TTInit()
914 dmasound.trans_write = &transTTNormal; in TTInit()
916 dmasound.trans_write = &transTTExpanding; in TTInit()
919 dmasound.hard = dmasound.soft; in TTInit()
921 if (dmasound.hard.speed > 50066) { in TTInit()
923 dmasound.hard.speed = 50066; in TTInit()
925 dmasound.trans_write = &transTTNormal; in TTInit()
926 } else if (dmasound.hard.speed > 25033) { in TTInit()
927 dmasound.hard.speed = 50066; in TTInit()
929 } else if (dmasound.hard.speed > 12517) { in TTInit()
930 dmasound.hard.speed = 25033; in TTInit()
932 } else if (dmasound.hard.speed > 6258) { in TTInit()
933 dmasound.hard.speed = 12517; in TTInit()
936 dmasound.hard.speed = 6258; in TTInit()
940 tt_dmasnd.mode = (dmasound.hard.stereo ? in TTInit()
944 expand_bal = -dmasound.soft.speed; in TTInit()
954 return dmasound.soft.format; in TTSetFormat()
964 dmasound.soft.format = format; in TTSetFormat()
965 dmasound.soft.size = 8; in TTSetFormat()
966 if (dmasound.minDev == SND_DEV_DSP) { in TTSetFormat()
967 dmasound.dsp.format = format; in TTSetFormat()
968 dmasound.dsp.size = 8; in TTSetFormat()
983 dmasound.volume_left = VOLUME_VOXWARE_TO_DB(volume & 0xff); in TTSetVolume()
984 atari_microwire_cmd(MW_LM1992_BALLEFT(dmasound.volume_left)); in TTSetVolume()
985 dmasound.volume_right = VOLUME_VOXWARE_TO_DB((volume & 0xff00) >> 8); in TTSetVolume()
986 atari_microwire_cmd(MW_LM1992_BALRIGHT(dmasound.volume_right)); in TTSetVolume()
987 return VOLUME_DB_TO_VOXWARE(dmasound.volume_left) | in TTSetVolume()
988 (VOLUME_DB_TO_VOXWARE(dmasound.volume_right) << 8); in TTSetVolume()
998 dmasound.gain = GAIN_VOXWARE_TO_DB(gain); in TTSetGain()
999 atari_microwire_cmd(MW_LM1992_VOLUME(dmasound.gain)); in TTSetGain()
1000 return GAIN_DB_TO_VOXWARE(dmasound.gain); in TTSetGain()
1037 if ((100 * abs(dmasound.soft.speed - freq[i]) / freq[i]) < catchRadius) in FalconInit()
1040 dmasound.soft.speed = freq[idx]; in FalconInit()
1041 dmasound.trans_write = &transFalconNormal; in FalconInit()
1043 dmasound.trans_write = &transFalconExpanding; in FalconInit()
1046 dmasound.hard = dmasound.soft; in FalconInit()
1048 if (dmasound.hard.size == 16) { in FalconInit()
1050 dmasound.hard.stereo = 1; in FalconInit()
1053 if (dmasound.hard.speed > 49170) { in FalconInit()
1055 dmasound.hard.speed = 49170; in FalconInit()
1057 dmasound.trans_write = &transFalconNormal; in FalconInit()
1058 } else if (dmasound.hard.speed > 32780) { in FalconInit()
1059 dmasound.hard.speed = 49170; in FalconInit()
1061 } else if (dmasound.hard.speed > 24585) { in FalconInit()
1062 dmasound.hard.speed = 32780; in FalconInit()
1064 } else if (dmasound.hard.speed > 19668) { in FalconInit()
1065 dmasound.hard.speed = 24585; in FalconInit()
1067 } else if (dmasound.hard.speed > 16390) { in FalconInit()
1068 dmasound.hard.speed = 19668; in FalconInit()
1070 } else if (dmasound.hard.speed > 12292) { in FalconInit()
1071 dmasound.hard.speed = 16390; in FalconInit()
1073 } else if (dmasound.hard.speed > 9834) { in FalconInit()
1074 dmasound.hard.speed = 12292; in FalconInit()
1076 } else if (dmasound.hard.speed > 8195) { in FalconInit()
1077 dmasound.hard.speed = 9834; in FalconInit()
1080 dmasound.hard.speed = 8195; in FalconInit()
1094 tt_dmasnd.mode = (dmasound.hard.stereo ? in FalconInit()
1096 ((dmasound.hard.size == 8) ? in FalconInit()
1100 expand_bal = -dmasound.soft.speed; in FalconInit()
1111 return dmasound.soft.format; in FalconSetFormat()
1129 dmasound.soft.format = format; in FalconSetFormat()
1130 dmasound.soft.size = size; in FalconSetFormat()
1131 if (dmasound.minDev == SND_DEV_DSP) { in FalconSetFormat()
1132 dmasound.dsp.format = format; in FalconSetFormat()
1133 dmasound.dsp.size = dmasound.soft.size; in FalconSetFormat()
1152 dmasound.volume_left = VOLUME_VOXWARE_TO_ATT(volume & 0xff); in FalconSetVolume()
1153 dmasound.volume_right = VOLUME_VOXWARE_TO_ATT((volume & 0xff00) >> 8); in FalconSetVolume()
1154 tt_dmasnd.output_atten = dmasound.volume_left << 8 | dmasound.volume_right << 4; in FalconSetVolume()
1155 return VOLUME_ATT_TO_VOXWARE(dmasound.volume_left) | in FalconSetVolume()
1156 VOLUME_ATT_TO_VOXWARE(dmasound.volume_right) << 8; in FalconSetVolume()
1335 dmasound.volume_left = 0; in TTMixerInit()
1337 dmasound.volume_right = 0; in TTMixerInit()
1345 dmasound.volume_left = (tt_dmasnd.output_atten & 0xf00) >> 8; in FalconMixerInit()
1346 dmasound.volume_right = (tt_dmasnd.output_atten & 0xf0) >> 4; in FalconMixerInit()
1397 VOLUME_DB_TO_VOXWARE(dmasound.volume_left) | in TTMixerIoctl()
1398 (VOLUME_DB_TO_VOXWARE(dmasound.volume_right) << 8)); in TTMixerIoctl()
1400 return IOCTL_OUT(arg, TONE_DB_TO_VOXWARE(dmasound.bass)); in TTMixerIoctl()
1402 return IOCTL_OUT(arg, TONE_DB_TO_VOXWARE(dmasound.treble)); in TTMixerIoctl()
1404 return IOCTL_OUT(arg, GAIN_DB_TO_VOXWARE(dmasound.gain)); in TTMixerIoctl()
1430 VOLUME_ATT_TO_VOXWARE(dmasound.volume_left) | in FalconMixerIoctl()
1431 VOLUME_ATT_TO_VOXWARE(dmasound.volume_right) << 8); in FalconMixerIoctl()
1464 dmasound.volume_left); in TTStateInfo()
1466 dmasound.volume_right); in TTStateInfo()
1468 dmasound.bass); in TTStateInfo()
1470 dmasound.treble); in TTStateInfo()
1482 dmasound.volume_left); in FalconStateInfo()
1484 dmasound.volume_right); in FalconStateInfo()
1581 dmasound.mach = machFalcon; in dmasound_atari_init()
1582 dmasound.mach.default_soft = def_soft ; in dmasound_atari_init()
1583 dmasound.mach.default_hard = def_hard_falcon ; in dmasound_atari_init()
1586 dmasound.mach = machTT; in dmasound_atari_init()
1587 dmasound.mach.default_soft = def_soft ; in dmasound_atari_init()
1588 dmasound.mach.default_hard = def_hard_tt ; in dmasound_atari_init()