Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1070790ybl; Wed, 14 Aug 2019 10:13:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqygRwqAEjLW4D6wE5ZruRs5mKHYNzPprF2qw/JB4/ApLou1J6uxbzY3NQ7eogyoa4eH9sxE X-Received: by 2002:a17:902:59c3:: with SMTP id d3mr457189plj.22.1565802809301; Wed, 14 Aug 2019 10:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565802809; cv=none; d=google.com; s=arc-20160816; b=Og2jtJxh9+H7+EIMFZyuX7pew6/IR57YRrLXQdfzDCZdEx907Cy0xsUPSDbm8fXRL1 XBJxGd54Q0QTdYlHPgG0v9x1CD4yryUuDkfT0hTF8aedFgappNFFEPwf8+SSiIh9XfKK leUkPzBl5AY8Njo6asErvxkZiymxVHsxY6fUU/A9S0TgIs5f6e+YCCCkhncQTVDdVs9n 1jgrTmp6avnBqlT5vv+bTIjoXmHrTDnyIZPIY9WX7AxSGmBA6rf+ObId5IJ5gFAURfHi 56STewxzIqvfujSWuHOwdM+q0D5kAf+d5JNNMA1yxkcMqhxQY88qEBVfMb0q8YdABRRf p1Tg== 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=XWebLASt+LUI6dOl5fi0ZG9Xhf2/oX9J4TEZkBeH4Wh+7DaJci85O1hatCQcc8IDLj 0uwLGNEWKdsgVNdHac/DVuOcsH4eZlLeKXEmk3aCXLW4iLsBC1pOuFaQ4v4ZGoOUIw0G URAzjLrLxLz52jxlc1qNkUz3fwB3wdQPAxRpoMaraPmUW9G5VackFNtiqH8Jd+W5Okff Or/LrTthOkFL+r+wWrvJMTPb2xyexmmJsEp7eNZAEjXCRB7ne431Ui2W/Lq/v7wu/uem ocIieBs50P8XkEniakKFM8tWaF+i5xOcuX+3Go2ukZiiTVDExkCjn6EHkobTZuURrCpd q3aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rN0zuKbx; 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 x6si169456pgq.473.2019.08.14.10.13.13; Wed, 14 Aug 2019 10:13:29 -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=rN0zuKbx; 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 S1730596AbfHNRLb (ORCPT + 99 others); Wed, 14 Aug 2019 13:11:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:34788 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730593AbfHNRL2 (ORCPT ); Wed, 14 Aug 2019 13:11:28 -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 DE23E2084D; Wed, 14 Aug 2019 17:11:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565802687; bh=GxpXIsPHFbuaZBKjNQf/MJm4SWd/jFG6S2Ae0i4PNOU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rN0zuKbxBWUwJgh66453mWexq8EQM02tcqCbkFPcG0h5+sV5l2KSOpEMcMGiLsH94 2odNlO8LgRXu9Q9776ZDQ7e9q/rbFM08eFylW4n8piVGlrZZdLPMGgfbumiH8q32w6 K2A+/Wd8b+tiwAvOyxZK7jpoi8mnzEscGrzC2Ds0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takashi Iwai Subject: [PATCH 4.19 79/91] ALSA: hda - Dont override global PCM hw info flag Date: Wed, 14 Aug 2019 19:01:42 +0200 Message-Id: <20190814165753.197799791@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190814165748.991235624@linuxfoundation.org> References: <20190814165748.991235624@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;