summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeanna Phillips <deanna@cvs.openbsd.org>2007-11-16 20:36:26 +0000
committerDeanna Phillips <deanna@cvs.openbsd.org>2007-11-16 20:36:26 +0000
commit5613743e47de9833d74e42d181433dd9ef3f5f90 (patch)
treea781444553be9b48faf00961904e31b5a6f16cfd
parent8e3ac68e6a6ec1d9b7f20da1b6b725cdcd29521f (diff)
No need to mention which codec is being used if there's only one.
-rw-r--r--sys/dev/pci/azalia.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/pci/azalia.c b/sys/dev/pci/azalia.c
index 7a4e06bf377..fa675b09e9e 100644
--- a/sys/dev/pci/azalia.c
+++ b/sys/dev/pci/azalia.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: azalia.c,v 1.42 2007/11/14 22:51:37 deanna Exp $ */
+/* $OpenBSD: azalia.c,v 1.43 2007/11/16 20:36:25 deanna Exp $ */
/* $NetBSD: azalia.c,v 1.20 2006/05/07 08:31:44 kent Exp $ */
/*-
@@ -693,14 +693,16 @@ azalia_attach_intr(struct device *self)
/* Use the first audio codec */
az->codecno = c;
- printf("%s: ", XNAME(az));
+ printf("%s: codec[s]: ", XNAME(az));
for (i = 0; i < az->ncodecs; i++) {
azalia_print_codec(&az->codecs[i]);
if (i < az->ncodecs - 1)
printf(", ");
}
- printf(" codecs; using ");
- azalia_print_codec(&az->codecs[az->codecno]);
+ if (az->ncodecs > 1) {
+ printf(", using ");
+ azalia_print_codec(&az->codecs[az->codecno]);
+ }
printf("\n");
if (azalia_stream_init(&az->pstream, az, az->nistreams + 0,