Lines Matching +full:convert +full:- +full:sample +full:- +full:format

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
82 static int AmiSetFormat(int format);
92 * Heartbeat interferes with sound since the 7 kHz low-pass filter and the
133 * to convert samples into the right frequency/encoding. They will only work on
135 * if the user didn't write a multiple of the current sample size. They both
149 * ++geert: split in even more functions (one per format)
154 * Native format
167 return -EFAULT; in ami_ct_s8()
176 return -EFAULT; in ami_ct_s8()
177 count--; in ami_ct_s8()
186 * Copy and convert 8 bit data
203 return -EFAULT; \
205 count--; \
215 return -EFAULT; \
218 return -EFAULT; \
220 count--; \
237 * Copy and convert 16 bit data
256 return -EFAULT; \
260 count--; \
271 return -EFAULT; \
276 return -EFAULT; \
280 count--; \
365 period = amiga_colorclock/dmasound.soft.speed-1; in AmiInit()
385 static int AmiSetFormat(int format) in AmiSetFormat() argument
391 switch (format) { in AmiSetFormat()
393 return dmasound.soft.format; in AmiSetFormat()
406 default: /* :-) */ in AmiSetFormat()
408 format = AFMT_S8; in AmiSetFormat()
411 dmasound.soft.format = format; in AmiSetFormat()
414 dmasound.dsp.format = format; in AmiSetFormat()
419 return format; in AmiSetFormat()
499 /* We can play pseudo 14-bit only with the maximum volume */ in AmiPlayNextFrame()
573 write_sq.count--; in AmiInterrupt()
642 return -EINVAL; in AmiMixerIoctl()
672 .format = AFMT_S8,
679 .format = AFMT_U8,
707 .hardware_afmts = (AFMT_S8 | AFMT_S16_BE), /* h'ware-supported formats *only* here */
737 .name = "amiga-audio",
745 MODULE_ALIAS("platform:amiga-audio");