From: Takashi Iwai Subject: Re: How to select between mixer route elements? Date: Wed, 10 May 2006 13:14:26 +0200 Message-ID: References: <44568648.9040902@cc.jyu.fi> <445B7771.1030409@cc.jyu.fi> <445FDA89.5090303@cc.jyu.fi> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <445FDA89.5090303@cc.jyu.fi> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: lamikr@cc.jyu.fi Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Tue, 09 May 2006 02:55:53 +0300, lamikr wrote: > > > >>> if (snd_mixer_selem_is_enumerated(elem_playback)) { > >>> printf("Playback is enumerated\n"); > >>> snd_mixer_selem_get_enum_item(handle, 0, old_playback_item); > >>> > >>> > Sorry, I found the error myself, it was my typo... :-( > I put the mixer handle for snd_mixer_selem_get_enum_item as a first > parameter when I was supposed to put the element handle. (elem_playback) > > Anyway I would appreciate if somebody could comment whether it is ok to > put the selection between 3 different playback targets for the route method > (loudspeaker, headphone, cellphone) instead of putting own mute/unmute > switch control for each of them separately? Yes, enum vs switches are just like radio-button and check-box in GUI. If the items are mutual, you should use an enum control type. Takashi ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642