From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Schmidt Subject: Re: [PATCH] ascenario: Add scenario support to alsa-lib Date: Wed, 7 Oct 2009 15:48:09 +0200 Message-ID: <20091007134809.GA14456@excalibur.local> References: <20091005082747.GA3983@excalibur.local> <20091005093502.GC3983@excalibur.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sirius.lasnet.de (sirius.lasnet.de [78.47.116.19]) by alsa0.perex.cz (Postfix) with ESMTP id 8648E10386F for ; Wed, 7 Oct 2009 15:48:17 +0200 (CEST) Content-Disposition: inline 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: Takashi Iwai Cc: ALSA development , Mark Brown , Ian Molton , Graeme Gregory , Stefan Schmidt , Liam Girdwood List-Id: alsa-devel@alsa-project.org Hello. On Tue, 2009-10-06 at 15:46, Takashi Iwai wrote: > At Tue, 6 Oct 2009 15:33:39 +0200 (CEST), > Jaroslav Kysela wrote: > > > > On Tue, 6 Oct 2009, Jaroslav Kysela wrote: > > > > 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. What would you put under basic and common strings? Remove all that are gsm, bt or ip realted for now? > > - represent QoS with string (name) rather than integer - > > QoS is also quite use-case specific Hmm, what would that buy us? > > - SND_SCN_INT_QOS may be SND_SCN_INT_QOS_POWER ? Makes sense, done. > > - 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. Any concrete examples here? I'm not against a more generic interface, but I have problems to see good use cases for it. I implemented the snd_scenario_get_control_id() function you favoured over the explicit functions. Also two more small patches posted in a new thread. regards Stefan Schmidt