Subject: kern/16047: cmpci.c: sample rate of 44100 Hz sounds screwed after using 48000 Hz
To: None <gnats-bugs@gnats.netbsd.org>
From: None <christianbiere@gmx.de>
List: netbsd-bugs
Date: 03/25/2002 03:40:52
>Number: 16047
>Category: kern
>Synopsis: cmpci.c: sample rate of 44100 Hz sounds screwed after using 48000 Hz
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Mar 25 03:41:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Christian Biere
>Release: 1.5ZA
>Organization:
>Environment:
NetBSD 1.5ZA (GENERIC) #0: Tue Feb 19 16:45:49 EST 2002 root@zathras.wasabisystems.com:/big/obj/sys/arch/i386/compile/GENERIC
>Description:
After setting play.rate to 48000, 44100 will sound screwed as if 48000 is still used. It happens only with spdif output enabled. (1.5ZB is affected aswell.)
>How-To-Repeat:
mixerctl -w playback.mode=spdif spdif.output.playback=wave
audioctl -w play.rate=48000
Play something explicitly with 44100 Hz. It sounds like the internal sample rate is still set to 48000 Hz.
>Fix:
As a workaround (it switches spdif off):
mixerctl -w playback.mode=dac
audioctl -w play.rate=44100
I guess the problem is in cmpci_set_in_ports() or cmpci_set_out_ports().
>Release-Note:
>Audit-Trail:
>Unformatted: