From: Takashi Iwai Subject: Re: Problems with 32 bit apps on 64 bit OS using dmix and snd-ioctl32 Date: Thu, 06 Sep 2007 15:06:22 +0200 Message-ID: References: <46DE8EB0.90208@moving-picture.com> <46DEBF69.6070307@moving-picture.com> <46DECCEA.4060306@moving-picture.com> <46DEDF4B.7050108@moving-picture.com> <46DFD5DB.6030204@moving-picture.com> <46DFEAD5.7040806@moving-picture.com> <46DFEF4F.5060705@moving-picture.com> 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 61ECE1037F5 for ; Thu, 6 Sep 2007 15:06:23 +0200 (CEST) In-Reply-To: <46DFEF4F.5060705@moving-picture.com> 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: James Pearson Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Thu, 06 Sep 2007 13:15:11 +0100, James Pearson wrote: > > Takashi Iwai wrote: > > > > Ah, I see the point. > > > > With ALSA 1.0.15rc1, we can safely uncomment #if 0 .. #endif in > > timer32_new.c and timer32_old.c. These no longer conflict with > > existing ioctls. I forgot about it. > > > > The patch is below. > > > > > > Takashi > > > > diff -r adfe4179d670 acore/ioctl32/timer32_new.c > > --- a/acore/ioctl32/timer32_new.c Fri Aug 31 12:22:35 2007 +0200 > > +++ b/acore/ioctl32/timer32_new.c Thu Sep 06 14:06:40 2007 +0200 > > @@ -88,18 +88,11 @@ struct ioctl32_mapper timer_mappers[] = > > { SNDRV_TIMER_IOCTL_INFO32, AP(timer_info) }, > > MAP_COMPAT(SNDRV_TIMER_IOCTL_PARAMS), > > { SNDRV_TIMER_IOCTL_STATUS32, AP(timer_status) }, > > -#if 0 > > - /* ** FIXME ** > > - * The following four entries are disabled because they conflict > > - * with the TCOC* definitions. > > - * Unfortunately, the current ioctl32 wrapper uses a single > > - * hash table for all devices. Once when the wrapper is fixed > > - * with the table based on devices, they'll be back again. > > - */ > > + /* The ioctls are changed, so we can enable them again */ > > + /* The old ioctls conflict with TIOC_* definitions */ > > MAP_COMPAT(SNDRV_TIMER_IOCTL_START), > > MAP_COMPAT(SNDRV_TIMER_IOCTL_STOP), > > MAP_COMPAT(SNDRV_TIMER_IOCTL_CONTINUE), > > MAP_COMPAT(SNDRV_TIMER_IOCTL_PAUSE), > > -#endif > > { 0 }, > > }; > > diff -r adfe4179d670 acore/ioctl32/timer32_old.c > > --- a/acore/ioctl32/timer32_old.c Fri Aug 31 12:22:35 2007 +0200 > > +++ b/acore/ioctl32/timer32_old.c Thu Sep 06 14:06:40 2007 +0200 > > @@ -88,18 +88,11 @@ struct ioctl32_mapper timer_mappers[] = > > { SNDRV_TIMER_IOCTL_INFO32, AP(timer_info) }, > > MAP_COMPAT(SNDRV_TIMER_IOCTL_PARAMS), > > { SNDRV_TIMER_IOCTL_STATUS32, AP(timer_status) }, > > -#if 0 > > - /* ** FIXME ** > > - * The following four entries are disabled because they conflict > > - * with the TCOC* definitions. > > - * Unfortunately, the current ioctl32 wrapper uses a single > > - * hash table for all devices. Once when the wrapper is fixed > > - * with the table based on devices, they'll be back again. > > - */ > > + /* The ioctls are changed, so we can enable them again */ > > + /* The old ioctls conflict with TIOC_* definitions */ > > MAP_COMPAT(SNDRV_TIMER_IOCTL_START), > > MAP_COMPAT(SNDRV_TIMER_IOCTL_STOP), > > MAP_COMPAT(SNDRV_TIMER_IOCTL_CONTINUE), > > MAP_COMPAT(SNDRV_TIMER_IOCTL_PAUSE), > > -#endif > > { 0 }, > > }; > > Thanks! > > I guess this change also needs to go into the next rc ... Yeah, the patches were already merged to HG tree. Takashi