From: Takashi Iwai Subject: Re: sscape: general code improvements Date: Wed, 07 Oct 2009 13:57:52 +0200 Message-ID: References: <20091007111925.560A1199B1A0@f14.poczta.interia.pl> 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 961EA10386F for ; Wed, 7 Oct 2009 13:57:52 +0200 (CEST) In-Reply-To: <20091007111925.560A1199B1A0@f14.poczta.interia.pl> 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: krzysztof.h1@poczta.fm Cc: Alsa-devel , Rene Herman List-Id: alsa-devel@alsa-project.org At 07 Oct 2009 13:19:25 +0200, krzysztof.h1@poczta.fm wrote: > > > > What is a standard name for switch to select internal or external midi? > > It is very easy to > > > add such a functionality to the driver. > > > > What do you mean exactly to switch int/ext midi? > > Usually the driver provides the interfaces for both, and let user choose. > > If they are exclusive, it's checked in the open. > > Or, if preferred, a control element can be used to choose the > > interface... > > > > The driver interface (MPU-401 UART) is only one and there is a > command to switch it to the on-board synthetizer or external midi > (joysitck port on the card). If it can be done on the fly without any conflict, I'd implement it as a control element. You can use iface=CARD to hide from mixer app, for example. Takashi