]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: fix 64-bit SNDRV_PCM_IOCTL_STATUS ABI breakage
authorClemens Ladisch <clemens@ladisch.de>
Sun, 28 Oct 2012 11:30:29 +0000 (12:30 +0100)
committerClemens Ladisch <clemens@ladisch.de>
Sun, 28 Oct 2012 11:30:29 +0000 (12:30 +0100)
commit2b49df0c554cb9c7fc717dcf82d1b8f5310eef62
treeff62c089e2d6f0a61d91542a188147f9270acab1
parentcf40ea169aad366b222283f431addafea6327149
pcm: fix 64-bit SNDRV_PCM_IOCTL_STATUS ABI breakage

Commit cf40ea169aad (pcm: support for audio timestamps) added the new
audio_tstamp field to struct sndrv_pcm_status.  However, struct timespec
requires 64-bit alignment, so the 64-bit compiler would insert
32 bits of padding before this field, which broke SNDRV_PCM_IOCTL_STATUS
with error messages like this:

      kernel: unknown ioctl = 0x80984120

To solve this, insert the padding explicitly so that it can be taken
into account when calculating the ABI structure size.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
include/sound/asound.h