Module Name:    src
Committed By:   nat
Date:           Sat Jul 29 07:30:39 UTC 2017

Modified Files:
        src/sys/arch/x68k/dev: vs.c

Log Message:
Audio vchan auto config works again due to the use of a null_filter.

Tested and confirmed working by isaki@.


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/arch/x68k/dev/vs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/x68k/dev/vs.c
diff -u src/sys/arch/x68k/dev/vs.c:1.39 src/sys/arch/x68k/dev/vs.c:1.40
--- src/sys/arch/x68k/dev/vs.c:1.39	Sun Jul  9 12:49:26 2017
+++ src/sys/arch/x68k/dev/vs.c	Sat Jul 29 07:30:39 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: vs.c,v 1.39 2017/07/09 12:49:26 isaki Exp $	*/
+/*	$NetBSD: vs.c,v 1.40 2017/07/29 07:30:39 nat Exp $	*/
 
 /*
  * Copyright (c) 2001 Tetsuya Isaki. All rights reserved.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vs.c,v 1.39 2017/07/09 12:49:26 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vs.c,v 1.40 2017/07/29 07:30:39 nat Exp $");
 
 #include "audio.h"
 #include "vs.h"
@@ -160,6 +160,8 @@ struct {
 
 #define NUM_RATE	(sizeof(vs_l2r)/sizeof(vs_l2r[0]))
 
+extern stream_filter_factory_t null_filter;
+
 static int
 vs_match(device_t parent, cfdata_t cf, void *aux)
 {
@@ -405,6 +407,12 @@ vs_set_params(void *hdl, int setmode, in
 	pfil->prepend(pfil, msm6258_slinear16_to_adpcm, play);
 	rfil->prepend(rfil, msm6258_adpcm_to_slinear16, play);
 
+	play->validbits = 16;
+	play->precision = 16;
+
+	pfil->prepend(pfil, null_filter, play);
+	rfil->prepend(rfil, null_filter, play);
+
 	sc->sc_current.prate = rate;
 	sc->sc_current.rrate = rate;
 

Reply via email to