[alsa-devel] [PATCH] alsa-lib: Broken SNDRV_PCM_IOCTL_TTSTAMP entry
Fixed a IOCTL entry that was broken with a recent update to alsa-driver. --- Signed-off-by: Matthew Ranostay mranostay@embeddedalley.com
diff -r 0b2df0817fb6 include/sound/asound.h --- a/include/sound/asound.h Fri Dec 14 15:19:03 2007 +0100 +++ b/include/sound/asound.h Sun Dec 16 19:38:55 2007 -0700 @@ -463,7 +463,7 @@ enum { enum { SNDRV_PCM_IOCTL_PVERSION = _IOR('A', 0x00, int), SNDRV_PCM_IOCTL_INFO = _IOR('A', 0x01, struct sndrv_pcm_info), - SNDRV_PCM_IOCTL_TSTAMP = _IOW('A', 0x02, int), + SNDRV_PCM_IOCTL_TTSTAMP = _IOW('A', 0x03, int), SNDRV_PCM_IOCTL_HW_REFINE = _IOWR('A', 0x10, struct sndrv_pcm_hw_params), SNDRV_PCM_IOCTL_HW_PARAMS = _IOWR('A', 0x11, struct sndrv_pcm_hw_params), SNDRV_PCM_IOCTL_HW_FREE = _IO('A', 0x12), diff -r 0b2df0817fb6 src/pcm/pcm_hw.c --- a/src/pcm/pcm_hw.c Fri Dec 14 15:19:03 2007 +0100 +++ b/src/pcm/pcm_hw.c Sun Dec 16 19:38:55 2007 -0700 @@ -978,9 +978,9 @@ int snd_pcm_hw_open_fd(snd_pcm_t **pcmp,
if (SNDRV_PROTOCOL_VERSION(2, 0, 5) <= ver) { int on = 1; - if (ioctl(fd, SNDRV_PCM_IOCTL_TSTAMP, &on) < 0) { + if (ioctl(fd, SNDRV_PCM_IOCTL_TTSTAMP, &on) < 0) { ret = -errno; - SNDMSG("TSTAMP failed\n"); + SNDMSG("TTSTAMP failed\n"); return ret; } }
On Sun, 16 Dec 2007, Matthew Ranostay wrote:
Fixed a IOCTL entry that was broken with a recent update to alsa-driver.
This patch is broken. New ioctl is really new and not compatible with old.
Jaroslav
----- Jaroslav Kysela perex@perex.cz Linux Kernel Sound Maintainer ALSA Project
participants (2)
-
Jaroslav Kysela
-
Matthew Ranostay