From: Takashi Iwai Subject: Re: snd_pcm_hw_params_free() immediately after snd_pcm_hw_params() ??? Date: Sun, 24 Jan 2010 11:29:01 +0100 Message-ID: References: <4B582A0A.8030603@ladisch.de> <4f3252891001231930j55aff4ccme3b3b40323b8cee0@mail.gmail.com> 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 51CCA24388 for ; Sun, 24 Jan 2010 11:29:01 +0100 (CET) In-Reply-To: <4f3252891001231930j55aff4ccme3b3b40323b8cee0@mail.gmail.com> 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: Raymond Yau Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Sun, 24 Jan 2010 11:30:04 +0800, Raymond Yau wrote: > > 2010/1/21 Clemens Ladisch > > > Raymond Yau wrote: > > > Is there any flags in substream which can indicate snd_xxx_hw_params() > > was > > > called at first time since snd_xxx_hw_params() were called many times > > > during OSS emulation (probing the supported rates , channels , .... ) ? > > > > There is no such flag. It is the responsibility of the driver to track > > the resources it has allocated. > > > > If a resource does not depend on the hardware parameters, it might be > > a better idea to allocate/free it in the open/close callbacks. > > > > > > Best regards, > > Clemens > > > > https://bugzilla.redhat.com/show_bug.cgi?id=497739 > > Apr 26 11:20:11 localhost kernel: vortex_adb_addroutes: unending route! 0x40 > Apr 26 11:20:11 localhost kernel: vortex_adb_addroutes: unending route! 0x2060 > Apr 26 11:20:11 localhost kernel: vortex_adb_addroutes: unending route! 0x3641 > Apr 26 11:20:11 localhost kernel: vortex_adb_addroutes: unending route! 0x2101 > Apr 26 11:20:11 localhost kernel: vortex_adb_delroutes: route not found! 0x3641 > Apr 26 11:20:11 localhost kernel: vortex_adb_delroutes: route not found! 0x2101 > Apr 26 11:20:11 localhost kernel: mix ALARM 0 > Apr 26 11:20:11 localhost kernel: vortex_adb_delroutes: route not found! 0x3593 > Apr 26 11:20:11 localhost kernel: mix ALARM 0 > Apr 26 11:20:11 localhost kernel: Vortex: vortex_fifo_setadbctrl fail > Apr 26 11:20:11 localhost kernel: vortex_adb_addroutes: unending route! 0x3642 > Apr 26 11:20:11 localhost kernel: vortex_adb_addroutes: unending route! 0x3743 > Apr 26 11:20:11 localhost kernel: vortex_adb_addroutes: unending route! 0x2201 > Apr 26 11:20:11 localhost kernel: Vortex: vortex_fifo_setadbctrl fail > > > did the suspend/resume cycle call snd_xxx_hw_params() or snd_xxx_hw_free() > when the driver did not support suspend/resume ? No. It's all driver's responsibility. Takashi