Received: by 10.192.165.148 with SMTP id m20csp4188759imm; Mon, 30 Apr 2018 13:29:57 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrr9EX3/F2F2kawUW1oyXGo5UMRVYiis+lL8QmtFXrCmUtiNcDwSFbN595evFkHXSzQQNql X-Received: by 2002:a63:8dc1:: with SMTP id z184-v6mr11061013pgd.114.1525120197419; Mon, 30 Apr 2018 13:29:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525120197; cv=none; d=google.com; s=arc-20160816; b=dX74x2sAunwdsXd/szFZ1wlQdnvyWmTMNkAy8w+HhARr5gGa0NJhIcOKOpGYZwgd7z jhGqVeaG90rra88J3EaR3KpRLLimPLxUBa6aySQIMzaTgQzKVNCAzpqyV8kSdJzbusSt evHXQYpyceif+t/c+q2ah1R14XO4eU9cJNlH06toqiEkQ1cJmUb7XvKM6kEGY8+U87ys hWhMZ1sdS8EubXsLEnAGn8WN/QZgDJXAkPUOrf50VRTxKMKkrBenGhXFc9yfSfb1aw0U 1dnOZctPgaUFssYgZLOwpcnWowIc/9kBM/niCGdlWptah1i8zGvZ/2QGXU+vMUCv0gjd pr9Q== 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=H+HkN+NuutGgVGc8smM25+8nMq6Zia27KZSgr1Wc5GE=; b=veCC9Bptri5nOK/J3P9dKQrdTjlW+asn32NLhdRw9ZeA5y5joACMKMN8lOIBQPecOi PX5rb/U5urBz/xGhg9gWk4pHaT10/LjzD5V3epHnhWf/RXk9KBOZH5NcmlcRahiWOqPJ fZ0IAoJXYkxB58h3c8EfaY2RLuunOA7u1knwO8p7t6Ndl2FvXca2Sg+e0EYh6jT7Tu1f f5O/CKGOuP3GlSj2tcAXJNy+Lug04C4Yc/CCP0CFO5diEEraydTfBprZ3bZDQcAXZBom 8HhkJo+gpIhg6aGScUX4jr9op3QT28xInoW5PshjziJpG96YTPIUQERGhYAIkDzuQLxD d6Lw== 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 a1-v6si7945965plt.39.2018.04.30.13.29.13; Mon, 30 Apr 2018 13:29:57 -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 S1755904AbeD3UZ0 (ORCPT + 99 others); Mon, 30 Apr 2018 16:25:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:60258 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755663AbeD3T0b (ORCPT ); Mon, 30 Apr 2018 15:26:31 -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 4FE4B22DCB; Mon, 30 Apr 2018 19:26:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4FE4B22DCB 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.9 31/61] ALSA: core: Report audio_tstamp in snd_pcm_sync_ptr Date: Mon, 30 Apr 2018 12:24:34 -0700 Message-Id: <20180430183954.020728739@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180430183951.312721450@linuxfoundation.org> References: <20180430183951.312721450@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.9-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 @@ -2729,6 +2729,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;