Skip to content

Commit 60d8086

Browse files
tiwaigregkh
authored andcommitted
ALSA: compress: Fix 64bit ABI incompatibility
commit 6733cf5 upstream. snd_pcm_uframes_t is defined as unsigned long so it would take different sizes depending on 32 or 64bit architectures. As we don't want this ABI incompatibility, and there is no real 64bit user yet, let's make it the fixed size with __u32. Also bump the protocol version number to 0.1.2. Acked-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 02552ad commit 60d8086

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎include/uapi/sound/compress_offload.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#include <sound/compress_params.h>
3131

3232

33-
#define SNDRV_COMPRESS_VERSION SNDRV_PROTOCOL_VERSION(0, 1, 1)
33+
#define SNDRV_COMPRESS_VERSION SNDRV_PROTOCOL_VERSION(0, 1, 2)
3434
/**
3535
* struct snd_compressed_buffer: compressed buffer
3636
* @fragment_size: size of buffer fragment in bytes
@@ -67,8 +67,8 @@ struct snd_compr_params {
6767
struct snd_compr_tstamp {
6868
__u32 byte_offset;
6969
__u32 copied_total;
70-
snd_pcm_uframes_t pcm_frames;
71-
snd_pcm_uframes_t pcm_io_frames;
70+
__u32 pcm_frames;
71+
__u32 pcm_io_frames;
7272
__u32 sampling_rate;
7373
};
7474

0 commit comments

Comments
 (0)