Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1065358ybl; Wed, 14 Aug 2019 10:08:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqysGO/fXGruF9sIRtjEo/gY6zJn/5tUin8xiPIbjRjhZKdRGcREzRn6shSTAcVB7Q5fgfKj X-Received: by 2002:a65:6102:: with SMTP id z2mr155234pgu.391.1565802537071; Wed, 14 Aug 2019 10:08:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565802537; cv=none; d=google.com; s=arc-20160816; b=xiafQIslCZ6NL1e8R7oNrYMyqwhJu8IbhEjzwPqR4zJ1AZWYz++H0PsssKD2JmX7Ji zyA6WhoS4K6WYxa7HhRy/PaAUlaXya5CPGMo6obkc0UwuQTz4Uq/zYN+IELUdTc89kWt 2vpp0oWR22HRUlZ5l1niEDpFHmMNdKGd/qDZwIJeQM7+9khU6GPexDLZj3QuzENZ6nzV 6TG/6n041pvi5Jv/LE5B1KSlUvPms/eFwbkpuYlnmJV38WqCI+LdlvgwvP3makXWYjMo nRRuXpX01XIM/G3BuhwgH0+sE4P6yDf5X5OxcR06TFgjmz6nxl/8OQG7foT/eQV75E3W H3Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1b/6EI6vIhfu0SWMcMT5xxyM3helh7ADKOsMsI+KVZc=; b=UwqgpsTZ6yX9SqCvAEK92SDyUc8APOLttuSYTz4UoNaMwK5GRtQj/y3GqfR4k6Dt27 7wFY1VRk93nM3W/vmP8QlsKpdKRarZhy90gVBia4ABmGIPXJLypuaEJ9rDMsepSpIzWm IM/5G0YioLQ279IwBlq+BmHlaQcYIp9bahYWyjeHeA3dlQx5wUc1F6AL8rxHQq/HcOlK 2fOD8x9QGmXfE/W73GWQs4cyHKyRWxlwklywHhAn5a/7+vX8UXOeiFu3ALzl3/1+2zf8 8b5bSr/WLJRkpgVoSOnpTguiaIOOh5ZnoQvR90yEJczEX5MpXx4pp9iI75gMHG6rsjta 10Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XwczplXK; 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 c11si207600pjq.0.2019.08.14.10.08.40; Wed, 14 Aug 2019 10:08: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; dkim=pass header.i=@kernel.org header.s=default header.b=XwczplXK; 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 S1729866AbfHNRHY (ORCPT + 99 others); Wed, 14 Aug 2019 13:07:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:56894 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728366AbfHNRHW (ORCPT ); Wed, 14 Aug 2019 13:07:22 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 8B1672084D; Wed, 14 Aug 2019 17:07:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565802442; bh=AXKVkXAIcQuhseNRRg2NooujSMT+DJdgVYb/M/fIze8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XwczplXK4/iaTxdz2CfqLj5R0e3nbmMGusCu6+lYDTc/GjBfC7Od4jVM4qJiCoeF4 /UV+tf443zgPMVYnl1T4d+6KzvSQl0w3ylMey0Ry1LAQ02i1GaQj9xxWcZZhsnn2s4 GD4xYyMV0cZGjaaJhGlj5nY8qIVNTjf3pDxK6BHE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takashi Iwai Subject: [PATCH 5.2 128/144] ALSA: hda - Dont override global PCM hw info flag Date: Wed, 14 Aug 2019 19:01:24 +0200 Message-Id: <20190814165805.299046394@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190814165759.466811854@linuxfoundation.org> References: <20190814165759.466811854@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Takashi Iwai commit c1c6c877b0c79fd7e05c931435aa42211eaeebaf upstream. The commit bfcba288b97f ("ALSA - hda: Add support for link audio time reporting") introduced the conditional PCM hw info setup, but it overwrites the global azx_pcm_hw object. This will cause a problem if any other HD-audio controller, as it'll inherit the same bit flag although another controller doesn't support that feature. Fix the bug by setting the PCM hw info flag locally. Fixes: bfcba288b97f ("ALSA - hda: Add support for link audio time reporting") Cc: Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/hda_controller.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) --- a/sound/pci/hda/hda_controller.c +++ b/sound/pci/hda/hda_controller.c @@ -598,11 +598,9 @@ static int azx_pcm_open(struct snd_pcm_s } runtime->private_data = azx_dev; - if (chip->gts_present) - azx_pcm_hw.info = azx_pcm_hw.info | - SNDRV_PCM_INFO_HAS_LINK_SYNCHRONIZED_ATIME; - runtime->hw = azx_pcm_hw; + if (chip->gts_present) + runtime->hw.info |= SNDRV_PCM_INFO_HAS_LINK_SYNCHRONIZED_ATIME; runtime->hw.channels_min = hinfo->channels_min; runtime->hw.channels_max = hinfo->channels_max; runtime->hw.formats = hinfo->formats;