From owner-freebsd-multimedia@FreeBSD.ORG Wed Sep 10 10:49:46 2008 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F581106564A for ; Wed, 10 Sep 2008 10:49:46 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by mx1.freebsd.org (Postfix) with ESMTP id 88D7D8FC1C for ; Wed, 10 Sep 2008 10:49:45 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: by nf-out-0910.google.com with SMTP id h3so943587nfh.33 for ; Wed, 10 Sep 2008 03:49:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:cc :subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to:user-agent:sender; bh=4lcJ2f6VYssFNjJmNO1yL4W3lhAiZzSl9zmYz7GHFc4=; b=bqSk9FxQxHSR0EqSp3LC1J4o++2iGXulbX5Wey7zwmEmrbjwdPl5nE344HplXfktvI eDIH6Wa12LZhBsifmgr18j393VIvb3A8DzW1Sr9RB4i8ZPyCK4+v//i/ASR7TZqxUzto 4MjV64iN9NyenoxhAnP3gK6E1Kh9Z+ogqZxZI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent:sender; b=PlAdSWHqAm5BYVJTtSrx0V+bZ3cNNJcyQCKcJCMBVelLvwrR1+cis+NBFYIM1u/Daq UdARfU1SaV0MuStlQY9kBZi8lRZ7jskDmf8MWAbTGaAeLSQlY1R9QVcCGlHJ06MxBVh7 Ji0AdJXhUpWFu0H+ViNuzuxAuthzlBCvnDQVY= Received: by 10.210.46.14 with SMTP id t14mr1332010ebt.0.1221043784318; Wed, 10 Sep 2008 03:49:44 -0700 (PDT) Received: from alpha.local ( [83.144.140.92]) by mx.google.com with ESMTPS id g11sm13888272gve.8.2008.09.10.03.49.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 10 Sep 2008 03:49:43 -0700 (PDT) Received: by alpha.local (Postfix, from userid 1001) id A393611797; Wed, 10 Sep 2008 11:47:10 +0100 (WEST) Date: Wed, 10 Sep 2008 11:47:10 +0100 From: Rui Paulo To: Alexander Motin Message-ID: <20080910104710.GD1988@alpha.local> References: <1219692182.00003969.1219680004@10.7.7.3> <48B30A83.1030206@FreeBSD.org> <20080825204941.GA68247@alpha.local> <48C44BE0.5090500@FreeBSD.org> <20080908205502.GF89070@alpha.local> <48C5952F.5040805@FreeBSD.org> <20080908211715.GH89070@alpha.local> <48C66DDD.2010803@FreeBSD.org> <20080909124811.GA35538@alpha.local> <48C701FA.8010807@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48C701FA.8010807@FreeBSD.org> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: Rui Paulo Cc: freebsd-multimedia@FreeBSD.org, Rui Paulo Subject: Re: snd_hda suspend/resume support X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Sep 2008 10:49:46 -0000 On Wed, Sep 10, 2008 at 02:08:42AM +0300, Alexander Motin wrote: > I have changed suspend/resume sequences a bit. Now I am doing more > complete codec power up on resume. On my system I am able to call > suspend() and then 15 seconds later resume() call successfully restores > the sound after complete HDA controller, bus and codecs. > > If you still have a problem - try to reproduce my experiment using > temporal hack in a last version: > sysctl dev.hdac.0.pindump=100 <= hdac_suspend() > sysctl dev.hdac.0.pindump=101 <= hdac_resume() Now, upon resuming I hear nothing. Doesn't matter if I was playing anything. It's the same behaviour as the old non-patched driver. BTW, when hda starts I hear a "click" on my speakers. Maybe there's something being done in the attach routine not being repeated in the resume routine? -- Rui Paulo