From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Clemens Ladisch" Subject: Re: resetting an audio device? Date: Thu, 20 Sep 2007 08:47:19 +0200 Message-ID: <1190270839.2316.1211624329@webmail.messagingengine.com> References: <46F1B942.8000102@popdial.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by alsa0.perex.cz (Postfix) with ESMTP id B8ED0246CB for ; Thu, 20 Sep 2007 08:47:19 +0200 (CEST) Content-Disposition: inline In-Reply-To: <46F1B942.8000102@popdial.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: william estrada , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org william estrada wrote: > I got my alsa player code to work. Now I need to figure out how to > reset the audio device? I don't want to close the device, just recycle > it. When the device is not running (i.e., after calling snd_pcm_drop()), call snd_pcm_hw_free() to free the configuration; then you can set a new configuration with the snd_pcm_hw_params* functions. HTH Clemens