Module Name: src Committed By: jmcneill Date: Fri Aug 5 20:33:17 UTC 2011
Modified Files: src/sys/dev/pci: coram.c Log Message: return status from demod instead of 0, and don't ignore errors when setting demod parameters To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/dev/pci/coram.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/pci/coram.c diff -u src/sys/dev/pci/coram.c:1.2 src/sys/dev/pci/coram.c:1.3 --- src/sys/dev/pci/coram.c:1.2 Thu Aug 4 22:25:08 2011 +++ src/sys/dev/pci/coram.c Fri Aug 5 20:33:17 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: coram.c,v 1.2 2011/08/04 22:25:08 jmcneill Exp $ */ +/* $NetBSD: coram.c,v 1.3 2011/08/05 20:33:17 jmcneill Exp $ */ /* * Copyright (c) 2008, 2011 Jonathan A. Kollasch @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: coram.c,v 1.2 2011/08/04 22:25:08 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: coram.c,v 1.3 2011/08/05 20:33:17 jmcneill Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -670,15 +670,18 @@ KASSERT(sc->sc_tuner != NULL); mt2131_tune_dtv(sc->sc_tuner, params); KASSERT(sc->sc_demod != NULL); - cx24227_set_modulation(sc->sc_demod, params->u.vsb.modulation); - - return 0; /* XXX */ + return cx24227_set_modulation(sc->sc_demod, params->u.vsb.modulation); } static fe_status_t coram_dtv_get_status(void *cookie) { - return 0; + struct coram_softc *sc = cookie; + + if (sc->sc_demod == NULL) + return ENXIO; + + return cx24227_get_dtv_status(sc->sc_demod);; } static uint16_t