Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Hauppauge HVR-850 analog should be identical to ...
details: https://anonhg.NetBSD.org/src/rev/b6d74c283bc5
branches: trunk
changeset: 760133:b6d74c283bc5
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Tue Dec 28 04:02:33 2010 +0000
description:
Hauppauge HVR-850 analog should be identical to HVR-950Q, so support it too
diffstat:
sys/dev/usb/auvitek.c | 6 ++++--
sys/dev/usb/auvitek_board.c | 10 ++++++++--
sys/dev/usb/auvitek_video.c | 6 +++---
sys/dev/usb/auvitekvar.h | 3 ++-
4 files changed, 17 insertions(+), 8 deletions(-)
diffs (109 lines):
diff -r e97301fb0b47 -r b6d74c283bc5 sys/dev/usb/auvitek.c
--- a/sys/dev/usb/auvitek.c Tue Dec 28 00:49:21 2010 +0000
+++ b/sys/dev/usb/auvitek.c Tue Dec 28 04:02:33 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: auvitek.c,v 1.2 2010/12/28 00:11:50 jmcneill Exp $ */
+/* $NetBSD: auvitek.c,v 1.3 2010/12/28 04:02:33 jmcneill Exp $ */
/*-
* Copyright (c) 2010 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: auvitek.c,v 1.2 2010/12/28 00:11:50 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: auvitek.c,v 1.3 2010/12/28 04:02:33 jmcneill Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -67,6 +67,8 @@
} auvitek_devices[] = {
{ 0x2040, 0x7200,
"WinTV HVR-950Q", AUVITEK_BOARD_HVR_950Q },
+ { 0x2040, 0x7240,
+ "WinTV HVR-850", AUVITEK_BOARD_HVR_850 },
};
static int
diff -r e97301fb0b47 -r b6d74c283bc5 sys/dev/usb/auvitek_board.c
--- a/sys/dev/usb/auvitek_board.c Tue Dec 28 00:49:21 2010 +0000
+++ b/sys/dev/usb/auvitek_board.c Tue Dec 28 04:02:33 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: auvitek_board.c,v 1.1 2010/12/27 15:42:11 jmcneill Exp $ */
+/* $NetBSD: auvitek_board.c,v 1.2 2010/12/28 04:02:33 jmcneill Exp $ */
/*-
* Copyright (c) 2010 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: auvitek_board.c,v 1.1 2010/12/27 15:42:11 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: auvitek_board.c,v 1.2 2010/12/28 04:02:33 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -53,6 +53,11 @@
uint16_t enable;
uint8_t clkdiv;
} auvitek_board_config[] = {
+ [AUVITEK_BOARD_HVR_850] = {
+ .reset = 0x02b0,
+ .enable = 0x02f0,
+ .clkdiv = AU0828_I2C_CLKDIV_30,
+ },
[AUVITEK_BOARD_HVR_950Q] = {
.reset = 0x02b0,
.enable = 0x02f0,
@@ -97,6 +102,7 @@
uint8_t val;
switch (sc->sc_board) {
+ case AUVITEK_BOARD_HVR_850:
case AUVITEK_BOARD_HVR_950Q:
val = auvitek_read_1(sc, AU0828_REG_GPIO2_OUTEN);
val &= ~2;
diff -r e97301fb0b47 -r b6d74c283bc5 sys/dev/usb/auvitek_video.c
--- a/sys/dev/usb/auvitek_video.c Tue Dec 28 00:49:21 2010 +0000
+++ b/sys/dev/usb/auvitek_video.c Tue Dec 28 04:02:33 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: auvitek_video.c,v 1.1 2010/12/27 15:42:11 jmcneill Exp $ */
+/* $NetBSD: auvitek_video.c,v 1.2 2010/12/28 04:02:33 jmcneill Exp $ */
/*-
* Copyright (c) 2010 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: auvitek_video.c,v 1.1 2010/12/27 15:42:11 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: auvitek_video.c,v 1.2 2010/12/28 04:02:33 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -470,7 +470,7 @@
au8522_set_input(sc->sc_au8522, vinput, ainput);
- /* XXX HVR-950Q specific */
+ /* XXX HVR-850/950Q specific */
r = auvitek_read_1(sc, AU0828_REG_GPIO1_OUTEN);
if (ainput == AU8522_AINPUT_NONE)
r |= 0x10;
diff -r e97301fb0b47 -r b6d74c283bc5 sys/dev/usb/auvitekvar.h
--- a/sys/dev/usb/auvitekvar.h Tue Dec 28 00:49:21 2010 +0000
+++ b/sys/dev/usb/auvitekvar.h Tue Dec 28 04:02:33 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: auvitekvar.h,v 1.1 2010/12/27 15:42:11 jmcneill Exp $ */
+/* $NetBSD: auvitekvar.h,v 1.2 2010/12/28 04:02:33 jmcneill Exp $ */
/*-
* Copyright (c) 2010 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -43,6 +43,7 @@
struct auvitek_softc;
enum auvitek_board {
+ AUVITEK_BOARD_HVR_850,
AUVITEK_BOARD_HVR_950Q,
};
Home |
Main Index |
Thread Index |
Old Index