diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2009-05-08 16:12:24 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2009-05-08 16:12:24 +0000 |
commit | 18096bbb5e27571ca97c3def566594468f311148 (patch) | |
tree | 67f384dfb19042d637e2d74ac1c978921cd93647 /sys | |
parent | f6d3e71497d8cf136d7e7a35de833d69766d6621 (diff) |
print card model, the number of inputs and the number of outputs
when the device attaches
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/envy.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/pci/envy.c b/sys/dev/pci/envy.c index b96560c204c..094021d92d9 100644 --- a/sys/dev/pci/envy.c +++ b/sys/dev/pci/envy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: envy.c,v 1.24 2009/05/08 16:07:26 ratchov Exp $ */ +/* $OpenBSD: envy.c,v 1.25 2009/05/08 16:12:23 ratchov Exp $ */ /* * Copyright (c) 2007 Alexandre Ratchov <alex@caoua.org> * @@ -930,13 +930,12 @@ envyattach(struct device *parent, struct device *self, void *aux) subid = pci_conf_read(sc->pci_pc, sc->pci_tag, PCI_SUBVEND_0); sc->card = sc->isht ? envy_cards_ht : envy_cards; while (sc->card->subid != subid) { - if (sc->card->subid == 0) { - printf("%s: unknown card\n", DEVNAME(sc)); + if (sc->card->subid == 0) break; - } sc->card++; } - DPRINTF("%s: type=%s\n", DEVNAME(sc), sc->card->name); + printf("%s: %s, %u inputs, %u outputs\n", DEVNAME(sc), + sc->card->name, sc->card->nich, sc->card->noch); envy_reset(sc); sc->audio = audio_attach_mi(&envy_hw_if, sc, &sc->dev); } |