From nobody@FreeBSD.org  Fri Jan 25 08:55:13 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 7926816A417
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 25 Jan 2008 08:55:13 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 6EF9213C447
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 25 Jan 2008 08:55:13 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m0P8raTa033754
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 25 Jan 2008 08:53:36 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m0P8ra0e033753;
	Fri, 25 Jan 2008 08:53:36 GMT
	(envelope-from nobody)
Message-Id: <200801250853.m0P8ra0e033753@www.freebsd.org>
Date: Fri, 25 Jan 2008 08:53:36 GMT
From: Dominic Fandrey <kamikaze@bsdforen.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [releng_7][regression] snd_maestro only works after reload
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         119973
>Category:       kern
>Synopsis:       [sound] [snd_maestro] [regression] snd_maestro only works after reload
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-multimedia
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 25 09:00:04 UTC 2008
>Closed-Date:    
>Last-Modified:  Mon Jul 27 09:04:36 UTC 2009
>Originator:     Dominic Fandrey
>Release:        RELENG_7
>Organization:
private
>Environment:
FreeBSD homeKamikaze.norad 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #5: Thu Jan 24 10:48:11 CET 2008     root@homeKamikaze.norad:/usr/obj/VECTRA-7/i386/usr/src/sys/VECTRA-7  i386
>Description:
The problem appeared after I csupped the latest RELENG_7 sources built
them yesterday. The previous build ~1 month old didn't have this problem.

When I boot the machine with snd_maestro_load="yes" in my loader.conf
audio autput only gets out as very silent noise. I have to turn my
amplifier volume up to a significant degree in order to distinguish it
from silence. If I kldunload the driver and kldload it again, the sound
works fine.

The soundcard is a Terratec SoundSystem DMX:
pcm0: <ESS Technology Maestro-2E> port 0x5400-0x54ff irq 11 at device 11.0 on pci2
pcm0: [ITHREAD]
pcm0: <SigmaTel STAC9704 AC97 Codec>
pcm0: agg_wrcodec() RW_DONE timed out.

After the second load the timeout does not occur. It reappears during
shutdown after all hard disks have been synced, right before the power
is turned off, so I'm not entirely certain it's the exact same message.
>How-To-Repeat:
Just boot up with an affected sound card. Whichever models might be
affected, I have no idea.
>Fix:


>Release-Note:
>Audit-Trail:

From: Dominic Fandrey <kamikaze@bsdforen.de>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: i386/119973: [releng_7][regression] snd_maestro only works after
 reload
Date: Sat, 26 Jan 2008 20:10:51 +0100

 A little correction is necessary. The line:
 
 pcm0: agg_wrcodec() RW_DONE timed out.
 
 only appears upon unloading the module.
Responsible-Changed-From-To: freebsd-i386->freebsd-multimedia 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Jan 28 07:44:22 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer(s). 

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

From: Dominic Fandrey <LoN_Kamikaze@gmx.de>
To: bug-followup@FreeBSD.org, kamikaze@bsdforen.de
Cc:  
Subject: Re: kern/119973: [snd_maestro] snd_maestro only works after reload
 (regression)
Date: Sat, 09 Feb 2008 08:13:27 +0100

 I've been looking weather there have been any changes in CVS, but the last 
 version of snd_maestro.c was commited at a time when the driver still worked 
 faultlessly for me. I am even listed as the person who successfully tested the 
 latest change.
 
 Anyway, all I can conclude is that it's a change somewhere else in the sound 
 framework that causes my current problems. One that is not specific to maestro.

From: Dominic Fandrey <LoN_Kamikaze@gmx.de>
To: bug-followup@FreeBSD.org, kamikaze@bsdforen.de, 
 freebsd-multimedia@freebsd.org
Cc:  
Subject: Re: kern/119973: [snd_maestro] snd_maestro only works after reload
 (regression)
Date: Fri, 15 Feb 2008 08:37:59 +0100

 I've just rebuilt RELENG_7. The problem persists. I hope this is not going 
 into the release.

From: Greg Miller <gmiller@classic-games.com>
To: bug-followup@FreeBSD.org, kamikaze@bsdforen.de
Cc:  
Subject: Re: kern/119973: [snd_maestro] snd_maestro only works after reload
 (regression)
Date: Sun, 24 Feb 2008 05:46:59 -0600

 Sounds similar to, yet not the same as, a problem I posted about on 
 freebsd-stable shortly before 6.3 was released. My Maestro-2E generates 
 lots of "agg_rdcodec() RW_DONE timed out." messages on boot. Unloading 
 and reloading the module doesn't help me. Nobody really seemed to know 
 what caused it, and it persists in RELENG_6.
 

From: Dominic Fandrey <kamikaze@bsdforen.de>
To: bug-followup@FreeBSD.org, kamikaze@bsdforen.de
Cc:  
Subject: Re: kern/119973: [snd_maestro] snd_maestro only works after reload
 (regression)
Date: Mon, 03 Mar 2008 21:54:13 +0100

 I've been digging and I cannot find any cause. In the time frame the problem 
 showed up, there have been no changes. I will, upon my next opportunity, try 
 the card in another machine. Maybe a change /somewhere/ in the kernel 
 triggered a bug in a certain hardware-combination.
>Unformatted:
