From a983d24cd82f2e02701256fe426eff5af8182cba Mon Sep 17 00:00:00 2001 From: jmcneill Date: Thu, 26 May 2011 23:42:39 +0000 Subject: [PATCH] mute the audio input during frequency changes --- sys/dev/usb/auvitek_video.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/dev/usb/auvitek_video.c b/sys/dev/usb/auvitek_video.c index 5b65209b896f..e1da7049ec17 100644 --- a/sys/dev/usb/auvitek_video.c +++ b/sys/dev/usb/auvitek_video.c @@ -1,4 +1,4 @@ -/* $NetBSD: auvitek_video.c,v 1.2 2010/12/28 04:02:33 jmcneill Exp $ */ +/* $NetBSD: auvitek_video.c,v 1.3 2011/05/26 23:42:39 jmcneill Exp $ */ /*- * Copyright (c) 2010 Jared D. McNeill @@ -31,7 +31,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: auvitek_video.c,v 1.2 2010/12/28 04:02:33 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: auvitek_video.c,v 1.3 2011/05/26 23:42:39 jmcneill Exp $"); #include #include @@ -523,7 +523,11 @@ auvitek_set_frequency(void *opaque, struct video_frequency *vf) else params.signal_source = XC5K_SIGNAL_SOURCE_CABLE; params.frequency = vf->frequency; + if (sc->sc_au8522) + au8522_set_audio(sc->sc_au8522, false); error = xc5k_tune(sc->sc_xc5k, ¶ms); + if (sc->sc_au8522) + au8522_set_audio(sc->sc_au8522, true); if (error) return error;