All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Pearson <james-p@moving-picture.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: Problems with 32 bit apps on 64 bit OS using dmix and snd-ioctl32
Date: Thu, 06 Sep 2007 13:15:11 +0100	[thread overview]
Message-ID: <46DFEF4F.5060705@moving-picture.com> (raw)
In-Reply-To: <s5h3axs6lo2.wl%tiwai@suse.de>

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 ...

James

  reply	other threads:[~2007-09-06 12:15 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-05 11:10 Problems with 32 bit apps on 64 bit OS using dmix and snd-ioctl32 James Pearson
2007-09-05 12:51 ` Takashi Iwai
2007-09-05 14:38   ` James Pearson
2007-09-05 15:23     ` Takashi Iwai
2007-09-05 15:36       ` James Pearson
2007-09-05 16:11         ` Takashi Iwai
2007-09-05 16:54           ` James Pearson
2007-09-05 17:11             ` Takashi Iwai
2007-09-06 10:26               ` James Pearson
2007-09-06 10:51                 ` Takashi Iwai
2007-09-06 11:56                   ` James Pearson
2007-09-06 12:08                     ` Takashi Iwai
2007-09-06 12:15                       ` James Pearson [this message]
2007-09-06 13:06                         ` Takashi Iwai
2007-09-11 21:56             ` James Pearson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46DFEF4F.5060705@moving-picture.com \
    --to=james-p@moving-picture.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.