Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1072807ybl; Wed, 14 Aug 2019 10:15:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwJV7yQLIZqwg4R5N2I7Gtp9PHniDkbCHmJdDQ0nkkxGEhqVMhATYRcio2/PLbMIhyu1Z0w X-Received: by 2002:aa7:8dcc:: with SMTP id j12mr1002080pfr.137.1565802918775; Wed, 14 Aug 2019 10:15:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565802918; cv=none; d=google.com; s=arc-20160816; b=aBVjQ1IJgs55mNcB0kkz6ARwaRXkX5EsC3ZN7BGJoOJ1XxS5gfKCFCk8LU+9XCDGGl PhTiifXiFxOBpYKeNUViX2+H/C/sQDzgRJhz9X791EQeUwuXzYG4Vd1++80rY5FV2O3A dVUcwxqzXKYMR+v2TwvpiAhLJQyUTP1R5u0S5txGSXyFYFoDxt2Ej4BEg603tLjnKmuh CLL1Mh+ezOaoiu6lF30lo4bS7y6E0ttsyU1TRFquMNc37nKAgrwa9HmaRlXUYUync2lW ThPWEv5K6fXMxDUakjZP0JJlKdF/e2mLPEyxOsPAzGAxfwG8NXWB6Lw0t1aJ86JMX6f1 xZqA== 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=6kw3LQWZeQzzLBMxwqeBImI5FF0oCOH7IlTeTl5D+2s=; b=Ja+idjQoUxs6jQVw2PekZF8kRpQ5c3MqIjTxZRkJt7xmZFbuspeyp+tXygArHq5qQv LjIVJzt+SbKkTV9fuRxdPhp++I7PJf0Eo1BK2ADFx9doNWorzwXHQABMoZBhLaA7ctjN GeQ13a0dpyGw24DJPQdVM6PHqM89xZ9vIzPU95Gb+UQl7eFvXwbhd4zWeLLXxoIkXH59 gIsC5ImRq5+HhdpdA3BN/cJE0pduZFvKz83haRjRr6MTZXY5/E7RwRfKUQcg7E3BaTNi 56+BH1oqgDAG6QLDjLeMIMoUgl58tnzK9uYg+WooI/3fjcdf/OjZYMYRSThgDP2cs+ab ZbvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iHUtV3kA; 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 i1si177937pgs.132.2019.08.14.10.15.01; Wed, 14 Aug 2019 10:15:18 -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=iHUtV3kA; 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 S1730641AbfHNRO3 (ORCPT + 99 others); Wed, 14 Aug 2019 13:14:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:38946 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731088AbfHNRO1 (ORCPT ); Wed, 14 Aug 2019 13:14:27 -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 E0D6520665; Wed, 14 Aug 2019 17:14:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565802866; bh=GxpXIsPHFbuaZBKjNQf/MJm4SWd/jFG6S2Ae0i4PNOU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iHUtV3kANXjAYXPeUKQOc8W/kpSKZPxthfPujhuT+izBJ0KOEp66I0AixCsVPeRGi jqEJ6uiXKbuYgroabK+T0auO1BLT/4cGb36nLZUhA7x7DkrlPs/ZdOvUsorG0tgWpA vsvssTzcAWDHqhUunqy0U/Z6F+xLUFF2buWnGvSI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takashi Iwai Subject: [PATCH 4.14 57/69] ALSA: hda - Dont override global PCM hw info flag Date: Wed, 14 Aug 2019 19:01:55 +0200 Message-Id: <20190814165749.343060041@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190814165744.822314328@linuxfoundation.org> References: <20190814165744.822314328@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 @@ -609,11 +609,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;