From: Takashi Iwai Subject: Re: [PATCH] ascenario: Add scenario support to alsa-lib Date: Tue, 06 Oct 2009 15:46:59 +0200 Message-ID: References: <1254390436-5283-1-git-send-email-stefan@datenfreihafen.org> <1254390436-5283-2-git-send-email-stefan@datenfreihafen.org> <20091001122835.GC14417@sirena.org.uk> <20091001131948.GA5936@excalibur.local> <20091001150849.GE5936@excalibur.local> <20091005082747.GA3983@excalibur.local> <20091005093502.GC3983@excalibur.local> 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 mx1.suse.de (cantor.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 2DBD52438A for ; Tue, 6 Oct 2009 15:47:00 +0200 (CEST) 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 , Mark Brown , Ian Molton , Graeme Gregory , Stefan Schmidt , Liam Girdwood List-Id: alsa-devel@alsa-project.org At Tue, 6 Oct 2009 15:33:39 +0200 (CEST), Jaroslav Kysela wrote: > > On Tue, 6 Oct 2009, Jaroslav Kysela wrote: > > > So at least, the API basics is now clear. I'll prepare a branch in alsa-lib > > GIT tree to have a start point for first accepted implementation. > > The updated header file is now at: > > http://git.alsa-project.org/?p=alsa-lib.git;a=blob;f=include/ascenario.h;h=003eabeafb7320c96bac585f4aac922e5ba290bb;hb=97911335f2a50ad35c57df6c8a2cfe2867dba97a > > My other proposals: > > - remove all SND_SCN_ defines - they are quite use-case specific > - the names should be just documented somewhere Keeping the basic and common strings makes sense, I think. After all, the apps need to use the correct strings. > - represent QoS with string (name) rather than integer - > QoS is also quite use-case specific > - SND_SCN_INT_QOS may be SND_SCN_INT_QOS_POWER ? > - what about to remove QOS and add universal parameter interface? > something like: > > int snd_scenario_set_parameter(snd_scenario_t *scn, char *type, char *value); This sounds not bad, but let's argue first what parameters could be added in future. thanks, Takashi