Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2196951imm; Mon, 28 May 2018 03:44:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqQ39PT/DntcaLJY27XhQ0ECwpjThpXvMh5ftOM3zqw7SPdtVLsvGegr6hs/H8WCVEOgUJe X-Received: by 2002:a62:1656:: with SMTP id 83-v6mr12889924pfw.61.1527504280192; Mon, 28 May 2018 03:44:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527504280; cv=none; d=google.com; s=arc-20160816; b=hDSFAwa6Bh4RuKRIhl5epeXeiI7j+9epjXW6tZC2ejmvUxfMmthJF520c80kIgb3Yq 0/lWc0Ju8pGZHxSlNkfsMDqFymFonMFxHKa4z/A9qQ8n6FhHVvOvgFbK1DfCpInjaS1Q c2m5eId0bqF12SRXT9wtSprl1KABAPvjuWkfKegSATaZhOtWxwhU0jzBH3dg6w3AtUtZ 8XQTKXPolWAZ2ow93NAG/Xf5JK4db5dLyDjJnrYZsR0LAsuw6hGnlMmRRPRzo+N0KoEA LslDMIFP0YB72Pg4EIzBzTIF89iIKYAVNjpnJ72NolrLjd7UFqHXihdCr8l5T8P5aceo xTJg== 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:dkim-signature :arc-authentication-results; bh=boZQqORS5wI1Z3eu//ZtEfYd6xuzBLVJEPQUpf+GDOQ=; b=ycdw2o7YBFSuAT9RlSTEXLanYWrHVoyzMfPv3yfYPeEDI1ZJRhBaaQRPCrgVo9QqKG f7G6gTPvvxmuz73ybvuhVgFNm7UbwZ/M8/5gJH4sj/ienqy1X5AO6TmFv5Mw1tkrBzJP mXFGxoSfPcQt6KhBlWkKwttTZ6+/UoMHLXJ4HyqqHt7w9FqSD94Mt+lTMDo2zEE5HjHL dHofz4GatYsxfSx6RG6o1KkPt181OI6OqhppviBYXdb9h+LfArwQA4Wxc7P3m3DElEWc 85dxp/L8rOJvKw/taROjQiZnD7ePn8HhCETouPVQWQIWH1ElE1X6Ulc4eG4Tgt6+uN4f ySvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EY8GjaeT; 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 b34-v6si30254410pld.272.2018.05.28.03.44.25; Mon, 28 May 2018 03:44:40 -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; dkim=pass header.i=@kernel.org header.s=default header.b=EY8GjaeT; 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 S937540AbeE1Kmt (ORCPT + 99 others); Mon, 28 May 2018 06:42:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:33982 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937431AbeE1Kmo (ORCPT ); Mon, 28 May 2018 06:42:44 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (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 211B8208A3; Mon, 28 May 2018 10:42:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527504163; bh=E/ycHF7EevqYW2pGjLnT+ajMVUmDiEkn7mz+yrPdiMY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EY8GjaeTlAd8yk0p+W386famIoPbszkgcj6o+hKgtr/aQzZl2rdJ8HsM/ufkt+IjP 4h5bGY6GDg28k6hc9QXRg8QWOuNG/AiknRsPIBAUHsmnytfXu1/OwkBAgaFQjUmxzr JXi5ptMMiDduemR1nGY+2SF0vsV9PuYfhdo+Iwvs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ben Hutchings , Takashi Iwai Subject: [PATCH 4.14 008/496] ALSA: timer: Fix pause event notification Date: Mon, 28 May 2018 11:56:33 +0200 Message-Id: <20180528100319.899630061@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180528100319.498712256@linuxfoundation.org> References: <20180528100319.498712256@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: Ben Hutchings commit 3ae180972564846e6d794e3615e1ab0a1e6c4ef9 upstream. Commit f65e0d299807 ("ALSA: timer: Call notifier in the same spinlock") combined the start/continue and stop/pause functions, and in doing so changed the event code for the pause case to SNDRV_TIMER_EVENT_CONTINUE. Change it back to SNDRV_TIMER_EVENT_PAUSE. Fixes: f65e0d299807 ("ALSA: timer: Call notifier in the same spinlock") Signed-off-by: Ben Hutchings Cc: stable@vger.kernel.org Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/core/timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/sound/core/timer.c +++ b/sound/core/timer.c @@ -592,7 +592,7 @@ static int snd_timer_stop1(struct snd_ti else timeri->flags |= SNDRV_TIMER_IFLG_PAUSED; snd_timer_notify1(timeri, stop ? SNDRV_TIMER_EVENT_STOP : - SNDRV_TIMER_EVENT_CONTINUE); + SNDRV_TIMER_EVENT_PAUSE); unlock: spin_unlock_irqrestore(&timer->lock, flags); return result; @@ -614,7 +614,7 @@ static int snd_timer_stop_slave(struct s list_del_init(&timeri->ack_list); list_del_init(&timeri->active_list); snd_timer_notify1(timeri, stop ? SNDRV_TIMER_EVENT_STOP : - SNDRV_TIMER_EVENT_CONTINUE); + SNDRV_TIMER_EVENT_PAUSE); spin_unlock(&timeri->timer->lock); } spin_unlock_irqrestore(&slave_active_lock, flags);