not available to programs anyway.
-/* $OpenBSD: cs4231.c,v 1.33 2015/05/11 06:46:21 ratchov Exp $ */
+/* $OpenBSD: cs4231.c,v 1.34 2015/05/11 06:52:36 ratchov Exp $ */
/*
* Copyright (c) 1999 Jason L. Wright (jason@thought.net)
fp->precision = 16;
fp->flags = 0;
break;
- case 5:
- strlcpy(fp->name, AudioEadpcm, sizeof fp->name);
- fp->encoding = AUDIO_ENCODING_ADPCM;
- fp->precision = 8;
- fp->flags = 0;
- break;
default:
err = EINVAL;
}
return (EINVAL);
bits = FMT_PCM8 >> 5;
break;
- case AUDIO_ENCODING_ADPCM:
- if (p->precision != 8)
- return (EINVAL);
- bits = FMT_ADPCM >> 5;
- break;
default:
return (EINVAL);
}
-/* $OpenBSD: ce4231.c,v 1.32 2015/05/11 06:46:21 ratchov Exp $ */
+/* $OpenBSD: ce4231.c,v 1.33 2015/05/11 06:52:35 ratchov Exp $ */
/*
* Copyright (c) 1999 Jason L. Wright (jason@thought.net)
fp->precision = 16;
fp->flags = 0;
break;
- case 5:
- strlcpy(fp->name, AudioEadpcm, sizeof(fp->name));
- fp->encoding = AUDIO_ENCODING_ADPCM;
- fp->precision = 8;
- fp->flags = 0;
- break;
default:
err = EINVAL;
}
case AUDIO_ENCODING_ULINEAR_BE:
p->precision = 8;
break;
- case AUDIO_ENCODING_ADPCM:
- p->precision = 8;
- bits = FMT_ADPCM >> 5;
- break;
default:
return (EINVAL);
}
-/* $OpenBSD: ad1848.c,v 1.42 2015/05/11 06:46:21 ratchov Exp $ */
+/* $OpenBSD: ad1848.c,v 1.43 2015/05/11 06:52:35 ratchov Exp $ */
/* $NetBSD: ad1848.c,v 1.45 1998/01/30 02:02:38 augustss Exp $ */
/*
p->precision = 8;
bits = FMT_ALAW;
break;
- case AUDIO_ENCODING_ADPCM:
- bits = FMT_ADPCM;
- break;
case AUDIO_ENCODING_SLINEAR_LE:
if (p->precision == 16)
bits = FMT_TWOS_COMP;
-/* $OpenBSD: cs4231.c,v 1.34 2015/05/11 06:46:22 ratchov Exp $ */
+/* $OpenBSD: cs4231.c,v 1.35 2015/05/11 06:52:35 ratchov Exp $ */
/*
* Copyright (c) 1999 Jason L. Wright (jason@thought.net)
fp->precision = 16;
fp->flags = AUDIO_ENCODINGFLAG_EMULATED;
break;
- case 8:
- strlcpy(fp->name, AudioEadpcm, sizeof fp->name);
- fp->encoding = AUDIO_ENCODING_ADPCM;
- fp->precision = 8;
- fp->flags = 0;
- break;
default:
err = EINVAL;
}
else
return (EINVAL);
break;
- case AUDIO_ENCODING_ADPCM:
- if (p->precision != 8)
- return (EINVAL);
- bits = FMT_ADPCM >> 5;
- break;
default:
return (EINVAL);
}