]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Fix off_t in kernel struct
authorTakashi Iwai <tiwai@suse.de>
Wed, 28 Jan 2009 14:00:35 +0000 (15:00 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 28 Jan 2009 14:00:35 +0000 (15:00 +0100)
The off_t in kernel struct (for ioctls) is actually different from the
definition of user-space off_t.  The kernel off_t is equial with long
while user-space off_t depends on the large-file support.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/asound.h

index 977b2d6c08de44d58a27cf908fc7402c9fdee1d1..62d1e5731b9d0df91c55a7cf9007d25a2ad1c8c9 100644 (file)
@@ -402,7 +402,7 @@ struct sndrv_pcm_sw_params {
 
 struct sndrv_pcm_channel_info {
        unsigned int channel;
-       off_t offset;                   /* mmap offset */
+       long offset;                    /* mmap offset */
        unsigned int first;             /* offset to first sample in bits */
        unsigned int step;              /* samples distance in bits */
 };