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()
239 if (!dmasound.soft.stereo) { in ata_ct_s16be()
271 if (!dmasound.soft.stereo) { in ata_ct_u16be()
311 if (!dmasound.soft.stereo) { in ata_ct_s16le()
352 if (!dmasound.soft.stereo) { in ata_ct_u16le()
389 char *table = dmasound.soft.format == AFMT_MU_LAW ? dmasound_ulaw2dma8 in ata_ctx_law()
393 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_law()
398 if (!dmasound.soft.stereo) { in ata_ctx_law()
453 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_s8()
458 if (!dmasound.soft.stereo) { in ata_ctx_s8()
507 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_u8()
512 if (!dmasound.soft.stereo) { in ata_ctx_u8()
563 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_s16be()
568 if (!dmasound.soft.stereo) { in ata_ctx_s16be()
619 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_u16be()
624 if (!dmasound.soft.stereo) { in ata_ctx_u16be()
677 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_s16le()
682 if (!dmasound.soft.stereo) { in ata_ctx_s16le()
735 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_u16le()
740 if (!dmasound.soft.stereo) { in ata_ctx_u16le()
880 dmasound.bass = TONE_VOXWARE_TO_DB(bass); in AtaSetBass()
881 atari_microwire_cmd(MW_LM1992_BASS(dmasound.bass)); in AtaSetBass()
882 return TONE_DB_TO_VOXWARE(dmasound.bass); in AtaSetBass()
888 dmasound.treble = TONE_VOXWARE_TO_DB(treble); in AtaSetTreble()
889 atari_microwire_cmd(MW_LM1992_TREBLE(dmasound.treble)); in AtaSetTreble()
890 return TONE_DB_TO_VOXWARE(dmasound.treble); in AtaSetTreble()
919 if ((100 * abs(dmasound.soft.speed - freq[i]) / freq[i]) < catchRadius) in TTInit()
922 dmasound.soft.speed = freq[idx]; in TTInit()
923 dmasound.trans_write = &transTTNormal; in TTInit()
925 dmasound.trans_write = &transTTExpanding; in TTInit()
928 dmasound.hard = dmasound.soft; in TTInit()
930 if (dmasound.hard.speed > 50066) { in TTInit()
932 dmasound.hard.speed = 50066; in TTInit()
934 dmasound.trans_write = &transTTNormal; in TTInit()
935 } else if (dmasound.hard.speed > 25033) { in TTInit()
936 dmasound.hard.speed = 50066; in TTInit()
938 } else if (dmasound.hard.speed > 12517) { in TTInit()
939 dmasound.hard.speed = 25033; in TTInit()
941 } else if (dmasound.hard.speed > 6258) { in TTInit()
942 dmasound.hard.speed = 12517; in TTInit()
945 dmasound.hard.speed = 6258; in TTInit()
949 tt_dmasnd.mode = (dmasound.hard.stereo ? in TTInit()
953 expand_bal = -dmasound.soft.speed; in TTInit()
963 return dmasound.soft.format; in TTSetFormat()
973 dmasound.soft.format = format; in TTSetFormat()
974 dmasound.soft.size = 8; in TTSetFormat()
975 if (dmasound.minDev == SND_DEV_DSP) { in TTSetFormat()
976 dmasound.dsp.format = format; in TTSetFormat()
977 dmasound.dsp.size = 8; in TTSetFormat()
992 dmasound.volume_left = VOLUME_VOXWARE_TO_DB(volume & 0xff); in TTSetVolume()
993 atari_microwire_cmd(MW_LM1992_BALLEFT(dmasound.volume_left)); in TTSetVolume()
994 dmasound.volume_right = VOLUME_VOXWARE_TO_DB((volume & 0xff00) >> 8); in TTSetVolume()
995 atari_microwire_cmd(MW_LM1992_BALRIGHT(dmasound.volume_right)); in TTSetVolume()
996 return VOLUME_DB_TO_VOXWARE(dmasound.volume_left) | in TTSetVolume()
997 (VOLUME_DB_TO_VOXWARE(dmasound.volume_right) << 8); in TTSetVolume()
1007 dmasound.gain = GAIN_VOXWARE_TO_DB(gain); in TTSetGain()
1008 atari_microwire_cmd(MW_LM1992_VOLUME(dmasound.gain)); in TTSetGain()
1009 return GAIN_DB_TO_VOXWARE(dmasound.gain); in TTSetGain()
1046 if ((100 * abs(dmasound.soft.speed - freq[i]) / freq[i]) < catchRadius) in FalconInit()
1049 dmasound.soft.speed = freq[idx]; in FalconInit()
1050 dmasound.trans_write = &transFalconNormal; in FalconInit()
1052 dmasound.trans_write = &transFalconExpanding; in FalconInit()
1055 dmasound.hard = dmasound.soft; in FalconInit()
1057 if (dmasound.hard.size == 16) { in FalconInit()
1059 dmasound.hard.stereo = 1; in FalconInit()
1062 if (dmasound.hard.speed > 49170) { in FalconInit()
1064 dmasound.hard.speed = 49170; in FalconInit()
1066 dmasound.trans_write = &transFalconNormal; in FalconInit()
1067 } else if (dmasound.hard.speed > 32780) { in FalconInit()
1068 dmasound.hard.speed = 49170; in FalconInit()
1070 } else if (dmasound.hard.speed > 24585) { in FalconInit()
1071 dmasound.hard.speed = 32780; in FalconInit()
1073 } else if (dmasound.hard.speed > 19668) { in FalconInit()
1074 dmasound.hard.speed = 24585; in FalconInit()
1076 } else if (dmasound.hard.speed > 16390) { in FalconInit()
1077 dmasound.hard.speed = 19668; in FalconInit()
1079 } else if (dmasound.hard.speed > 12292) { in FalconInit()
1080 dmasound.hard.speed = 16390; in FalconInit()
1082 } else if (dmasound.hard.speed > 9834) { in FalconInit()
1083 dmasound.hard.speed = 12292; in FalconInit()
1085 } else if (dmasound.hard.speed > 8195) { in FalconInit()
1086 dmasound.hard.speed = 9834; in FalconInit()
1089 dmasound.hard.speed = 8195; in FalconInit()
1103 tt_dmasnd.mode = (dmasound.hard.stereo ? in FalconInit()
1105 ((dmasound.hard.size == 8) ? in FalconInit()
1109 expand_bal = -dmasound.soft.speed; in FalconInit()
1120 return dmasound.soft.format; in FalconSetFormat()
1138 dmasound.soft.format = format; in FalconSetFormat()
1139 dmasound.soft.size = size; in FalconSetFormat()
1140 if (dmasound.minDev == SND_DEV_DSP) { in FalconSetFormat()
1141 dmasound.dsp.format = format; in FalconSetFormat()
1142 dmasound.dsp.size = dmasound.soft.size; in FalconSetFormat()
1161 dmasound.volume_left = VOLUME_VOXWARE_TO_ATT(volume & 0xff); in FalconSetVolume()
1162 dmasound.volume_right = VOLUME_VOXWARE_TO_ATT((volume & 0xff00) >> 8); in FalconSetVolume()
1163 tt_dmasnd.output_atten = dmasound.volume_left << 8 | dmasound.volume_right << 4; in FalconSetVolume()
1164 return VOLUME_ATT_TO_VOXWARE(dmasound.volume_left) | in FalconSetVolume()
1165 VOLUME_ATT_TO_VOXWARE(dmasound.volume_right) << 8; in FalconSetVolume()
1274 spin_lock(&dmasound.lock); in AtaInterrupt()
1327 spin_unlock(&dmasound.lock); in AtaInterrupt()
1347 dmasound.volume_left = 0; in TTMixerInit()
1349 dmasound.volume_right = 0; in TTMixerInit()
1357 dmasound.volume_left = (tt_dmasnd.output_atten & 0xf00) >> 8; in FalconMixerInit()
1358 dmasound.volume_right = (tt_dmasnd.output_atten & 0xf0) >> 4; in FalconMixerInit()
1369 spin_lock_irqsave(&dmasound.lock, flags); in AtaMixerIoctl()
1372 spin_unlock_irqrestore(&dmasound.lock, flags); in AtaMixerIoctl()
1383 spin_lock_irqsave(&dmasound.lock, flags); in AtaMixerIoctl()
1388 spin_unlock_irqrestore(&dmasound.lock, flags); in AtaMixerIoctl()
1410 VOLUME_DB_TO_VOXWARE(dmasound.volume_left) | in TTMixerIoctl()
1411 (VOLUME_DB_TO_VOXWARE(dmasound.volume_right) << 8)); in TTMixerIoctl()
1413 return IOCTL_OUT(arg, TONE_DB_TO_VOXWARE(dmasound.bass)); in TTMixerIoctl()
1415 return IOCTL_OUT(arg, TONE_DB_TO_VOXWARE(dmasound.treble)); in TTMixerIoctl()
1417 return IOCTL_OUT(arg, GAIN_DB_TO_VOXWARE(dmasound.gain)); in TTMixerIoctl()
1443 VOLUME_ATT_TO_VOXWARE(dmasound.volume_left) | in FalconMixerIoctl()
1444 VOLUME_ATT_TO_VOXWARE(dmasound.volume_right) << 8); in FalconMixerIoctl()
1477 dmasound.volume_left); in TTStateInfo()
1479 dmasound.volume_right); in TTStateInfo()
1481 dmasound.bass); in TTStateInfo()
1483 dmasound.treble); in TTStateInfo()
1495 dmasound.volume_left); in FalconStateInfo()
1497 dmasound.volume_right); in FalconStateInfo()
1593 dmasound.mach = machFalcon; in dmasound_atari_init()
1594 dmasound.mach.default_soft = def_soft ; in dmasound_atari_init()
1595 dmasound.mach.default_hard = def_hard_falcon ; in dmasound_atari_init()
1598 dmasound.mach = machTT; in dmasound_atari_init()
1599 dmasound.mach.default_soft = def_soft ; in dmasound_atari_init()
1600 dmasound.mach.default_hard = def_hard_tt ; in dmasound_atari_init()