From nobody@FreeBSD.org  Sat Feb 21 19:01:55 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 19BA316A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 21 Feb 2004 19:01:55 -0800 (PST)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 148EA43D1D
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 21 Feb 2004 19:01:55 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i1M31s72099003
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 21 Feb 2004 19:01:54 -0800 (PST)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.10/8.12.10/Submit) id i1M31sfY099002;
	Sat, 21 Feb 2004 19:01:54 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200402220301.i1M31sfY099002@www.freebsd.org>
Date: Sat, 21 Feb 2004 19:01:54 -0800 (PST)
From: Steven S <steven@403forbidden.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: /dev/mixer broken with ESS Maestro-2E 
X-Send-Pr-Version: www-2.3

>Number:         63204
>Category:       kern
>Synopsis:       [sound] /dev/mixer broken with ESS Maestro-2E (still on 5.4)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-multimedia
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 21 19:10:16 PST 2004
>Closed-Date:    
>Last-Modified:  Thu Apr 17 03:10:04 UTC 2008
>Originator:     Steven S
>Release:        5.2.1-RC2
>Organization:
n/a
>Environment:
FreeBSD 5.2.1-RC2 FreeBSD 5.2.1-RC2 #0: Sat Feb 21 11:39:46 EST 2004 root@:/usr/obj/usr/src/sys/GENERIC i386
>Description:
kldload snd_driver (or kldload snd_maestro if your feeling less froggy)

errors generated:

pcm0: <ESS Technology Maestro-2E> port 0xfc00-0xfcff irq 11 at device 12.0 on pci0
pcm0: agg_rdcodec() RW_DONE timed out.
pcm0: agg_rdcodec() PROGLESS timed out.
pcm0: agg_rdcodec() RW_DONE timed out.
pcm0: agg_wrcodec() PROGLESS timed out.
<snip>
pcm0: <Asahi Kasei AK4540 AC97 Codec>
pcm0: agg_rdcodec() PROGLESS timed out.
pcm0: agg_rdcodec() RW_DONE timed out.
pcm0: ac97 codec reports dac not ready.
pcm0: agg_wrcodec() PROGLESS timed out.
pcm0: agg_wrcodec() PROGLESS timed out.

$ mixer
Mixer rec           is currently set to 0:0
Recording source: mic

$

no other devices listed

$ pciconf -l -v 

pcm0@pci0:12:0: class=0x040100 card=0x00011179 chip=0x1978125d rev=0x10 hdr=0x00
vendor = 'ESS Technology'
device = 'ES1978 Maestro-2E Audiodrive, ES1970 Canyon3D'
class = multimedia
subclass = audio

any playback of audio results in no volume, specifically tested was audio cd's in the cdrom drive and mp3's.

this is a fresh from ISO install of 5.2.1-RC2 downloaded from ftp.freebsd.org on 19 Feb 2004. The snd driver worked fine under previous version. A clean install of 5.1 restored totaly mixer functionality.


>How-To-Repeat:
install 5.2.1-RC2 booting GENERIC with Maestro-2E sound card,
specifically Toshiba Satellite 2595XDVD laptop.
>Fix:
nuke and pave. Install 5.1
>Release-Note:
>Audit-Trail:

From: "Nicholas Paufler" <npaufler@incentre.net>
To: <freebsd-gnats-submit@FreeBSD.org>, <steven@403forbidden.net>
Cc:  
Subject: Re: misc/63204: /dev/mixer broken with ESS Maestro-2E
Date: Fri, 27 Feb 2004 13:25:45 -0700

 I can confirm that I get the exact same behavior with a fresh install of
 5.2.1-RELEASE on a Toshiba Satellite 2590CDT with the same sound chipset.
 The card is detected as pcm0, I have the correct /dev/dsp* devices, but
 mixer only reports a recording device and nothing for playback.
 
 dmesg | grep pcm
 
 pcm0: <ESS Technology Maestro-2E> port 0xfc00-0xfcff irq 11 at device 12.0
 on pci0
 pcm0: agg_rdcodec() RW_DONE timed out.
 pcm0: agg_rdcodec() PROGLESS timed out.
 pcm0: agg_rdcodec() RW_DONE timed out.
 ---
 Duplicate lines snipped
 ----
 pcm0: agg_wrcodec() PROGLESS timed out.
 pcm0: agg_rdcodec() PROGLESS timed out.
 pcm0: agg_rdcodec() RW_DONE timed out.
 pcm0: agg_wrcodec() PROGLESS timed out.
 pcm0: <Asahi Kasei AK4540 AC97 Codec>
 pcm0: agg_rdcodec() PROGLESS timed out.
 pcm0: agg_rdcodec() RW_DONE timed out.
 pcm0: ac97 codec reports dac not ready
 pcm0: agg_wrcodec() PROGLESS timed out.
 pcm0: agg_wrcodec() PROGLESS timed out.
 
 ---
 Nicholas Paufler
 Systems Administrator
 The Internet Centre 
 

