From mboxrd@z Thu Jan 1 00:00:00 1970 From: lamikr Subject: Re: How to select between mixer route elements? Date: Tue, 09 May 2006 02:55:53 +0300 Message-ID: <445FDA89.5090303@cc.jyu.fi> References: <44568648.9040902@cc.jyu.fi> <445B7771.1030409@cc.jyu.fi> Reply-To: lamikr@cc.jyu.fi Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <445B7771.1030409@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: Takashi Iwai , alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org >>> 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? Mika ------------------------------------------------------- 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