From mboxrd@z Thu Jan 1 00:00:00 1970 From: Clemens Ladisch Subject: Re: Problem with "set_period_size" Date: Thu, 23 Feb 2012 15:59:44 +0100 Message-ID: <4F465460.4020106@ladisch.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by alsa0.perex.cz (Postfix) with ESMTP id 32F2710419D for ; Thu, 23 Feb 2012 15:57:06 +0100 (CET) Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 3A07920A40 for ; Thu, 23 Feb 2012 09:57:03 -0500 (EST) In-Reply-To: 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: Alicia Romero Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org Alicia Romero wrote: > stream->pb_frames = (snd_pcm_uframes_t) 640; > snd_pcm_hw_params_set_period_size (stream->pb_pcm, params, > &stream->pb_frames, NULL); You forgot to check the return value. I'd guess it's -EINVAL. Regards, Clemens