Subject: kern/36493: auich(4) multichannel support
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <arc@chem.anrb.ru>
List: netbsd-bugs
Date: 06/15/2007 07:25:00
>Number:         36493
>Category:       kern
>Synopsis:       auich(4) multichannel support
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 15 07:25:00 +0000 2007
>Originator:     Arcady Antipin
>Release:        4.99.9
>Organization:
>Environment:
NetBSD home2 4.99.9 NetBSD 4.99.9 (GEN_ACPI_SML.4.99.9) #4: Wed May 16 02:56:30 YEKST 2007  root@home2:/home/arc/sys-homemade/kernel/compile/GEN_ACPI_SML.4.99.9 i386
>Description:
I can't change number of playing channels by audioctl
>How-To-Repeat:
You should have auich(4) device in system.
Try:
audioctl -w play.channels=6

>Fix:
patch: /usr/src/sys/dev/pci/auich.c 
from:
                        if (sc->sc_spdif)
                                index = auconv_set_converter(sc->sc_audio_formats,
                                    AUICH_AUDIO_NFORMATS, mode, p, TRUE, fil);

to:
                        if (!sc->sc_spdif)
                                index = auconv_set_converter(sc->sc_audio_formats,
                                    AUICH_AUDIO_NFORMATS, mode, p, TRUE, fil);