Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x68k/dev Audio vchan auto config works again due to...
details: https://anonhg.NetBSD.org/src/rev/c8647a44fbc1
branches: trunk
changeset: 355456:c8647a44fbc1
user: nat <nat%NetBSD.org@localhost>
date: Sat Jul 29 07:30:39 2017 +0000
description:
Audio vchan auto config works again due to the use of a null_filter.
Tested and confirmed working by isaki@.
diffstat:
sys/arch/x68k/dev/vs.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (40 lines):
diff -r 0d24e4f24778 -r c8647a44fbc1 sys/arch/x68k/dev/vs.c
--- a/sys/arch/x68k/dev/vs.c Sat Jul 29 07:19:47 2017 +0000
+++ b/sys/arch/x68k/dev/vs.c Sat Jul 29 07:30:39 2017 +0000
@@ -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 @@
#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 @@
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;
Home |
Main Index |
Thread Index |
Old Index