kernel-hacking-2024-linux-s.../sound/pci
Tina Ruchandani eafe8404c1 ALSA: es1968: Replace timeval with ktime_t
es1968_measure_clock uses struct timeval, which on 32-bit systems will overflow
in 2038, leading to incorrect interpretation of time.This patch changes the
function to use ktime_t instead of struct timeval, which implies:
- no y2038: ktime_t uses a 64-bit datatype explicitly.
- efficent subtraction: The earlier version computes the difference in usecs
  while dealing with secs and nsecs. It requires checks to see if the nsecs of
  stop is less than start. This patch uses a direct subtract of ktime_t and
  converts to usecs.
- use of monotonic clock (ktime_get) over real time (do_gettimeofday),
  which simplifies timekeeping, as it does not have to deal with cases
  where stop_time is less than start_time.

Signed-off-by: Tina Ruchandani <ruchandani.tina@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-10-30 08:04:33 +01:00
..
ac97 ALSA: ac97: Constify more text arrays 2014-10-21 08:51:45 +02:00
ali5451 PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
asihpi ALSA: asihpi: Use snd_ctl_enum_info() 2014-10-21 08:52:13 +02:00
au88x0 ALSA: au88x0: Kill the rest snd_print*() 2014-10-28 17:40:45 +01:00
aw2 ALSA: aw2: Use snd_ctl_enum_info() 2014-10-21 08:53:43 +02:00
ca0106 ALSA: ca0106: Use snd_ctl_enum_info() 2014-10-21 08:55:04 +02:00
cs46xx PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
cs5535audio PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
ctxfi ALSA: ctxfi: Kill the rest snd_print*() 2014-10-28 17:40:42 +01:00
echoaudio ALSA: echoaudio: Use snd_ctl_enum_info() 2014-10-21 08:56:28 +02:00
emu10k1 ALSA: emu10k1: Use snd_ctl_enum_info() 2014-10-21 08:59:23 +02:00
hda ALSA: hda - Pass printf argument directly to request_module() 2014-10-27 15:17:54 +01:00
ice1712 ALSA: ice1724: Use snd_ctl_enum_info() 2014-10-21 09:02:50 +02:00
korg1212 ALSA: korg1212: Use snd_ctl_enum_info() 2014-10-21 09:04:07 +02:00
lola PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
lx6464es ALSA: lx6464es: Use nonatomic PCM ops 2014-09-15 15:52:10 +02:00
mixart ALSA: mixart: Use nonatomic PCM ops 2014-09-15 15:52:09 +02:00
nm256 PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
oxygen ALSA: oxygen: set fifo_size 2014-09-22 08:57:01 +02:00
pcxhr ALSA: pcxhr: Kill the rest snd_print*() 2014-10-28 17:40:43 +01:00
riptide PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
rme9652 ALSA: hdspm: remove unused variable 2014-10-29 16:12:32 +01:00
trident PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
vx222 ALSA: vx: Use nonatomic PCM ops 2014-09-15 15:52:03 +02:00
ymfpci PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
ad1889.c ALSA: ad1889: Fix probable mask then right shift defects 2014-10-27 08:40:18 +01:00
ad1889.h
ak4531_codec.c
als300.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
als4000.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
atiixp.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
atiixp_modem.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
azt3328.c ALSA: azt3328: Use snd_ctl_enum_info() 2014-10-21 08:53:54 +02:00
azt3328.h
bt87x.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
cmipci.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
cs4281.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
cs5530.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
ens1370.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
ens1371.c
es1938.c ALSA: es1938: Use snd_ctl_enum_info() 2014-10-21 08:59:59 +02:00
es1968.c ALSA: es1968: Replace timeval with ktime_t 2014-10-30 08:04:33 +01:00
fm801.c ALSA: fm801: Use snd_ctl_enum_info() 2014-10-21 09:00:29 +02:00
intel8x0.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
intel8x0m.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
Kconfig ALSA: virtuoso: add Xonar Essence STX II support 2014-08-04 15:20:48 +02:00
maestro3.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
Makefile
rme32.c ALSA: rme32: Use snd_ctl_enum_info() 2014-10-21 09:05:24 +02:00
rme96.c ALSA: rme96: Use snd_ctl_enum_info() 2014-10-21 09:07:50 +02:00
sis7019.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
sis7019.h
sonicvibes.c ALSA: sonicvibes: Use snd_ctl_enum_info() 2014-10-21 09:12:51 +02:00
via82xx.c ALSA: via82xx: Use snd_ctl_enum_info() 2014-10-21 09:13:24 +02:00
via82xx_modem.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00