Received: by 10.192.165.148 with SMTP id m20csp4190794imm; Mon, 30 Apr 2018 13:31:59 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqu9iVABAdK5sH9VR9elIJ3w+ciBUNZSmCREhAmDxOMb3XY+xjR0KIQyIk2DGX8eUehQICY X-Received: by 2002:a17:902:e8:: with SMTP id a95-v6mr13688082pla.274.1525120319497; Mon, 30 Apr 2018 13:31:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525120319; cv=none; d=google.com; s=arc-20160816; b=YIRXKGC9FtjwlRJ5WkX/MpWafSFYPjPGlNXoT/iJb1W1S5P3W6UOUo4e8n6PxHRJi8 KW8gktIW//t9R58BgkrW5nKl1pQCBCNOTYiBtY/hElhMo6AjPvQSku8f0OfgvOS4P5XQ Pnooj451IIMEpU0XHvdQ2BRFM7YhYB2ZpqYMcRkyWqr+ZQGwabhMHND/Z1ILEDUO26YZ 83ZGLeY/YWudr1eaC/cadTx19kH+h/Ek2vceqEfjOVNN00t8sk+PxDf9JjIJoULj4Enw JVF8hc7FMu43Bg5ZKDjCYW8Z0ipEPdsP1PMyFSGA6FP8yBS0AFHYY5yLf+DwKCN/3ubh /ziQ== 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=GjwC6NtVxYE+5HRoSeaOZs5MuiNV4Zptyv1Orlv4Bkg=; b=gZIODlnJ3STgFOyI503xRtqo10Eo9hyEktGwzxsCZEgY4sgzNTlS7zMRHXlw7kRb1x gf3DVqUcIQwABDaomGfqCstvixm3cIYeE9CRvjcCEBibuyPFAqnI2obtIxF3MUVkiBOj YtXinXhcxEA55vK8NVMRFBjNkqSte65qVeiAR8gIrijmAaYXgIroxJa/6BPvtw4XhIn2 NEptYXXuM6l12L0PGLpMe0VYjwiOPWHLENPk72pF0Gg3iQTB6aH5nh712QiwFqbDdxFL trkDtDLHy4V66YBx8E+vK8E1z+F0+7mmFCHZ/2YNnPY01yW7YHszlc6NbC3tzQW3owS1 kFig== 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 j5-v6si6714240pgn.117.2018.04.30.13.31.45; Mon, 30 Apr 2018 13:31:59 -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 S1755610AbeD3Ua1 (ORCPT + 99 others); Mon, 30 Apr 2018 16:30:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:59604 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755552AbeD3T0O (ORCPT ); Mon, 30 Apr 2018 15:26:14 -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 DDA9622DAC; Mon, 30 Apr 2018 19:26:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DDA9622DAC 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.4 25/44] ALSA: core: Report audio_tstamp in snd_pcm_sync_ptr Date: Mon, 30 Apr 2018 12:24:36 -0700 Message-Id: <20180430190947.346166658@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180430190946.093694747@linuxfoundation.org> References: <20180430190946.093694747@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.4-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 @@ -2727,6 +2727,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;