Received: by 10.192.165.148 with SMTP id m20csp4151610imm; Mon, 30 Apr 2018 12:44:33 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrIFBJKwtvQwg6WnRjDmbVPsYPI52g4pBD8YmOsd2HvBUPE6icVsL/NPdsqCdhNhah8M4T3 X-Received: by 2002:a63:93:: with SMTP id 141-v6mr7124534pga.322.1525117473351; Mon, 30 Apr 2018 12:44:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525117473; cv=none; d=google.com; s=arc-20160816; b=jBZR5M+/zYqTyno7C9LN7UxtS64SMC4xlCpJ4LaE3zT3kIQ1xeyxD9FUS1US/OejIq AWzK2Ec0Zg0qde9zaI2Ni1TbrnudNk5o1I9FCroGV2+Np0xerogyuspRsoJEb/0l4Ftl Fbg21K+AV33+CmabdMWYgNy+3NVfx08JSIpTST35YaIqKDIcS9wi3Wk+Y6Bu+VIiYj6Z WXPmItlt7ThdCEot6D/CetRcu+mQHCWeYr8OJ6HEPSnSKMZNOVTGSU/NfUvuUqpvXt/y 4ux6twkVW3GaOJdykd3ftSGi93cJZ7mqTxkmTvpZR9QtJh//l6R4guXkIe6a24Hnp2j6 3FdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dmarc-filter :arc-authentication-results; bh=rKmVPqjm4qWfrB0QqZtyA0ArI9vZPhzmUs8pJ7a8F1w=; b=oQBIXFezM4oUJLa2g+aKMei0Aa4rwfnvc/FeVw8sphzlOLLsTgBu4rEo6kLfm4/4n0 ESR4sTY4WGKgzfkBG9SlUsxbglR9VZ8G9yNnhhV1XOum+S7jiJWUMmKYA/2mdi2sz9rf 0ZGZiJy0XMlHD/vNrlT3o9yt4vFbdI3dG7F62vNyln7SjE41zd+ixQo+u5LDJmKdjnRB 7dImgNBA2bRskI/USPVnSoNcmWTeOGdzsFFfZo6Ib04exFd1EYOfL8JAQFhyapbZV12t ETswBFqdweIMQGAiCSv6y8eCYQHSIkbMJQ3SgeOX46DiLGnmP1uzKgwOHeMwZt6JgRaM TaKg== 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 l67si8039476pfg.326.2018.04.30.12.44.19; Mon, 30 Apr 2018 12:44:33 -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 S932297AbeD3T2Z (ORCPT + 99 others); Mon, 30 Apr 2018 15:28:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:35776 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756242AbeD3T2Q (ORCPT ); Mon, 30 Apr 2018 15:28:16 -0400 Received: from localhost (unknown [104.132.1.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EEEF522DAC; Mon, 30 Apr 2018 19:28:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EEEF522DAC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=gregkh@linuxfoundation.org From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, David Henningsson , Takashi Sakamoto , Takashi Iwai Subject: [PATCH 4.16 047/113] ALSA: core: Report audio_tstamp in snd_pcm_sync_ptr Date: Mon, 30 Apr 2018 12:24:18 -0700 Message-Id: <20180430184017.044188828@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180430184015.043892819@linuxfoundation.org> References: <20180430184015.043892819@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: David Henningsson commit f853dcaae2f5bbe021161e421bd1576845bae8f6 upstream. It looks like a simple mistake that this struct member was forgotten. Audio_tstamp isn't used much, and on some archs (such as x86) this ioctl is not used by default, so that might be the reason why this has slipped for so long. Fixes: 4eeaaeaea1ce ("ALSA: core: add hooks for audio timestamps") Signed-off-by: David Henningsson Reviewed-by: Takashi Sakamoto Cc: # v3.8+ Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/core/pcm_native.c | 1 + 1 file changed, 1 insertion(+) --- a/sound/core/pcm_native.c +++ b/sound/core/pcm_native.c @@ -2749,6 +2749,7 @@ static int snd_pcm_sync_ptr(struct snd_p sync_ptr.s.status.hw_ptr = status->hw_ptr; sync_ptr.s.status.tstamp = status->tstamp; sync_ptr.s.status.suspended_state = status->suspended_state; + sync_ptr.s.status.audio_tstamp = status->audio_tstamp; snd_pcm_stream_unlock_irq(substream); if (copy_to_user(_sync_ptr, &sync_ptr, sizeof(sync_ptr))) return -EFAULT;