From: Takashi Iwai Subject: Re: A FIX FOR alsa-lib emu10k1.h (IT FIXES ld10k1) Date: Wed, 17 Jan 2007 13:35:10 +0100 Message-ID: References: <200701170012.07474.terminator356@users.sourceforge.net> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200701170012.07474.terminator356@users.sourceforge.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: terminator356@users.sourceforge.net Cc: alsa-devel@lists.sourceforge.net, James Courtier-Dutton List-Id: alsa-devel@alsa-project.org At Wed, 17 Jan 2007 00:12:07 -0500, terminator356@users.sourceforge.net wrote: > > Hi, ld10k1 doesn't work, crashes. Lots of people saying it. > In the alsa-kernel/include emu10k1.h, > union { > snd_kcontrol_tlv_rw_t *c; > unsigned int *p; > } tlv; > was added to struct 'snd_emu10k1_fx8010_control_gpr'. > But alsa-lib/include/sound/emu10k1.h was not changed. > So I did this: > ... > unsigned int min; /* minimum range */ > unsigned int max; /* maximum range */ > unsigned int *p; // <----- ADDED THIS <---------------- > unsigned int translation; /* translation type (EMU10K1_GPR_TRANSLATION*) */ > } emu10k1_fx8010_control_gpr_t; > > which is in alsa-lib/include/sound/emu10k1.h > > For me, it fixes ld10k1. *p acts as a placeholder because it is useless > (at this point) to ld10k1. > > ----Can you tell me what those changes were for? What are *c and *p ? --- Well, this is an ABI breakage by introducing the TLV support. The tlv keeps the additional information such as dB range. James, do you have already a fix? I'm afraid that fixing this isn't so obvious and relatively complicated. Takashi ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV