From thomas@cuivre.fr.eu.org  Tue Jan  8 11:12:09 2002
Return-Path: <thomas@cuivre.fr.eu.org>
Received: from melchior.cuivre.fr.eu.org (melchior.enst.fr [137.194.161.6])
	by hub.freebsd.org (Postfix) with ESMTP id 33DBE37B447
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  8 Jan 2002 11:11:54 -0800 (PST)
Received: from melusine.cuivre.fr.eu.org (melusine.enst.fr [137.194.160.34])
	by melchior.cuivre.fr.eu.org (Postfix) with ESMTP id 966687C7E
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  8 Jan 2002 20:11:52 +0100 (CET)
Received: by melusine.cuivre.fr.eu.org (Postfix, from userid 1000)
	id 6F50470; Tue,  8 Jan 2002 20:11:51 +0100 (CET)
Message-Id: <20020108191151.6F50470@melusine.cuivre.fr.eu.org>
Date: Tue,  8 Jan 2002 20:11:51 +0100 (CET)
From: Thomas Quinot <thomas@cuivre.fr.eu.org>
Reply-To: Thomas Quinot <thomas@cuivre.fr.eu.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: ICH (82801AA) cannot be used for mono recording
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         33707
>Category:       kern
>Synopsis:       [sound] ICH (82801AA) cannot be used for mono recording
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-multimedia
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 08 11:20:01 PST 2002
>Closed-Date:    Sun Sep 11 13:07:27 GMT 2005
>Last-Modified:  Sun Sep 11 13:07:27 GMT 2005
>Originator:     Thomas Quinot
>Release:        FreeBSD 4.5-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD melusine.cuivre.fr.eu.org 4.5-PRERELEASE FreeBSD 4.5-PRERELEASE #4: Fri Dec 28 00:29:52 CET 2001 root@melusine.cuivre.fr.eu.org:/usr/obj/usr/src/sys/MELUSINE i386

$ cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: <Intel 82801AA (ICH)> at io 0xd800, 0xdc80 irq 10 bufsz 16384 (1p/2r/0v channels duplex default)
        [pcm0:play:0]: speed 22050, format 00000010, flags 00000000
        interrupts 0, underruns 0, ready 0
        {hardware} <- feeder_monotostereo16(10000010 <- 00000010) <- feeder_root(00000010) <- {userland}
        [pcm0:record:0]: speed 22050, format 00000010, flags 00000000
        interrupts 0, overruns 0, hfree 16384, sfree 131072
        {hardware} -> feeder_root(00000010) -> {userland}
        [pcm0:record:1]: speed 0, format 00000000, flags 00000000
        interrupts 0, overruns 0, hfree 16384, sfree 0
        {hardware} -> feeder_root(00000000) -> {userland}

>Description:
	No matter what an application requests through the use of
	SNDCTL_DSP_STEREO, an ICH DSP will always output stereo data.

	Apparently, ichchan_setformat is a no-op.

	This breaks various sound recording utilities, as well as ohphone
	(H.323 IP telephony application).
>How-To-Repeat:
	Install audio/wavplay
	wavrec -M foo.wav -> the file is supposed to be mono
	wavplay -M foo.wav -> half-speed output
	wavplay -S foo.wav -> correct ouput => the file is actually stereo
>Fix:
	None so far.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->sound@freebsd.org 
Responsible-Changed-By: orion 
Responsible-Changed-When: Wed Jan 9 09:15:24 PST 2002 
Responsible-Changed-Why:  
Over to the sound people 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=33707 

From: Thomas Quinot <thomas@cuivre.fr.eu.org>
To: bug-followup@freebsd.org
Cc:  
Subject: kern/33707: [hodson@icir.org: Re: ohphone, snd_pcm/snd_ich, 5.0-current*]
Date: Tue, 22 Jan 2002 23:40:11 +0100

 Orion provided the following further insight on this issue:
 
 ----- Forwarded message from Orion Hodson <hodson@icir.org> -----
 
 Subject: Re: ohphone, snd_pcm/snd_ich, 5.0-current* 
 In-Reply-To: Message from Thomas Quinot <thomas@cuivre.fr.eu.org> 
    of "Wed, 09 Jan 2002 17:54:42 +0100." <20020109175442.A4646@melusine.cuivre.fr.eu.org> 
 Date: Wed, 09 Jan 2002 09:32:06 -0800
 From: Orion Hodson <hodson@icir.org>
 Cc: freebsd-multimedia@freebsd.org
 
 [...]
 
 The ICH chipsets have a fixed format: stereo, linear16.  The OS on these 
 systems is supposed to handle conversion to other formats.  Currently, the 
 feederchain builder that freebsd uses is broken for recording channels, so 
 recording is limited to h/w native formats.
 
 ----- End forwarded message -----
 
 -- 
     Thomas.Quinot@Cuivre.FR.EU.ORG
Responsible-Changed-From-To: sound@freebsd.org->sound 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Aug 6 18:31:20 GMT 2005 
Responsible-Changed-Why:  
Canonicalize assignment. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=33707 
State-Changed-From-To: open->closed 
State-Changed-By: netchild 
State-Changed-When: Sun Sep 11 13:07:08 GMT 2005 
State-Changed-Why:  
This should be fixed in a recent -current. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=33707 
>Unformatted:
