From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jaroslav Kysela Subject: Re: UCM questions Date: Sun, 23 Jan 2011 14:49:03 +0100 (CET) Message-ID: References: <20110121113744.GA18682@sirena.org.uk> <20110121164329.GB6200@opensource.wolfsonmicro.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail1.perex.cz (unknown [212.20.107.53]) by alsa0.perex.cz (Postfix) with ESMTP id 11B4424430 for ; Sun, 23 Jan 2011 14:49:05 +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: pl bossart Cc: alsa-devel@alsa-project.org, Mark Brown , lrg@slimlogic.co.uk List-Id: alsa-devel@alsa-project.org On Fri, 21 Jan 2011, pl bossart wrote: >>> I am fine with a system-specific configuration file for each use case, >>> but if I have to change the defines in alsa-lib it's a bit of a pain. >>> It'll imply branches and specific packages just for a stupid include >>> file. >> >> If the define isn't there you should just be able to use a string - no >> need to update the header file unless the thing being added is >> sufficiently general that it seems like a good idea. > > I think I am missing something here. > First I believe there's only one application (PulseAudio or resource > management of some sort) that will talk to UCM. Player applications > shouldn't know anything about UCM, right? Because UCM (as another level on top of standard devices) nicely handles the mixer/pcm issues (volume control, signal routing, signal parameters), I would assue that this layer might be used everywhere. > You would end-up making conflicting decisions. This is something which should be improved in the future UCM code updates. The UCM code should return an error and reduce returned UCM lists if another application uses some conflicting resources. Jaroslav ----- Jaroslav Kysela Linux Kernel Sound Maintainer ALSA Project, Red Hat, Inc.