taglinefilesource code
sound494drivers/sound/dmasound.cstatic struct sound_settings sound;
sound693drivers/sound/dmasound.cchar *table = sound.soft.format == AFMT_MU_LAW ? ulaw2dma8 : alaw2dma8;
sound698drivers/sound/dmasound.cif (sound.soft.stereo)
sound717drivers/sound/dmasound.cif (sound.soft.stereo)
sound731drivers/sound/dmasound.cif (!sound.soft.stereo) {
sound759drivers/sound/dmasound.cif (!sound.soft.stereo) {
sound787drivers/sound/dmasound.cif (!sound.soft.stereo) {
sound819drivers/sound/dmasound.cif (!sound.soft.stereo) {
sound854drivers/sound/dmasound.cif (!sound.soft.stereo) {
sound884drivers/sound/dmasound.cchar *table = sound.soft.format == AFMT_MU_LAW ? ulaw2dma8 : alaw2dma8;
sound886drivers/sound/dmasound.cu_long data = sound.data;
sound887drivers/sound/dmasound.clong bal = sound.bal;
sound888drivers/sound/dmasound.clong hSpeed = sound.hard.speed, sSpeed = sound.soft.speed;
sound893drivers/sound/dmasound.cif (!sound.soft.stereo) {
sound923drivers/sound/dmasound.csound.bal = bal;
sound924drivers/sound/dmasound.csound.data = data;
sound935drivers/sound/dmasound.cu_long data = sound.data;
sound936drivers/sound/dmasound.clong bal = sound.bal;
sound937drivers/sound/dmasound.clong hSpeed = sound.hard.speed, sSpeed = sound.soft.speed;
sound942drivers/sound/dmasound.cif (!sound.soft.stereo) {
sound971drivers/sound/dmasound.csound.bal = bal;
sound972drivers/sound/dmasound.csound.data = data;
sound983drivers/sound/dmasound.cu_long data = sound.data;
sound984drivers/sound/dmasound.clong bal = sound.bal;
sound985drivers/sound/dmasound.clong hSpeed = sound.hard.speed, sSpeed = sound.soft.speed;
sound990drivers/sound/dmasound.cif (!sound.soft.stereo) {
sound1019drivers/sound/dmasound.csound.bal = bal;
sound1020drivers/sound/dmasound.csound.data = data;
sound1031drivers/sound/dmasound.cu_long data = sound.data;
sound1032drivers/sound/dmasound.clong bal = sound.bal;
sound1033drivers/sound/dmasound.clong hSpeed = sound.hard.speed, sSpeed = sound.soft.speed;
sound1038drivers/sound/dmasound.cif (!sound.soft.stereo) {
sound1068drivers/sound/dmasound.csound.bal = bal;
sound1069drivers/sound/dmasound.csound.data = data;
sound1080drivers/sound/dmasound.cu_long data = sound.data;
sound1081drivers/sound/dmasound.clong bal = sound.bal;
sound1082drivers/sound/dmasound.clong hSpeed = sound.hard.speed, sSpeed = sound.soft.speed;
sound1087drivers/sound/dmasound.cif (!sound.soft.stereo) {
sound1117drivers/sound/dmasound.csound.bal = bal;
sound1118drivers/sound/dmasound.csound.data = data;
sound1129drivers/sound/dmasound.cu_long data = sound.data;
sound1130drivers/sound/dmasound.clong bal = sound.bal;
sound1131drivers/sound/dmasound.clong hSpeed = sound.hard.speed, sSpeed = sound.soft.speed;
sound1136drivers/sound/dmasound.cif (!sound.soft.stereo) {
sound1168drivers/sound/dmasound.csound.bal = bal;
sound1169drivers/sound/dmasound.csound.data = data;
sound1180drivers/sound/dmasound.cu_long data = sound.data;
sound1181drivers/sound/dmasound.clong bal = sound.bal;
sound1182drivers/sound/dmasound.clong hSpeed = sound.hard.speed, sSpeed = sound.soft.speed;
sound1187drivers/sound/dmasound.cif (!sound.soft.stereo) {
sound1219drivers/sound/dmasound.csound.bal = bal;
sound1220drivers/sound/dmasound.csound.data = data;
sound1232drivers/sound/dmasound.cchar *table = sound.soft.format == AFMT_MU_LAW ? ulaw2dma8 : alaw2dma8;
sound1235drivers/sound/dmasound.cif (!sound.soft.stereo) {
sound1264drivers/sound/dmasound.cif (!sound.soft.stereo) {
sound1290drivers/sound/dmasound.cif (!sound.soft.stereo) {
sound1320drivers/sound/dmasound.cif (!sound.soft.stereo) {
sound1359drivers/sound/dmasound.cif (!sound.soft.stereo) {
sound1398drivers/sound/dmasound.cif (!sound.soft.stereo) {
sound1440drivers/sound/dmasound.cif (!sound.soft.stereo) {
sound1567drivers/sound/dmasound.csound.bass = TONE_VOXWARE_TO_DB(bass);
sound1568drivers/sound/dmasound.catari_microwire_cmd(MW_LM1992_BASS(sound.bass));
sound1569drivers/sound/dmasound.creturn(TONE_DB_TO_VOXWARE(sound.bass));
sound1575drivers/sound/dmasound.csound.treble = TONE_VOXWARE_TO_DB(treble);
sound1576drivers/sound/dmasound.catari_microwire_cmd(MW_LM1992_TREBLE(sound.treble));
sound1577drivers/sound/dmasound.creturn(TONE_DB_TO_VOXWARE(sound.treble));
sound1606drivers/sound/dmasound.cif ((100 * abs(sound.soft.speed - freq[i]) / freq[i]) < catchRadius)
sound1609drivers/sound/dmasound.csound.soft.speed = freq[idx];
sound1610drivers/sound/dmasound.csound.trans = &transTTNormal;
sound1612drivers/sound/dmasound.csound.trans = &transTTExpanding;
sound1615drivers/sound/dmasound.csound.hard = sound.soft;
sound1617drivers/sound/dmasound.cif (sound.hard.speed > 50066) {
sound1619drivers/sound/dmasound.csound.hard.speed = 50066;
sound1621drivers/sound/dmasound.csound.trans = &transTTNormal;
sound1622drivers/sound/dmasound.c} else if (sound.hard.speed > 25033) {
sound1623drivers/sound/dmasound.csound.hard.speed = 50066;
sound1625drivers/sound/dmasound.c} else if (sound.hard.speed > 12517) {
sound1626drivers/sound/dmasound.csound.hard.speed = 25033;
sound1628drivers/sound/dmasound.c} else if (sound.hard.speed > 6258) {
sound1629drivers/sound/dmasound.csound.hard.speed = 12517;
sound1632drivers/sound/dmasound.csound.hard.speed = 6258;
sound1636drivers/sound/dmasound.ctt_dmasnd.mode = (sound.hard.stereo ?
sound1640drivers/sound/dmasound.csound.bal = -sound.soft.speed;
sound1650drivers/sound/dmasound.creturn(sound.soft.format);
sound1660drivers/sound/dmasound.csound.soft.format = format;
sound1661drivers/sound/dmasound.csound.soft.size = 8;
sound1662drivers/sound/dmasound.cif (sound.minDev == SND_DEV_DSP) {
sound1663drivers/sound/dmasound.csound.dsp.format = format;
sound1664drivers/sound/dmasound.csound.dsp.size = 8;
sound1679drivers/sound/dmasound.csound.volume_left = VOLUME_VOXWARE_TO_DB(volume & 0xff);
sound1680drivers/sound/dmasound.catari_microwire_cmd(MW_LM1992_BALLEFT(sound.volume_left));
sound1681drivers/sound/dmasound.csound.volume_right = VOLUME_VOXWARE_TO_DB((volume & 0xff00) >> 8);
sound1682drivers/sound/dmasound.catari_microwire_cmd(MW_LM1992_BALRIGHT(sound.volume_right));
sound1683drivers/sound/dmasound.creturn(VOLUME_DB_TO_VOXWARE(sound.volume_left) |
sound1684drivers/sound/dmasound.c(VOLUME_DB_TO_VOXWARE(sound.volume_right) << 8));
sound1721drivers/sound/dmasound.cif ((100 * abs(sound.soft.speed - freq[i]) / freq[i]) < catchRadius)
sound1724drivers/sound/dmasound.csound.soft.speed = freq[idx];
sound1725drivers/sound/dmasound.csound.trans = &transFalconNormal;
sound1727drivers/sound/dmasound.csound.trans = &transFalconExpanding;
sound1730drivers/sound/dmasound.csound.hard = sound.soft;
sound1732drivers/sound/dmasound.cif (sound.hard.size == 16) {
sound1734drivers/sound/dmasound.csound.hard.stereo = 1;
sound1737drivers/sound/dmasound.cif (sound.hard.speed > 49170) {
sound1739drivers/sound/dmasound.csound.hard.speed = 49170;
sound1741drivers/sound/dmasound.csound.trans = &transFalconNormal;
sound1742drivers/sound/dmasound.c} else if (sound.hard.speed > 32780) {
sound1743drivers/sound/dmasound.csound.hard.speed = 49170;
sound1745drivers/sound/dmasound.c} else if (sound.hard.speed > 24585) {
sound1746drivers/sound/dmasound.csound.hard.speed = 32780;
sound1748drivers/sound/dmasound.c} else if (sound.hard.speed > 19668) {
sound1749drivers/sound/dmasound.csound.hard.speed = 24585;
sound1751drivers/sound/dmasound.c} else if (sound.hard.speed > 16390) {
sound1752drivers/sound/dmasound.csound.hard.speed = 19668;
sound1754drivers/sound/dmasound.c} else if (sound.hard.speed > 12292) {
sound1755drivers/sound/dmasound.csound.hard.speed = 16390;
sound1757drivers/sound/dmasound.c} else if (sound.hard.speed > 9834) {
sound1758drivers/sound/dmasound.csound.hard.speed = 12292;
sound1760drivers/sound/dmasound.c} else if (sound.hard.speed > 8195) {
sound1761drivers/sound/dmasound.csound.hard.speed = 9834;
sound1764drivers/sound/dmasound.csound.hard.speed = 8195;
sound1778drivers/sound/dmasound.ctt_dmasnd.mode = (sound.hard.stereo ?
sound1780drivers/sound/dmasound.c((sound.hard.size == 8) ?
sound1784drivers/sound/dmasound.csound.bal = -sound.soft.speed;
sound1795drivers/sound/dmasound.creturn(sound.soft.format);
sound1813drivers/sound/dmasound.csound.soft.format = format;
sound1814drivers/sound/dmasound.csound.soft.size = size;
sound1815drivers/sound/dmasound.cif (sound.minDev == SND_DEV_DSP) {
sound1816drivers/sound/dmasound.csound.dsp.format = format;
sound1817drivers/sound/dmasound.csound.dsp.size = sound.soft.size;
sound1836drivers/sound/dmasound.csound.volume_left = VOLUME_VOXWARE_TO_ATT(volume & 0xff);
sound1837drivers/sound/dmasound.csound.volume_right = VOLUME_VOXWARE_TO_ATT((volume & 0xff00) >> 8);
sound1838drivers/sound/dmasound.ctt_dmasnd.output_atten = sound.volume_left << 8 | sound.volume_right << 4;
sound1839drivers/sound/dmasound.creturn(VOLUME_ATT_TO_VOXWARE(sound.volume_left) |
sound1840drivers/sound/dmasound.cVOLUME_ATT_TO_VOXWARE(sound.volume_right) << 8);
sound1943drivers/sound/dmasound.cif (sq.ignore_int && (sound.mach.type == DMASND_FALCON)) {
sound2040drivers/sound/dmasound.cif (sound.soft.speed)
sound2041drivers/sound/dmasound.cperiod = amiga_colorclock/sound.soft.speed-1;
sound2044drivers/sound/dmasound.csound.hard = sound.soft;
sound2045drivers/sound/dmasound.csound.trans = &transAmiga;
sound2050drivers/sound/dmasound.csound.hard.speed = amiga_colorclock/(period+1);
sound2053drivers/sound/dmasound.csound.hard.speed = amiga_colorclock/(period+1);
sound2069drivers/sound/dmasound.creturn(sound.soft.format);
sound2087drivers/sound/dmasound.csound.soft.format = format;
sound2088drivers/sound/dmasound.csound.soft.size = size;
sound2089drivers/sound/dmasound.cif (sound.minDev == SND_DEV_DSP) {
sound2090drivers/sound/dmasound.csound.dsp.format = format;
sound2091drivers/sound/dmasound.csound.dsp.size = sound.soft.size;
sound2105drivers/sound/dmasound.csound.volume_left = VOLUME_VOXWARE_TO_AMI(volume & 0xff);
sound2106drivers/sound/dmasound.ccustom.aud[0].audvol = sound.volume_left;
sound2107drivers/sound/dmasound.csound.volume_right = VOLUME_VOXWARE_TO_AMI((volume & 0xff00) >> 8);
sound2108drivers/sound/dmasound.ccustom.aud[1].audvol = sound.volume_right;
sound2109drivers/sound/dmasound.creturn(VOLUME_AMI_TO_VOXWARE(sound.volume_left) |
sound2110drivers/sound/dmasound.c(VOLUME_AMI_TO_VOXWARE(sound.volume_right) << 8));
sound2115drivers/sound/dmasound.csound.treble = treble;
sound2140drivers/sound/dmasound.cif (sound.hard.stereo) {
sound2148drivers/sound/dmasound.cif (sound.hard.size == 8) {
sound2160drivers/sound/dmasound.cif (sound.volume_left == 64 && sound.volume_right == 64) {
sound2283drivers/sound/dmasound.c(*sound.mach.init)();
sound2285drivers/sound/dmasound.c(*sound.mach.silence)();
sound2291drivers/sound/dmasound.c(*sound.mach.init)();
sound2297drivers/sound/dmasound.creturn(*sound.mach.setFormat)(format);
sound2304drivers/sound/dmasound.creturn(sound.soft.speed);
sound2306drivers/sound/dmasound.csound.soft.speed = speed;
sound2307drivers/sound/dmasound.c(*sound.mach.init)();
sound2308drivers/sound/dmasound.cif (sound.minDev == SND_DEV_DSP)
sound2309drivers/sound/dmasound.csound.dsp.speed = sound.soft.speed;
sound2311drivers/sound/dmasound.creturn(sound.soft.speed);
sound2318drivers/sound/dmasound.creturn(sound.soft.stereo);
sound2322drivers/sound/dmasound.csound.soft.stereo = stereo;
sound2323drivers/sound/dmasound.cif (sound.minDev == SND_DEV_DSP)
sound2324drivers/sound/dmasound.csound.dsp.stereo = stereo;
sound2325drivers/sound/dmasound.c(*sound.mach.init)();
sound2333drivers/sound/dmasound.creturn(*sound.mach.setVolume)(volume);
sound2340drivers/sound/dmasound.creturn(sound.mach.setBass ? (*sound.mach.setBass)(bass) : 50);
sound2347drivers/sound/dmasound.creturn(sound.mach.setTreble ? (*sound.mach.setTreble)(treble) : 50);
sound2357drivers/sound/dmasound.cswitch (sound.soft.format) {
sound2359drivers/sound/dmasound.cct_func = sound.trans->ct_ulaw;
sound2362drivers/sound/dmasound.cct_func = sound.trans->ct_alaw;
sound2365drivers/sound/dmasound.cct_func = sound.trans->ct_s8;
sound2368drivers/sound/dmasound.cct_func = sound.trans->ct_u8;
sound2371drivers/sound/dmasound.cct_func = sound.trans->ct_s16be;
sound2374drivers/sound/dmasound.cct_func = sound.trans->ct_u16be;
sound2377drivers/sound/dmasound.cct_func = sound.trans->ct_s16le;
sound2380drivers/sound/dmasound.cct_func = sound.trans->ct_u16le;
sound2403drivers/sound/dmasound.csound.treble = 0;
sound2404drivers/sound/dmasound.csound.bass = 0;
sound2405drivers/sound/dmasound.cswitch (sound.mach.type) {
sound2409drivers/sound/dmasound.csound.volume_left = 0;
sound2411drivers/sound/dmasound.csound.volume_right = 0;
sound2417drivers/sound/dmasound.csound.volume_left = (tt_dmasnd.output_atten & 0xf00) >> 8;
sound2418drivers/sound/dmasound.csound.volume_right = (tt_dmasnd.output_atten & 0xf0) >> 4;
sound2423drivers/sound/dmasound.csound.volume_left = 64;
sound2424drivers/sound/dmasound.csound.volume_right = 64;
sound2425drivers/sound/dmasound.ccustom.aud[0].audvol = sound.volume_left;
sound2427drivers/sound/dmasound.ccustom.aud[1].audvol = sound.volume_right;
sound2429drivers/sound/dmasound.csound.treble = 50;
sound2455drivers/sound/dmasound.cswitch (sound.mach.type) {
sound2469drivers/sound/dmasound.cVOLUME_ATT_TO_VOXWARE(sound.volume_left) |
sound2470drivers/sound/dmasound.cVOLUME_ATT_TO_VOXWARE(sound.volume_right) << 8));
sound2518drivers/sound/dmasound.cVOLUME_DB_TO_VOXWARE(sound.volume_left) |
sound2519drivers/sound/dmasound.c(VOLUME_DB_TO_VOXWARE(sound.volume_right) << 8)));
sound2521drivers/sound/dmasound.creturn(IOCTL_OUT(arg, TONE_DB_TO_VOXWARE(sound.bass)));
sound2523drivers/sound/dmasound.creturn(IOCTL_OUT(arg, TONE_DB_TO_VOXWARE(sound.treble)));
sound2569drivers/sound/dmasound.cVOLUME_AMI_TO_VOXWARE(sound.volume_left) |
sound2570drivers/sound/dmasound.cVOLUME_AMI_TO_VOXWARE(sound.volume_right) << 8));
sound2574drivers/sound/dmasound.creturn(IOCTL_OUT(arg, sound.treble));
sound2620drivers/sound/dmasound.csound.dsp.format = AFMT_S8;
sound2621drivers/sound/dmasound.csound.dsp.stereo = 0;
sound2622drivers/sound/dmasound.csound.dsp.size = 8;
sound2625drivers/sound/dmasound.cswitch (sound.mach.type) {
sound2628drivers/sound/dmasound.csound.dsp.speed = 6258;
sound2631drivers/sound/dmasound.csound.dsp.speed = 8195;
sound2636drivers/sound/dmasound.csound.dsp.speed = 8000;
sound2642drivers/sound/dmasound.csound.soft = sound.dsp;
sound2648drivers/sound/dmasound.c(*sound.mach.play)();
sound2811drivers/sound/dmasound.cswitch (sound.mach.type) {
sound2826drivers/sound/dmasound.clen += sprintf(buffer+len, "\tsound.format = 0x%x", sound.soft.format);
sound2827drivers/sound/dmasound.cswitch (sound.soft.format) {
sound2855drivers/sound/dmasound.csound.soft.speed, sound.hard.speed);
sound2857drivers/sound/dmasound.csound.soft.stereo, sound.soft.stereo ? "stereo" : "mono");
sound2858drivers/sound/dmasound.cswitch (sound.mach.type) {
sound2862drivers/sound/dmasound.csound.volume_left);
sound2864drivers/sound/dmasound.csound.volume_right);
sound2866drivers/sound/dmasound.csound.bass);
sound2868drivers/sound/dmasound.csound.treble);
sound2872drivers/sound/dmasound.csound.volume_left);
sound2874drivers/sound/dmasound.csound.volume_right);
sound2880drivers/sound/dmasound.csound.volume_left);
sound2882drivers/sound/dmasound.csound.volume_right);
sound2935drivers/sound/dmasound.csound.minDev = dev;
sound2936drivers/sound/dmasound.csound.soft = sound.dsp;
sound2978drivers/sound/dmasound.csq_release(); sound.soft = sound.dsp; sound_silence();
sound3090drivers/sound/dmasound.cif (sound.trans) {
sound3091drivers/sound/dmasound.cif (sound.trans->ct_ulaw)
sound3093drivers/sound/dmasound.cif (sound.trans->ct_alaw)
sound3095drivers/sound/dmasound.cif (sound.trans->ct_s8)
sound3097drivers/sound/dmasound.cif (sound.trans->ct_u8)
sound3099drivers/sound/dmasound.cif (sound.trans->ct_s16be)
sound3101drivers/sound/dmasound.cif (sound.trans->ct_u16be)
sound3103drivers/sound/dmasound.cif (sound.trans->ct_s16le)
sound3105drivers/sound/dmasound.cif (sound.trans->ct_u16le)
sound3157drivers/sound/dmasound.csound.mach = machFalcon;
sound3159drivers/sound/dmasound.csound.mach = machTT;
sound3173drivers/sound/dmasound.csound.mach = machAmiga;
sound3190drivers/sound/dmasound.cbuffers[i] = sound.mach.dma_alloc (bufSize << 10, GFP_KERNEL);
sound3193drivers/sound/dmasound.csound.mach.dma_free (buffers[i], bufSize << 10);
sound3210drivers/sound/dmasound.cif (!sound.mach.irqinit()) {
sound392drivers/sound/soundcard.cstatic int      sound[20] =
sound412drivers/sound/soundcard.cwhile (i < 20 && sound[i])
sound413drivers/sound/soundcard.cints[i + 1] = sound[i++];