From: Takashi Iwai Subject: Re: [PATCH] hda_codec: restore control element values during resume Date: Wed, 02 May 2007 12:05:19 +0200 Message-ID: References: <20070429161421.863777B409F@zog.reactivated.net> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (cantor.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 03457243E5 for ; Wed, 2 May 2007 12:05:20 +0200 (CEST) In-Reply-To: <20070429161421.863777B409F@zog.reactivated.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Daniel Drake Cc: alsa-devel@alsa-project.org, perex@suse.cz List-Id: alsa-devel@alsa-project.org At Sun, 29 Apr 2007 17:14:21 +0100 (BST), Daniel Drake wrote: > > After resume from suspend-to-RAM, there is no sound output from my Intel HDA > hardware: > > 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition > Audio Controller (rev 01) > Found in a Dell Inspiron 640m, SigmaTel STAC9200 chip. > > After resuming, sound immediately returns when you adjust the volume one notch > in either direction. I reported this on the ALSA bug tracker (#0002989). > > Further investigation shows that the AC_VERB_SET_AMP_GAIN_MUTE verb is not > being executed during resume, which seems strange. Does other hardware really > store this value during a suspend/resume cycle? Or maybe the volume is > generally controlled through other means on other setups? I'm not entirely > sure what the difference is between kcontrol and kcontrol_new structures, but > I note that there is already some code to restore the values for kcontrol_new > elements. > > I solved the issue with the following patch. Is it correct? The controls should have been restored by snd_hda_resume_ctls() call in stac92xx_resume(), so basically your patch must be suprefluous. Could you check whether this gets called? Takashi