Remove commented out old filters.
This commit is contained in:
parent
601792dc1b
commit
5edd13df26
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vsaudio.c,v 1.4.2.2 2019/05/04 07:20:08 isaki Exp $ */
|
||||
/* $NetBSD: vsaudio.c,v 1.4.2.3 2019/05/08 11:56:09 isaki Exp $ */
|
||||
/* $OpenBSD: vsaudio.c,v 1.4 2013/05/15 21:21:11 ratchov Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -516,57 +516,4 @@ vsaudio_get_locks(void *opaque, kmutex_t **intr, kmutex_t **thread)
|
|||
*thread = &sc->sc_lock;
|
||||
}
|
||||
|
||||
/*
|
||||
static stream_filter_t *
|
||||
vsaudio_input_conv(struct audio_softc *sc, const audio_params_t *from,
|
||||
const audio_params_t *to)
|
||||
{
|
||||
return auconv_nocontext_filter_factory(vsaudio_input_conv_fetch_to);
|
||||
}
|
||||
|
||||
static int
|
||||
vsaudio_input_conv_fetch_to(struct audio_softc *sc, stream_fetcher_t *self,
|
||||
audio_stream_t *dst, int max_used)
|
||||
{
|
||||
stream_filter_t *this;
|
||||
int m, err;
|
||||
|
||||
this = (stream_filter_t *)self;
|
||||
if ((err = this->prev->fetch_to(sc, this->prev, this->src, max_used * 4)))
|
||||
return err;
|
||||
m = dst->end - dst->start;
|
||||
m = uimin(m, max_used);
|
||||
FILTER_LOOP_PROLOGUE(this->src, 4, dst, 1, m) {
|
||||
*d = ((*(const uint32_t *)s) >> 16) & 0xff;
|
||||
} FILTER_LOOP_EPILOGUE(this->src, dst);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static stream_filter_t *
|
||||
vsaudio_output_conv(struct audio_softc *sc, const audio_params_t *from,
|
||||
const audio_params_t *to)
|
||||
{
|
||||
return auconv_nocontext_filter_factory(vsaudio_output_conv_fetch_to);
|
||||
}
|
||||
|
||||
static int
|
||||
vsaudio_output_conv_fetch_to(struct audio_softc *sc, stream_fetcher_t *self,
|
||||
audio_stream_t *dst, int max_used)
|
||||
{
|
||||
stream_filter_t *this;
|
||||
int m, err;
|
||||
|
||||
this = (stream_filter_t *)self;
|
||||
max_used = (max_used + 3) & ~3;
|
||||
if ((err = this->prev->fetch_to(sc, this->prev, this->src, max_used / 4)))
|
||||
return err;
|
||||
m = (dst->end - dst->start) & ~3;
|
||||
m = uimin(m, max_used);
|
||||
FILTER_LOOP_PROLOGUE(this->src, 1, dst, 4, m) {
|
||||
*(uint32_t *)d = (*s << 16);
|
||||
} FILTER_LOOP_EPILOGUE(this->src, dst);
|
||||
return 0;
|
||||
}
|
||||
*/
|
||||
|
||||
#endif /* NAUDIO > 0 */
|
||||
|
|
Loading…
Reference in New Issue