Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/isaki-audio2]: src/sys/arch/vax/vsa Remove commented out old filters.



details:   https://anonhg.NetBSD.org/src/rev/903972981dad
branches:  isaki-audio2
changeset: 451163:903972981dad
user:      isaki <isaki%NetBSD.org@localhost>
date:      Wed May 08 11:56:09 2019 +0000

description:
Remove commented out old filters.

diffstat:

 sys/arch/vax/vsa/vsaudio.c |  55 +---------------------------------------------
 1 files changed, 1 insertions(+), 54 deletions(-)

diffs (67 lines):

diff -r 572fcd6fd549 -r 903972981dad sys/arch/vax/vsa/vsaudio.c
--- a/sys/arch/vax/vsa/vsaudio.c        Tue May 07 15:01:50 2019 +0000
+++ b/sys/arch/vax/vsa/vsaudio.c        Wed May 08 11:56:09 2019 +0000
@@ -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 @@
        *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 */



Home | Main Index | Thread Index | Old Index