From patchwork Mon Jun 18 15:41:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 139031 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4099792lji; Mon, 18 Jun 2018 08:41:23 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJnczm1xjzkAO5l2ehvcPOzBSAj2PZOU9sIeFLAVAtPowg0nHjUprY0YYBKkpDZ98RgH9V4 X-Received: by 2002:a1c:f30f:: with SMTP id q15-v6mr8758317wmq.36.1529336483291; Mon, 18 Jun 2018 08:41:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529336483; cv=none; d=google.com; s=arc-20160816; b=eV3IuqP/jS4BSF3gGcZTqaU0sbx18C1rqkmdIRsSPzCdVZgaZx/Y/d/lerWSn5pIei r3DrV5+p6Eky5YQWBEkaEZoZVRSJ4MAYMwhtHP48ptDWHs9In+q6cG+5KKJDiUb9RQMR UaDsYIPLNoeOoJLl01sAuIZV52QaGAWoQf6XUda2EpxQdx61ZF9p5y3EMg3BrvNJicc8 n3nPgu4ZLVxe6y8BUX3Kdh527E7t8v3N68k/PLUV5JY/+qNlV65p7mHehDNsZR111qd7 qdN+/oOxGjNFxaIsL2KPTVg1TubMcZfPGizzOCxQOc9ctJBLU2aLUQ0Ubzk0FIGvM0WX FC1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from:delivered-to :arc-authentication-results; bh=leNFxEoNjdOOXMwW0upDulsng6E1JI5kbJag4/rlHpw=; b=QQtL0v/aIP1B2NugAnk/R9CwrZmMyQfIULhfMSP+NH+QGDXMoYiWClpCAWi6BQLWiU 12jofNFMKETBhn6jNSCT+Gs/4uTOGUoRl9oYZ0xIpyej+YyxXsxwAfDQ13JQRybF9tty tnavaCDPFtM73t1VKtiyeu3wWReQUSzHlOpU1arj6IBXEfEdC8QyRKlZzsufLXcLkUNj hJjInxnHxAzPBZ3JgkLTghGzKOrezbhQklWtwPv5SRi8Xa9LsfxarBexjBKXNtRxwWZn IU4GiulvABZ1GGfhKCybJbTZUQ3dj5eXXJ7wVqJvNXR37LcOQ7tHejpDYMRLMLWS1RuS UL+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id n2-v6si7434089wmb.89.2018.06.18.08.41.23; Mon, 18 Jun 2018 08:41:23 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id E1E382673F3; Mon, 18 Jun 2018 17:41:21 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 1BF002673F3; Mon, 18 Jun 2018 17:41:20 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE autolearn=disabled version=3.4.0 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) by alsa0.perex.cz (Postfix) with ESMTP id 5AC8F266D4C for ; Mon, 18 Jun 2018 17:41:17 +0200 (CEST) Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.129]) with ESMTPA (Nemesis) id 0M6alo-1gOoeA1RYq-00wRqM; Mon, 18 Jun 2018 17:41:10 +0200 From: Arnd Bergmann To: Jaroslav Kysela , Takashi Iwai Date: Mon, 18 Jun 2018 17:41:00 +0200 Message-Id: <20180618154108.2227779-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:F1gy04h0YwpOlNbuVolHXeDBHhhrwHBpsfcMkHvkMZYYiRGqJ8P ddoltF4AH/6rhaFdtJ5IQn6jf2F/zY8LFeWxJKbcBauMyw3m8ISjfPA1kj9bKyqLEJVOuXV XM0mV0QrDHFP3qIR/Q6GB960XEIbFbyX6s5Q2Hg8InV6vYDqvINUr1VPR5I7jqk9yGrj+0D N8GNhsheyia/wOt91oC5Q== X-UI-Out-Filterresults: notjunk:1; V01:K0:n/9KxaoTUpI=:f9jEhRDCMp21Ci/4/cvtHc W3sVvDO/u0oMRL9T+vzwDm59T5jQczCGqiJXgb/tikq5W4JhemWjmMz0nBfAJswteKczxGeSU gAX5PvM29GEP90eKrQG/jC/ZybCjplBTDH4P/ZBI2YTbS0VKPv9Ir+ZdkmjLAXM2cAQVl7fbw 77An8oz8poE05rpvZxCy/jf3q4Os7zmt2ZrxreR5YfxNNKuNXkSi+krdUc4OnxDK4g8KWZ0OF W0sfxgVybnHz5PSOlvgNKLpGEAhNpWzcTeSt+Olu18KBbg1aotDrd1VglLs1PKt1FVtW9Fv6S 6/Z5K/VpTb0WVRah87pHXYND8x+kjO1msCAgzYdwYIC6q4xJKx1mUWymXy/PyV1to6t5nGYGP SWMnnmieEjQnYzpAMyPpCfaqAfEPVLJAK/mAnNgaP0XzzEPCfd2o6Oix5ATgYA6Wnfq/OVVuh r7+bW+YzrHO7vynmh28r7rhWEbyslHKit1O3HB0Cupod0/Y82iqHvK729Z7VKkv9qat0UHWQJ 01sdH8AQw0POAsrZIN1vem3/jmo6l23mlpu5eb7cJUEiQhfSeajAjrnZAyO4rWxMiTtSwv/T8 nu+jCaiPJwqc0+tWQDDF403jrkoLW77nGSOs2MckptKdXu3T+6n7CbN1pzVpNQfvoqbGHPOy+ vpekulMg96vGqrkLvgJ8KgZsP4T/JyOqyMi+QKI3wc3XXCSMUrc+0TkQPbo58KUrURoQ= Cc: "Maciej S. Szmigiero" , Arnd Bergmann , alsa-devel@alsa-project.org, y2038@lists.linaro.org, linux-kernel@vger.kernel.org, Takashi Sakamoto Subject: [alsa-devel] [PATCH 1/2] ALSA: use ktime_get_raw_ts64() instead of getrawmonotonic64() X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org The API got renamed for consistency and the old name will be removed once the last users are gone. Signed-off-by: Arnd Bergmann --- include/sound/pcm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/include/sound/pcm.h b/include/sound/pcm.h index 5d5daa190b08..f566611f0fef 100644 --- a/include/sound/pcm.h +++ b/include/sound/pcm.h @@ -1187,7 +1187,7 @@ static inline void snd_pcm_gettime(struct snd_pcm_runtime *runtime, ktime_get_ts64(tv); break; case SNDRV_PCM_TSTAMP_TYPE_MONOTONIC_RAW: - getrawmonotonic64(tv); + ktime_get_raw_ts64(tv); break; default: #ifdef CONFIG_SND_TSTAMP_REALTIME From patchwork Mon Jun 18 15:41:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 139032 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4100355lji; Mon, 18 Jun 2018 08:42:00 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJGIn4ERHtn3djJ5Mj2BxXXEvQd+HZm7mrKfGjfX/K028SqJmy7K/hfkZIZXxh2kz04+yBr X-Received: by 2002:a1c:a006:: with SMTP id j6-v6mr9476709wme.61.1529336520109; Mon, 18 Jun 2018 08:42:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529336520; cv=none; d=google.com; s=arc-20160816; b=c440Pw0yCP8aMOkEpomB1T5d4jHnHJum7MNCcpspsL0hwuAdCq9A2nlCZZ4RVP2AFW FldORVpnSJEgYWshEpxqaOoJNLND5cL+mxOqJKa0FDwIMeKRJj/zsthdUYQKyUrPdmf1 cn7/n/S6jvcsGtpFkKx+IHGD8sHmldK3tQypledd/ifaIJ/1IsMcyp7k9SZztjQws8IN OB1fmWIVJkltVk/u/cpkXaYHqSjCWYAfpq1GzWeh3qEil71x4hlXkjkP1NZHHOTojFSq nCAsqFAxZdK3JRyZQ/nobc75IPP6rpChXxktqJPHzHI6PZH2f3N66HCSuRz3xpVyAz9g MJ5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:delivered-to:arc-authentication-results; bh=nWuMb0mqLOEeGnQR2kAKDSrgjiRruQFUI/74g12+a6g=; b=0prpw2pmp9V7CYbDqph/EaYXKvcX6YEqzL6S+YlrXAcTlOUdjf8FlciOfls+DouZZp 245VwboTFDIcCw50aKhHuqu0MNrd2XJkmitGVuynwzedNliu+oV8u/GjtHbdG269WWW6 2Gk/JMrh6s+ykfy9hPBVdaVUy6RtnbagWs6knXskxQgygty4gmcKo6nCpRHri80KJSay x0K9PJdrO2Kxn8eZGyZt7hI/k3v1Wo8+5k8Ueu/W/T5WpyYhQJcXV+mRHCOC/aNf3tl3 4BSc3rbDdMu9QmgCNmJHCSWvIvgvxuAdpNdi9sCSse9BKGLaC2xgcR9GOcVKEQOEl5yx TAYA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id 138-v6si7589157wmk.174.2018.06.18.08.41.59; Mon, 18 Jun 2018 08:42:00 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id C208C266E8B; Mon, 18 Jun 2018 17:41:58 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 8653D2672B4; Mon, 18 Jun 2018 17:41:56 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE autolearn=disabled version=3.4.0 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) by alsa0.perex.cz (Postfix) with ESMTP id DFF5C266E77 for ; Mon, 18 Jun 2018 17:41:54 +0200 (CEST) Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.129]) with ESMTPA (Nemesis) id 0MWseJ-1fjT9m2SCp-00XrGv; Mon, 18 Jun 2018 17:41:21 +0200 From: Arnd Bergmann To: Jaroslav Kysela , Takashi Iwai , Arnd Bergmann Date: Mon, 18 Jun 2018 17:41:01 +0200 Message-Id: <20180618154108.2227779-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180618154108.2227779-1-arnd@arndb.de> References: <20180618154108.2227779-1-arnd@arndb.de> X-Provags-ID: V03:K1:1tH0sVUHDQdRbxJeB9m+C0hMkpePO78Cctp9xs4OwP4yeH1A0F2 QW843IGYDToD6c/Eb+oOPJ1IOoroaZ9gAtpPf1kLIYUeI89KmeimA7rp8THacuhCShV6HMY wSfvxGLddcouOhNdwLd5jCemCwubnT9nI5QDnCktwCVAJ2WKY4afxLsyVGqDzspxU8GJ4dE Z29DRaw0XWTyvMUQzUQog== X-UI-Out-Filterresults: notjunk:1; V01:K0:0hXb8ET96kY=:OHHqYDOtJu518W1LZPe1IP /CUzVD31RrEDqk+uXhGd2yveHW+NeejexR9NYfXIju9L/sWHzXazYhFO96pkrsjxxwpBVcdE5 8s2NjLDse8T4jHd44xo+wWFYb7l31INUjW73eSGapIBsTES/JOLtSuCtPuGuNDgErTq1AvwyG 3hB5wds9Nq2ieWke3hnzcVA3NIJX72Fb6jqeTB24epSHUl2L+glznE/icUuE32JFtwDbU2cNs 0sRHWoi6Uly6u0RlXXWserdJ+8/JbX3OZTAAij34llr4xf1KGNb9TQTOLVVAPctDdB7l3UOCo otjJMDkPASvxWkoITtCx/3HQStcrUYerNjrxFOtvfeWxCOW+988d60eyOrQdh4t4FTD2YhuFl BcbFdukKfExAdA1fUWtpel7gKTDQbnf8AGlvtbOYr0y2DWut+KhU/V/Ev9LUKcm2wunll234z q/5EL678B7siyLztkqhpwI0jcde7VqOEfwNbslq6th5RxEYeuXA9hTDmTdGAYa53Uzm2cle3U 39yO1BHlZBgwClHDIzzP/nzISwPjilDjYzNmJnt2kAcJx/Ft2pnN5TgVwu4BlyQQP2fG6tAUK istdESRU7YRbt69xtDLENxZ00mgomaf+E9zmauel9iloQMX1lgS6+FuRIMpft/LfI/o+vs7/R atFPRxBgFNN2PWKJ+Hpjdinsnl6eaGd/yY1sGpefKZuta89ifW/5284wZK1SlUfrGJdw= Cc: y2038@lists.linaro.org, alsa-devel@alsa-project.org, Kees Cook , linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH 2/2] ALSA: line6: stop using get_seconds() X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org The get_seconds() function is deprecated because it truncates the timestamp to 32 bits, so all users should change to ktime_get_seconds() or ktime_get_real_seconds(). The firmware interface for passing the timestamp is also limited to 32 bits, so this patch only has the cosmetic effect of avoiding the old interface. Signed-off-by: Arnd Bergmann --- sound/usb/line6/toneport.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.9.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/usb/line6/toneport.c b/sound/usb/line6/toneport.c index 750467fb95db..f47ba94e6f4a 100644 --- a/sound/usb/line6/toneport.c +++ b/sound/usb/line6/toneport.c @@ -367,12 +367,13 @@ static bool toneport_has_source_select(struct usb_line6_toneport *toneport) */ static void toneport_setup(struct usb_line6_toneport *toneport) { - int ticks; + u32 ticks; struct usb_line6 *line6 = &toneport->line6; struct usb_device *usbdev = line6->usbdev; /* sync time on device with host: */ - ticks = (int)get_seconds(); + /* note: 32-bit timestamps overflow in year 2106 */ + ticks = (u32)ktime_get_real_seconds(); line6_write_data(line6, 0x80c6, &ticks, 4); /* enable device: */