diff options
| author | Christophe Leroy <[email protected]> | 2025-06-14 06:43:16 +0000 |
|---|---|---|
| committer | Takashi Iwai <[email protected]> | 2025-06-16 06:25:27 +0000 |
| commit | c72fad73ba497c237fcc0d771d87a2f8447599bb (patch) | |
| tree | 83ebb5e4af392a991450ed9b855695dc05dae82d /sound/core/timer.c | |
| parent | ALSA: pcm: Convert SNDRV_PCM_IOCTL_SYNC_PTR to user_access_begin/user_access_... (diff) | |
| download | kernel-c72fad73ba497c237fcc0d771d87a2f8447599bb.tar.gz kernel-c72fad73ba497c237fcc0d771d87a2f8447599bb.zip | |
ALSA: pcm: Replace [audio_]tstamp_[n]sec by struct __snd_timespec in struct snd_pcm_mmap_status32
To match struct __snd_pcm_mmap_status and enable reuse of
snd_pcm_sync_ptr_get_user() and snd_pcm_sync_ptr_put_user() by
snd_pcm_sync_ptr() replace tstamp_sec and tstamp_nsec fields by
a struct __snd_timespec in struct snd_pcm_mmap_status32.
Do the same with audio_tstamp_sec and audio_tstamp_nsec.
This is possible because struct snd_pcm_mmap_status32 is packed
and __SND_STRUCT_TIME64 is always defined for kernel which means
struct __snd_timespec is always defined as:
struct __snd_timespec {
__s32 tv_sec;
__s32 tv_nsec;
};
Signed-off-by: Christophe Leroy <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Link: https://patch.msgid.link/df8ea1a9aff61c3e358759b1f495bdb9fb8a3e6a.1749883041.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'sound/core/timer.c')
0 files changed, 0 insertions, 0 deletions
