From 655c2002db213f0c25a09a7e50b6a7119e2cc64a Mon Sep 17 00:00:00 2001 From: kent Date: Sun, 11 Jun 2006 07:45:18 +0000 Subject: [PATCH] If the codec supports for modem, print that we support for no modem explicitly. --- sys/dev/pci/azalia.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sys/dev/pci/azalia.c b/sys/dev/pci/azalia.c index 6ad00c6c0405..e3b027361fc7 100644 --- a/sys/dev/pci/azalia.c +++ b/sys/dev/pci/azalia.c @@ -1,4 +1,4 @@ -/* $NetBSD: azalia.c,v 1.23 2006/06/09 16:56:30 kent Exp $ */ +/* $NetBSD: azalia.c,v 1.24 2006/06/11 07:45:18 kent Exp $ */ /*- * Copyright (c) 2005 The NetBSD Foundation, Inc. @@ -49,7 +49,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: azalia.c,v 1.23 2006/06/09 16:56:30 kent Exp $"); +__KERNEL_RCSID(0, "$NetBSD: azalia.c,v 1.24 2006/06/11 07:45:18 kent Exp $"); #include #include @@ -940,10 +940,13 @@ azalia_codec_init(codec_t *this) if (COP_FTYPE(result) == COP_FTYPE_AUDIO) { this->audiofunc = n + i; break; /* XXX multiple audio functions? */ + } else if (COP_FTYPE(result) == COP_FTYPE_MODEM) { + aprint_normal("%s: codec[%d]: No support for modem function groups", + XNAME(this->az), addr); } } if (this->audiofunc < 0) { - aprint_error("%s: codec[%d]: No audio functions\n", + aprint_error("%s: codec[%d]: No audio function groups\n", XNAME(this->az), addr); return -1; }