Received: by 10.192.165.148 with SMTP id m20csp4173945imm; Mon, 30 Apr 2018 13:11:14 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqgQRsimsrLmKwIfG1qjstuyk0hZJ7JwNyPp2gxtWf6pBIISplaxvSE/DLYSNqrS7Q7otQx X-Received: by 2002:a63:6f41:: with SMTP id k62-v6mr10876486pgc.73.1525119074022; Mon, 30 Apr 2018 13:11:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525119073; cv=none; d=google.com; s=arc-20160816; b=EL02624xAyOUOqV0v3y7Sh4AG/pVarNGEBJwCKCtiN6xo18ccjHWwCyaHSlqgQUH5m Np0e4wPyk344LBA35aIdYU8YrBkhu7g9uUuWv2UZLCbhMqNqgiF6pcEbicsIHrfInvbJ DIq7cthBJi/95XpZsGdNIhiBL1xcc7ZsMjZAsU0kic4lgamPMunO0URgRkpQtVSkMiUD sxhkEk+OJzqiEVc4C17mdka4nemBo9fHUvnqMEkqvVQQotyRyIp9WjV7dX6w00CR78Wp FSkj6aJiMbHRmEZ88K67fNfziOCn7OuOOXZM1EX4xy3HE36/wuT1mYVwO1oV+SCtXYEj KJ8w== 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=l5qtPaofFlDuuaS5GhX6QeMEvgViTsGyv5gx4nwW1EQ=; b=gOP/fWE8nH5Clfo9odT4UGq8VLVv9EvPNuf7mVWFcnuTqmb/3rtUTcumx17TCuBNVr pY8UbGobcyvvgOhuZv36/xZYDjEqPj8U6tpay4CoHZVCJnxoN8scHEbrM5k8wt1t+oXP PUzm5+D3SsMXUHBDfGZqHmjZKvtRzwg/2drPeUsTEH3FzS7ABU3J3X4F37d7dL3ICWmG 9lRuV98rhVaYldAsimeNm2HnlUxvvWayOD+tRCWOqCC1j4Wp6cdcm3p3YulOK10j7n2w mjt3Bjk9ZOK9GBWuD5yK3DXRp5tDugmaMhBvjEu7gKBzuRETIoHH7oCQnN7/SdFANgVb f+Gw== 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 a81si7603019pfj.300.2018.04.30.13.10.59; Mon, 30 Apr 2018 13:11:13 -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 S1755803AbeD3UKm (ORCPT + 99 others); Mon, 30 Apr 2018 16:10:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:33558 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755883AbeD3T1Q (ORCPT ); Mon, 30 Apr 2018 15:27: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 ED49B22DCC; Mon, 30 Apr 2018 19:27:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ED49B22DCC 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.14 43/91] ALSA: core: Report audio_tstamp in snd_pcm_sync_ptr Date: Mon, 30 Apr 2018 12:24:25 -0700 Message-Id: <20180430184006.422361938@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180430184004.216234025@linuxfoundation.org> References: <20180430184004.216234025@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.14-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 @@ -2751,6 +2751,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;