From: Kenneth Andresen <kenneth@cancun.net>
To: freebsd-gnats-submit@FreeBSD.org, steven@403forbidden.net
Cc:  
Subject: Re: misc/63204: /dev/mixer broken with ESS Maestro-2E
Date: Tue, 09 Mar 2004 18:52:01 -0600

 Seems to be fixed in FreeBSD5.2.1 - the sound is working without any
 problems on my Compaq Armada E500 which uses ESS Maestro-2E for sound.
 

From: John <strgout@unixjunkie.com>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: misc/63204: /dev/mixer broken with ESS Maestro-2E
Date: Sat, 17 Apr 2004 21:38:02 -0500

 i just wanted to say i have a satellite 4090xdvd (toshiba) that is having
 the same problem. I'm running current and the problem does not seem to be fixed
 Same errors as above btw.
 
 FreeBSD laptopwi.unixjunkie.com 5.2-CURRENT FreeBSD 5.2-CURRENT #6: Sun Mar 28 20:26:00 GMT 2004     root@localhost:/usr/obj/usr/src/sys/LAPTOP  i386
 
 
 i'm updating to current as of today to test this out again.
 

From: John <strgout@unixjunkie.com>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: misc/63204: /dev/mixer broken with ESS Maestro-2E
Date: Mon, 19 Apr 2004 23:28:57 -0500

 yea, same problem.
 
 
 pcm0: <ESS Technology Maestro-2E> port 0xfc00-0xfcff irq 11 at device 12.0 on pci0
 pcm0: Reserved 0x100 bytes for rid 0x10 type 4 at 0xfc00
 pcm0: agg_rdcodec() RW_DONE timed out.
 pcm0: agg_rdcodec() PROGLESS timed out.
 pcm0: agg_rdcodec() RW_DONE timed out.
 pcm0: agg_wrcodec() PROGLESS timed out.
 pcm0: agg_rdcodec() PROGLESS timed out.
 pcm0: agg_rdcodec() RW_DONE timed out.
 pcm0: agg_wrcodec() PROGLESS timed out.
 pcm0: agg_rdcodec() PROGLESS timed out.
 pcm0: agg_rdcodec() RW_DONE timed out.
 pcm0: agg_wrcodec() PROGLESS timed out.
 pcm0: agg_rdcodec() PROGLESS timed out.
 pcm0: agg_rdcodec() RW_DONE timed out.
 pcm0: agg_wrcodec() PROGLESS timed out.
 pcm0: agg_rdcodec() PROGLESS timed out.
 pcm0: agg_rdcodec() RW_DONE timed out.
 pcm0: agg_wrcodec() PROGLESS timed out.
 pcm0: agg_rdcodec() PROGLESS timed out.
 pcm0: agg_rdcodec() RW_DONE timed out.
 pcm0: agg_wrcodec() PROGLESS timed out.
 pcm0: agg_rdcodec() PROGLESS timed out.
 pcm0: agg_rdcodec() RW_DONE timed out.
 pcm0: agg_wrcodec() PROGLESS timed out.
 pcm0: agg_rdcodec() PROGLESS timed out.
 pcm0: agg_rdcodec() RW_DONE timed out.
 pcm0: agg_wrcodec() PROGLESS timed out.
 pcm0: agg_rdcodec() PROGLESS timed out.
 pcm0: agg_rdcodec() RW_DONE timed out.
 pcm0: agg_wrcodec() PROGLESS timed out.
 pcm0: agg_rdcodec() PROGLESS timed out.
 pcm0: agg_rdcodec() RW_DONE timed out.
 pcm0: agg_wrcodec() PROGLESS timed out.
 pcm0: <Asahi Kasei AK4540 AC97 Codec>
 pcm0: agg_rdcodec() PROGLESS timed out.
 pcm0: agg_rdcodec() RW_DONE timed out.
 pcm0: ac97 codec reports dac not ready
 pcm0: agg_wrcodec() PROGLESS timed out.
 pcm0: agg_wrcodec() PROGLESS timed out.
 pcm0: [GIANT-LOCKED]
 
 just a FYI i have tried booting in safe mode, and i have made a new kernel
 with no smp/apic support. None of that helped.

