NetBSD Problem Report #15456
From VM 6.90 under Emacs 20.7.1
Received: (qmail 8667 invoked from network); 1 Feb 2002 17:43:20 -0000
Message-Id: <15450.54196.655542.29190@khemlani.nowhere.org>
Date: Fri, 1 Feb 2002 09:43:16 -0800
From: stephenm@employees.org
Reply-To: stephenm@employees.org
To: gnats-bugs@gnats.netbsd.org
Subject: cmpci not able to do 48kHz sample rate
X-Send-Pr-Version: 3.95
>Number: 15456
>Category: kern
>Synopsis: cmpci not able to do 48kHz sample rate
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Feb 01 17:44:01 +0000 2002
>Closed-Date: Sat Feb 02 11:19:08 +0000 2002
>Last-Modified: Sat Feb 02 11:19:08 +0000 2002
>Originator: Stephen Ma
>Release: NetBSD-current 20020130
>Organization:
People's Front for the correct spelling of the word "Organisation"
>Environment:
System: NetBSD khemlani.nowhere.org 1.5ZA NetBSD 1.5ZA (KHEMLANI) #93: Thu Jan 31 09:10:39 PST 2002 stephenm@khemlani.nowhere.org:/usr/src/sys/arch/i386/compile/KHEMLANI i386
Architecture: i386
Machine: i386
>Description:
When audioctl tries to set the cmpci audio playback rate to 48kHz, the driver
sets the actual rate to 44.1kHz.
>How-To-Repeat:
08:34:59 khemlani:pci$ audioctl -w play.rate=48000
play.rate: -> 44100
08:35:09 khemlani:pci$ ident /v1/netbsd/src/sys/dev/pci/cmpci.c
/v1/netbsd/src/sys/dev/pci/cmpci.c:
$NetBSD: cmpci.c,v 1.12 2001/12/27 14:17:04 itohy Exp $
$NetBSD: cmpci.c,v 1.12 2001/12/27 14:17:04 itohy Exp $
>Fix:
--- /v1/netbsd/src/sys/dev/pci/cmpci.c Fri Dec 28 04:01:31 2001
+++ ./cmpci.c Thu Jan 31 09:05:14 2002
@@ -317,7 +317,7 @@
{
int i;
- for (i = 0; i < CMPCI_REG_NUMRATE - 2; i++)
+ for (i = 0; i < CMPCI_REG_NUMRATE - 1; i++)
if (rate <=
(cmpci_rate_table[i].rate+cmpci_rate_table[i+1].rate) / 2)
return i;
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: augustss
State-Changed-When: Sat Feb 2 03:18:48 PST 2002
State-Changed-Why:
Patch applied.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.