Received: by 10.192.165.148 with SMTP id m20csp2054260imm; Thu, 26 Apr 2018 05:47:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+7N5LIMNnApMQ/uOBnwRkD5QWEJt38tSmYFuvfMX95VxANJtZRfe8X8dv2HD6PKLApigFb X-Received: by 10.98.209.92 with SMTP id t28mr20141422pfl.148.1524746824345; Thu, 26 Apr 2018 05:47:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524746824; cv=none; d=google.com; s=arc-20160816; b=bNibbf3XB24n1NKIN1JHGH02vYlHJ3MjZZE+LabP0Tp6wJrI6AnqlK5d952v2E5ESF Q+hu1hV5zNgVt7pe4xMnXyTfqpjJpjyOMIvvj7aNhAfGtMmtMg/kKLqMzbrXbp1mGgmN CewLEDKeYBIGvU+vyGrHamDR9FeMrR/Ghc+1/8I5Z/2dGBv4puRtTK+prMQIUjdMXyan PkTAKyN/ad3GUhCuSJZ0StMM0BQQZJDUoIQ2LrBbA6dphR7/TYxA+iYDm2YW8ofruERb 5QGEjSaZBCJzQ2Pe1H5qoJZp0k7Ou5DtbhbfYujOep23TtEjgt4EAEcPYag+kBS0q9hg oL+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=e2iSeQtE51tbMFn3W1uCGyRoqz1eN0DzH2N3S4PxLMg=; b=C1ianTXt8sChHweV5E8ypiXzVVdQLfxvCzqXLsET6uc3/7oQ6ZoVESrv8vas4JhW4f L8xAbmQr16E6RWIWG2E8ajH0c7GgV4w6AUcMW7606m+dF2eXd4oLW/zNIY7bMqEmw5xD 6r8712IAWROeTuGNVIVjJYS84Id3TKvQFKk1hcl6ph6QWm4RIwgXROBmcUnMNTU2weg0 wULUiGORciu9our0cr/6r91Arj3nM4vSNcF5x8vthf9hyvS+mUhQtdZmDud2FFKHAbT1 vaQsFzoP1+AzWCdLyH4MxXy3CfzCpZENMyqhow7avfrX1gm7an739D0PGGZoYpubUJnX tcaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i198si13903930pgc.340.2018.04.26.05.46.49; Thu, 26 Apr 2018 05:47:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755959AbeDZMp3 (ORCPT + 99 others); Thu, 26 Apr 2018 08:45:29 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:52243 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755709AbeDZMp1 (ORCPT ); Thu, 26 Apr 2018 08:45:27 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.129]) with ESMTPA (Nemesis) id 0MV0jR-1esgUf1Xvp-00YTzq; Thu, 26 Apr 2018 14:44:40 +0200 From: Arnd Bergmann To: y2038@lists.linaro.org, linux-kernel@vger.kernel.org Cc: Arnd Bergmann , Jaroslav Kysela , tiwai@suse.com, lgirdwood@gmail.com, broonie@kernel.org, o-takashi@sakamocchi.jp, alsa-devel@alsa-project.org, Baolin Wang Subject: [PATCH 0/4] ALSA: Fix year 2038 issue for sound subsystem, alternative Date: Thu, 26 Apr 2018 14:44:18 +0200 Message-Id: <20180426124422.2921744-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:Ufsgb5tXjabCDRIuC3i0IVPaNHddszVnSjvrqnrdQkGUWKBVbmT MEUlfv1fsu3fAJez06AFo57UM8iG7XCGxIi/ODz/YEHRg4UumZQ7dxcG25lytepMqtVbF+B YXtT1vSBkypwEOBP8Q47p0rMayu/rwah6lYfOqH2uGo2xeE7YaBmGETJMdxCbvOHel1bVD1 AXDUzEMYeXEOI3y1eWo2A== X-UI-Out-Filterresults: notjunk:1;V01:K0:q0vocCu1Zpk=:XS7qEjQS0TOQc3dZc24qWd JJH4CycYpEMaVbRgIJEOhOZG3m6KBeW6hDvMlVS5g8eWUMAJpfAXMJ5wuOtdHqospD1Yl/q6z QyHFKE9v+YiU35qLIxIAZkBJq3DN7iDA6cU0UKNC1piHRmFFxO/YqNNTXsAGUvDJiiEVojc0/ lchhxI6/Zj9PZlCfV1Aa0lD5i2EJknkSKf8kH+CjkWpsOUYZAWnXT9ImwVQ9Vy6A62kUCx2Tv g4xkRu6svb3c1Z3hgGk3ujmBqSoHwylM0fNJjhy1zp+OIWtQFDCbXTH/CF4CFkoN7ow+2yVvr YqX7fCp2cT3Upgi9OUk7droxoWzyJmx+huPeL0sl0vhF7fEF4WGTGnw5kZTEgSWO9hOyYvjX3 6Z6XMTv9FejZCQv9x8iZTAbBKlcuZJb2B9dOZHQTQ4/a6SVz/0w0jGbBZu5D73unDAMBghGsO lU/T2K9mSn8jHdofP/ihRT0IE19Ptzh0V+UhYHjyjKzi33sZB4PcswR/Zfc9tzlhvvH7N/d3k zH4rbJF6HyEoEjLO2AdNwK/JVOuH6IZemyztInxv6N95WZ85PX1PcfMp8ZfYlx156EAgc/SwI uxafTRbUwUO+RxGLKXvsb54QYUrhu1CU5QR/ran4UFmqoT0Vjgdldl72QOmLsoypWSYZW7Y/A S52bDXK32BHxMPjbk60bq2XrqFiuHWIKMPiRMRhAvondg1MDtpdOMxF30kgXzAihh2nI= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I've tried the suggestion from Jaroslaw, doing a minimal change to the UAPI headers to keep the existing binary interface. As he predicted, this is a much simpler set of kernel changes, but we will pay for that with added complexity in alsa-lib. The first two patches in this series are taken from Baolin's patch set, with a small bugfix folded in to avoid a compile-time regression. The other two patches are to redefine the UAPI and to deprecate the support for CLOCK_REALTIME time stamps, which we can no longer allow with user space that we expect to survive beyond 2038. Overall, I'd still be happier with Baolin's approach since it allows us to keep compatiblity with CLOCK_REALTIME users and requires fewer changes in user space, but this would work as well. Arnd Cc: Jaroslav Kysela Cc: tiwai@suse.com Cc: lgirdwood@gmail.com Cc: broonie@kernel.org Cc: o-takashi@sakamocchi.jp Cc: y2038@lists.linaro.org Cc: alsa-devel@alsa-project.org Cc: linux-kernel@vger.kernel.org Cc: Baolin Wang Arnd Bergmann (2): ALSA: replace timespec types in uapi headers ALSA: Deprecate CLOCK_REALTIME timestamps Baolin Wang (2): ALSA: Replace timespec with timespec64 ALSA: Avoid using timespec for struct snd_ctl_elem_value include/sound/asound.h | 8 +++++ include/sound/pcm.h | 22 +++++++----- include/sound/timer.h | 4 +-- include/uapi/sound/asound.h | 53 +++++++++++++++++++++-------- sound/core/Kconfig | 11 ++++++ sound/core/compat.h | 11 ++++++ sound/core/pcm.c | 3 ++ sound/core/pcm_compat.c | 70 ++++++++++++++++++++++----------------- sound/core/pcm_lib.c | 36 ++++++++++++-------- sound/core/pcm_native.c | 25 ++++++++++---- sound/core/rawmidi_compat.c | 12 +++---- sound/core/timer.c | 28 ++++++++-------- sound/core/timer_compat.c | 4 ++- sound/pci/hda/hda_controller.c | 14 +++++--- sound/soc/intel/skylake/skl-pcm.c | 4 +-- 15 files changed, 203 insertions(+), 102 deletions(-) create mode 100644 sound/core/compat.h -- 2.9.0