From: John <strgout@unixjunkie.com>
To: freebsd-current@freebsd.org
Cc: freebsd-gnats-submit@freebsd.org, steven@403forbidden.net
Subject: Re: misc/63204: /dev/mixer broken with ESS Maestro-2
Date: Tue, 15 Jun 2004 16:16:20 -0500

 i've started working on this a little more and seem to have found a pattern.
 First off 4.10 has all the same problems that 5.2.1 and current have. I have not
 tried 4.9, but someone told me they had the same problems with 4.9.
 This is what i've noticed when i boot 4.8 kernel and run a 4.10 userland sound
 works fine. I did notice this in the dmesg though which is different from the
 others.
 
 pcm0: <ESS Technology Maestro-2E> port 0xfc00-0xfcff irq 11 at device 12.0 on pci0
 pcm0: agg_rdcodec() RW_DONE timed out.
 -> pcm0: will perform cold reset. <-
 pcm0: <Asahi Kasei AK4540 ac97 codec>
 
 
 Note the will perform cold reset. I don't see this with 4.10 or current and
 from looking at the bugreport no one else does either.
 i tried removing this if statment (but nothing between it) from maestro.c
 
 /* if (bus_space_read_1(ess->st, ess->sh, PORT_CODEC_STAT)
             & CODEC_STAT_MASK) { */
 blablabl
 
 }
 
 but it still didn't work with 4.10. Well maybe this is enough info for someone
 with a little more clue to look into this. Also could someone assign this to 
 sound@ assuming that is the correct place for this.
Responsible-Changed-From-To: freebsd-bugs->sound 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Aug 30 21:32:43 GMT 2004 
Responsible-Changed-Why:  
Assign to sound alias. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=63204 

From: John <strgout@unixjunkie.com>
To: freebsd-gnats-submit@FreeBSD.org
Cc: steven@403forbidden.net
Subject: Re: kern/63204: [sound] /dev/mixer broken with ESS Maestro-2E [5.2.1]
Date: Wed, 15 Sep 2004 12:26:13 -0500

 quick update, i'm running 5.3-beta4 still same issue.
 Laptop is now dual booted. 
 XP = sound works
 FreeBSD 5.3-Beta4 != works.
 
 Same error in dmesg.

From: Natanael Copa <n@tanael.org>
To: steven@403forbidden.net, bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/63204: [sound] /dev/mixer broken with ESS Maestro-2E
	[still on 5.3]
Date: Wed, 25 May 2005 13:06:52 +0200

 I would like to report that this is still a problem on 5.4
 
 Laptop is a Toshiba Satellite 4030CDS.
 
 lotus# uname -a
 FreeBSD lotus 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May  8 10:21:06 UTC 2005    root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
 lotus# cat /dev/sndstat
 FreeBSD Audio Driver (newpcm)
 Installed devices:
 pcm0: <ESS Technology Maestro-2E> at I/O port 0xfc00 irq 11 kld snd_maestro (4p/0r/0v channels duplex default)
 
Adding to audit trail from misfiled PR kern/86136:

Date: Wed, 14 Sep 2005 17:42:41 -0400 (EDT)
From: "Steven S." <steven@403forbidden.net>

 Confirmed this is still a problem. I think since this card is reported as 
 supported the severity should be increased from non-critical and the 
 priority higher.
 
 same data as before so i wont repeat all that
 
 build is fresh cvsup of 5.4-STABLE

From: Scott D Friedemann <scott@friedemann.us>
To: bug-followup@FreeBSD.org, steven@403forbidden.net
Cc:  
Subject: Re: kern/63204: [sound] /dev/mixer broken with ESS Maestro-2E (still
 on 5.4)
Date: Fri, 02 Dec 2005 21:07:20 -0600

 I would like to report that this is still a problem on 6.0.
 
 My laptop is a Toshiba Satellite 4100XDVD.
 
 Same symptoms as are in the bug report.
 
 It worked in 5.1 or 5.2.
 
Adding to audit trail from misfiled PR kern/96211:

Date: Sun, 23 Apr 2006 12:56:42 -0500
From: Scott D Friedemann <scott@friedemann.us>

 Progress on 6.1 RC1, but no cigar, yet.
 
 Previous to 6.1 RC1, the output of mixer was:
 	Mixer rec      is currently set to   0:0
 
 Now I get all of the devices
 	Mixer vol      is currently set to  98:98
 	Mixer pcm      is currently set to  75:75
 	Mixer lne     is currently set to  75:75
 	Mixer mic      is currently set to   0:0
 	Mixer cd       is currently set to  75:75
 	Mixer rec      is currently set to   0:0
 	Mixer igain    is currently set to   0:0
 	Recording source: mic
 
 There is no sound, though.
 (Booting a Linux live CD does give sound, so the hardware does work.)
 
 No other changes noted, but I thought it was worth mentioning.
 
 Scott

From: Ben Slater <bslater@comtekmail.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/63204: [sound] /dev/mixer broken with ESS Maestro-2E (still
 on 5.4)
Date: Wed, 16 Apr 2008 22:44:57 -0400

 I'm getting the same results as everyone else using version 7.0.  I'm 
 using a Toshiba Portege 7020CT.  Sound worked when Windows 98 was 
 installed on it. 
 
 The output from dmesg | grep pcm is the same as what's reported above.
>Unformatted:
