Skip to content

Fix year 2038 issue for sound subsystem

Baolin Wang alsa-devel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8ALSA: Replace timespec with timespec64include/sound/pcm.h include/sound/timer.h sound/core/pcm_lib.c +4 more+60 -492 replies
2/8ALSA: Avoid using timespec for struct snd_timer_statussound/core/timer.c sound/core/timer_compat.c+62 -570 replies
3/8ALSA: Avoid using timespec for struct snd_ctl_elem_valueinclude/uapi/sound/asound.h+1 -20 replies
4/8ALSA: Avoid using timespec for struct snd_pcm_statusinclude/sound/pcm.h include/uapi/sound/asound.h sound/core/pcm.c +2 more+193 -1262 replies
5/8ALSA: Avoid using timespec for struct snd_rawmidi_statusinclude/uapi/sound/asound.h sound/core/rawmidi.c sound/core/rawmidi_compat.c+126 -930 replies
6/8ALSA: Avoid using timespec for struct snd_timer_treadinclude/uapi/sound/asound.h sound/core/timer.c sound/core/timer_compat.c+121 -380 replies
7/8ALSA: move snd_pcm_ioctl_sync_ptr_compat into pcm_native.csound/core/pcm_compat.c sound/core/pcm_native.c+101 -980 replies
8/8ALSA: add new 32-bit layout for snd_pcm_mmap_status/controlinclude/uapi/sound/asound.h sound/core/pcm_compat.c sound/core/pcm_lib.c +1 more+120 -315 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] Fix year 2038 issue for sound subsystem

Since many structures will use timespec type variables to record time stamp in uapi/asound.h, which are not year 2038 safe on 32bit system. This patchset tries to introduce new structures removing timespec type to compatible native mode and compat mode.

Moreover this patchset also converts the internal structrures to use timespec64 type and related APIs.

Arnd Bergmann (2):
ALSA: move snd_pcm_ioctl_sync_ptr_compat into pcm_native.c
ALSA: add new 32-bit layout for snd_pcm_mmap_status/control

Baolin Wang (6):
ALSA: Replace timespec with timespec64
ALSA: Avoid using timespec for struct snd_timer_status
ALSA: Avoid using timespec for struct snd_ctl_elem_value
ALSA: Avoid using timespec for struct snd_pcm_status
ALSA: Avoid using timespec for struct snd_rawmidi_status
ALSA: Avoid using timespec for struct snd_timer_tread

 include/sound/pcm.h               |   74 +++++++++--
 include/sound/timer.h             |    4 +-
 include/uapi/sound/asound.h       |  114 ++++++++++++++--
 sound/core/pcm.c                  |   12 +-
 sound/core/pcm_compat.c           |  261 ++++++++-----------------------------
 sound/core/pcm_lib.c              |   38 ++++--
 sound/core/pcm_native.c           |  224 +++++++++++++++++++++++++++----
 sound/core/rawmidi.c              |  131 +++++++++++++++----
 sound/core/rawmidi_compat.c       |   87 ++++---------
 sound/core/timer.c                |  224 +++++++++++++++++++++++--------
 sound/core/timer_compat.c         |   59 +--------
 sound/pci/hda/hda_controller.c    |   10 +-
 sound/soc/intel/skylake/skl-pcm.c |    4 +-
 13 files changed, 766 insertions(+), 476 deletions(-)
Signature · 1 line
1.7.9.5