From: Richard Zhao Subject: How to tell user level hardware not support a certain format in a certain sample rate Date: Mon, 23 Feb 2009 15:02:24 +0800 Message-ID: <4e090d470902222302g16a99f5dq77d0d40f6cba855e@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.231]) by alsa0.perex.cz (Postfix) with ESMTP id 37A6F2433E for ; Mon, 23 Feb 2009 08:02:26 +0100 (CET) Received: by rv-out-0506.google.com with SMTP id f9so1723375rvb.0 for ; Sun, 22 Feb 2009 23:02:24 -0800 (PST) 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: alsa-devel List-Id: alsa-devel@alsa-project.org Hi, runtime->hw.rates and runtime->hw.formats indicate the rate and formats hardware can support, so the user level plugins can auto-convert the audio data. But hardware may not support a certain combin of sample rate and format, and will cause hw_parm fail. In such case, plugin auto-convert will not work. How can I let userlevel know the failure conbin, so let auto-convert work? Thanks Richard