[ALSA] PCM - added back TSTAMP ioctl for PCM (for old alsa-lib binaries)
authorJaroslav Kysela <perex@perex.cz>
Mon, 17 Dec 2007 08:02:22 +0000 (09:02 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 31 Jan 2008 16:29:36 +0000 (17:29 +0100)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
include/sound/asound.h
sound/core/pcm_native.c

index 475eb71d65ba6fece13ae474f645852a95a14d54..eda5c63ea547a1235c6ebab1b214564a5c2955e0 100644 (file)
@@ -443,6 +443,7 @@ enum {
 enum {
        SNDRV_PCM_IOCTL_PVERSION = _IOR('A', 0x00, int),
        SNDRV_PCM_IOCTL_INFO = _IOR('A', 0x01, struct snd_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 snd_pcm_hw_params),
        SNDRV_PCM_IOCTL_HW_PARAMS = _IOWR('A', 0x11, struct snd_pcm_hw_params),
index 7fb7c921b27d29f7ab3c306f30bc45c52b1c191c..2e7b1e63db94ce7899efb6ec373cd04b441d9b7a 100644 (file)
@@ -2546,6 +2546,8 @@ static int snd_pcm_common_ioctl1(struct file *file,
                return put_user(SNDRV_PCM_VERSION, (int __user *)arg) ? -EFAULT : 0;
        case SNDRV_PCM_IOCTL_INFO:
                return snd_pcm_info_user(substream, arg);
+       case SNDRV_PCM_IOCTL_TSTAMP:    /* just for compatibility */
+               return 0;
        case SNDRV_PCM_IOCTL_TTSTAMP:
                return snd_pcm_tstamp(substream, arg);
        case SNDRV_PCM_IOCTL_HW_REFINE: