From: Takashi Iwai Subject: Re: Disable conversions Date: Wed, 21 Nov 2007 15:51:57 +0100 Message-ID: References: <20071120005151.GA25276@tango.0pointer.de> 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 mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id E426B24C53 for ; Wed, 21 Nov 2007 16:27:44 +0100 (CET) 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: Jaroslav Kysela Cc: ALSA development , Lennart Poettering List-Id: alsa-devel@alsa-project.org At Wed, 21 Nov 2007 16:16:21 +0100 (CET), Jaroslav Kysela wrote: > > On Wed, 21 Nov 2007, Takashi Iwai wrote: > > > At Wed, 21 Nov 2007 12:40:54 +0100, > > I wrote: > > > > > > At Tue, 20 Nov 2007 01:51:51 +0100, > > > Lennart Poettering wrote: > > > > > > > > 4) If I open an audio device with "plughw:" i can disable the software > > > > resampling that takes place via > > > > "snd_pcm_hw_params_get_rate_resample()". However, there is no > > > > equivalent for disabling the channel number adjustment or the > > > > sample format conversion. This would be very useful in PA however, > > > > since this would allow me to use only the parts of plughw I am > > > > interested in (softvol), and disable all the rest (resampling, > > > > conversion, channel remixing). > > > > > > Hmm.. It's a bit difficult to implement in a clean way. > > > For example, what would be the reason to disable softvol? It's > > > basically irrelevant with the PCM parameters. It's added just because > > > of lack of hardware volume controls. > > > > > > One idea I have is to make an API like > > > > > > snd_pcm_alias_plugin(src, dst); > > > > > > For example, > > > > > > snd_pcm_alias_plugin("softvol", "passthru"); > > I don't like this idea nor implementation much. It will be much better to > design a run-time communication with plugins to change configuration > parameters / behaviour (something like ioctl on opened pcm handle). Or, we may provide a simpler way to change the local configurations dynamically without changing the config file. Change the default configuration to be more selective, e.g. skip softvol if a certain config vaiable is set, or so. Takashi