Module Name:    src
Committed By:   jmcneill
Date:           Thu May 26 23:42:39 UTC 2011

Modified Files:
        src/sys/dev/usb: auvitek_video.c

Log Message:
mute the audio input during frequency changes


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/usb/auvitek_video.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/dev/usb/auvitek_video.c
diff -u src/sys/dev/usb/auvitek_video.c:1.2 src/sys/dev/usb/auvitek_video.c:1.3
--- src/sys/dev/usb/auvitek_video.c:1.2	Tue Dec 28 04:02:33 2010
+++ src/sys/dev/usb/auvitek_video.c	Thu May 26 23:42:39 2011
@@ -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 <[email protected]>
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__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 <sys/param.h>
 #include <sys/systm.h>
@@ -523,7 +523,11 @@
 	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, &params);
+	if (sc->sc_au8522)
+		au8522_set_audio(sc->sc_au8522, true);
 	if (error)
 		return error;
 

Reply via email to