From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre-Louis Bossart Subject: Re: [RFC PATCH 3/4] ALSA: core: add report of max dma burst Date: Wed, 08 Jul 2015 19:46:18 +0200 Message-ID: <559D61EA.7030308@linux.intel.com> References: <1436350236-17509-1-git-send-email-pierre-louis.bossart@linux.intel.com> <1436350236-17509-4-git-send-email-pierre-louis.bossart@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by alsa0.perex.cz (Postfix) with ESMTP id 63ABD265862 for ; Wed, 8 Jul 2015 19:46:23 +0200 (CEST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Takashi Iwai Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org >> FIXME: >> 1. this was copy/pasted/edited based on the fifo_size fields, not >> sure why we would need this IOCTL1 > > fifo_size would fit, but it means that it also changes the current > behavior. I don't believe that currently there are many programs > relying on this value, but who knows. I saw a mention of fifo_size in the VIA HDA controller, that's why I went ahead with a different field. The fifo_size could be useful as a max value for the internal hardware delay, when app use the 'delay' field in the status structure they get a very dynamic value that isn't necessarily straightforward to use. > >> 2. we also need the ability to set the actual fifo size, if suppported, >> by the hardware, to negociate the prefetch amount between application >> and driver. By default the default should be max buffering to allow >> for lower power, but for low-latency use cases we may want to reduce >> the amount of prefetching. > > Right. So a hw_parmas field looks suitable for that purpose. That 'set' capability is a lot more complicated, I am really having a hard time with all the constraints for hw_params and how to represent min,max and step values... If anyone is willing to help on that part I wouldn't mind, this is really a part of ALSA I never looked into...