Lines Matching +full:ch0 +full:- +full:2

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 * [0.3] - put in constraint on state buffer usage.
15 * [0.4] - put in default hard/soft settings
65 * Helper pointers for 16(14)-bit sound
92 * Heartbeat interferes with sound since the 7 kHz low-pass filter and the
167 return -EFAULT; in ami_ct_s8()
172 used = count*2; in ami_ct_s8()
176 return -EFAULT; in ami_ct_s8()
177 count--; in ami_ct_s8()
203 return -EFAULT; \
205 count--; \
211 used = count*2; \
215 return -EFAULT; \
218 return -EFAULT; \
220 count--; \
253 used = count*2; \
256 return -EFAULT; \
259 *low++ = (data>>2) & 0x3f; \
260 count--; \
263 u_char *lefth = &frame[*frameUsed>>2]; \
267 count = min_t(size_t, userCount, frameLeft)>>2 & ~1; \
271 return -EFAULT; \
274 *leftl++ = (data>>2) & 0x3f; \
276 return -EFAULT; \
279 *rightl++ = (data>>2) & 0x3f; \
280 count--; \
314 custom.aud[2].audvol = custom.aud[3].audvol = 0; in StopDMA()
365 period = amiga_colorclock/dmasound.soft.speed-1; in AmiInit()
406 default: /* :-) */ in AmiSetFormat()
435 custom.aud[2].audvol = 1; in AmiSetVolume()
438 custom.aud[2].audvol = 0; in AmiSetVolume()
458 #define AMI_PLAY_PLAYING 2
464 u_char *start, *ch0, *ch1, *ch2, *ch3; in AmiPlayNextFrame() local
475 ch0 = start; in AmiPlayNextFrame()
479 ch0 = start; in AmiPlayNextFrame()
487 custom.aud[0].audlc = (u_short *)ZTWO_PADDR(ch0); in AmiPlayNextFrame()
494 custom.aud[0].audlc = (u_short *)ZTWO_PADDR(ch0); in AmiPlayNextFrame()
499 /* We can play pseudo 14-bit only with the maximum volume */ in AmiPlayNextFrame()
500 ch3 = ch0+write_sq_block_size_quarter; in AmiPlayNextFrame()
502 custom.aud[2].audvol = 1; /* we are being affected by the beeps */ in AmiPlayNextFrame()
504 custom.aud[2].audlc = (u_short *)ZTWO_PADDR(ch2); in AmiPlayNextFrame()
505 custom.aud[2].audlen = size; in AmiPlayNextFrame()
510 custom.aud[2].audvol = 0; in AmiPlayNextFrame()
534 minframes = 2; in AmiPlay()
573 write_sq.count--; in AmiInterrupt()
579 minframes = 2; in AmiInterrupt()
615 custom.aud[2].audvol = 1; /* For pseudo 14bit */ in AmiMixerInit()
642 return -EINVAL; in AmiMixerIoctl()
707 .hardware_afmts = (AFMT_S8 | AFMT_S16_BE), /* h'ware-supported formats *only* here */
737 .name = "amiga-audio",
745 MODULE_ALIAS("platform:amiga-audio");