Lines Matching +full:switch +full:- +full:freq +full:- +full:select

1 // SPDX-License-Identifier: GPL-2.0
3 * Mac bong noise generator. Note - we ought to put a boingy noise
6 * ----------------------------------------------------------------------
10 * Juergen Mellinger (juergen.mellinger@t-online.de)
37 static unsigned long mac_bell_phase; /* 0..2*Pi -> 0..0x800 (wavetable size) */
71 switch ( macintosh_config->ident ) in mac_init_asc()
99 * current location of the Apple Sound Chip--ASC--in other Macs.) The in mac_init_asc()
104 * Macintosh models have 16-bit audio input and output capability in mac_init_asc()
105 * because of the AT&T DSP3210 hardware circuitry and the 16-bit Singer in mac_init_asc()
108 * 16-bit I/O functionality. The PowerBook 500 series computers in mac_init_asc()
109 * support 16-bit stereo output, but only mono input." in mac_init_asc()
114 * --David Kilzer in mac_init_asc()
130 * Every switch needs a default in mac_init_asc()
143 mac_asc_wave_tab[ i + 0x400 ] = 0xFF - i / 4; in mac_init_asc()
157 void mac_mksound( unsigned int freq, unsigned int length ) in mac_mksound() argument
159 __u32 cfreq = ( freq << 5 ) / 468; in mac_mksound()
174 mac_special_bell( freq, length, 128 ); in mac_mksound()
178 if ( freq < 20 || freq > 20000 || length == 0 ) in mac_mksound()
220 static void mac_quadra_start_bell( unsigned int freq, unsigned int length, unsigned int volume ) in mac_quadra_start_bell() argument
233 mac_bell_phasepersample = ( freq * sizeof( mac_asc_wave_tab ) ) / mac_asc_samplespersec; in mac_quadra_start_bell()
244 /* select mono mode */ in mac_quadra_start_bell()
246 /* select sampled sound mode */ in mac_quadra_start_bell()
282 if ( mac_bell_duration-- > 0 ) in mac_quadra_ring_bell()
287 mac_asc_regs[ 0 ] = mac_asc_wave_tab[ mac_bell_phase & ( sizeof( mac_asc_wave_tab ) - 1 ) ]; in mac_quadra_ring_bell()
299 * AV code - please fill in.
301 static void mac_av_start_bell( unsigned int freq, unsigned int length, unsigned int volume ) in mac_av_start_bell() argument