]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: Avoid using timespec for struct snd_ctl_elem_value
authorBaolin Wang <baolin.wang@linaro.org>
Tue, 24 Apr 2018 12:06:10 +0000 (20:06 +0800)
committerArnd Bergmann <arnd@arndb.de>
Wed, 11 Dec 2019 21:06:15 +0000 (22:06 +0100)
commitf80a492261290d1c62c4a931df9174cd238af442
tree15849b824c2ca53d27217a995a54580217b3702e
parentf78c34d23c305b09dc1dd6b498f58387e0f4de51
ALSA: Avoid using timespec for struct snd_ctl_elem_value

The struct snd_ctl_elem_value will use 'timespec' type variables to record
timestamp, which is not year 2038 safe on 32bits system.

Since there are no drivers will implemented the tstamp member of the
struct snd_ctl_elem_value, and also the stucture size will not be changed
if we change timespec to s64 for tstamp member of struct snd_ctl_elem_value.

From Takashi's comments, "In the library, applications are not expected
to access to this structure directly. The applications get opaque pointer
to the structure and must use any control APIs to operate it. Actually the
library produce no API to handle 'struct snd_ctl_elem_value.tstamp'. This
means that we can drop this member from alsa-lib without decline of
functionality." Thus we can simply remove the tstamp member to avoid using
the type which is not year 2038 safe on 32bits system.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
include/uapi/sound/asound.h