Received: by 10.192.165.148 with SMTP id m20csp3146544imm; Mon, 23 Apr 2018 01:06:44 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/Re7V7PJ//tsZZVakG72aTHatzX0/zv+OtE8Vt3zKXKJfQi72ZhtPc2rcdWanPsfhT45ZU X-Received: by 2002:a17:902:144:: with SMTP id 62-v6mr19919499plb.202.1524470803969; Mon, 23 Apr 2018 01:06:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524470803; cv=none; d=google.com; s=arc-20160816; b=kMEyDidH6DfQe6yete/6MiGU20EgYRAqPxKR3By2Xh2zwEukS7AmvUW13IM1QNVJXf QtCyLlB4dPtp510BXgUcP75B1dgGMIBCcfb85FUxp7KqbF5yrrgAXVcSl9ptkX7Ef9+c 4NF+iPB2BBsI5s+clDaj8MwLcx7DZJEDB3f2Pxa/OI3Y2h9Paaz56flRSRXeQx6NamYU 3pj/s5J2F5MAbs3Y2Wf3p/u+jSu0VCZKfq+tBZrcY70eDK/eObjeOY5y9KAuPGBAfu86 uLX3GzCQrN0KHFpszaL0OPc9g3mOZK+rAyXx2b3VVnRHWOLDM9WODHoIFL96YHFYCIad 63Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:arc-authentication-results; bh=eIch79UeyaqxSRMGc4VJ5eLypSLQ+wwgC6lW5kyA0n0=; b=AmB1UuNBGlGfNq9D9jZPVAvCMxYVd8unM+wYjXZM/65EO1aaRQFGUR4UOrUTKU9hCi BXJgGBqNXfstw4GQVR9XDU8Gg5QKbr/7PLzZbH7lhuPtCtINwV03AMmr81jMnoDEAsZb eqJj9/SwbgxOkvEm7ajSf4VJr7a/nHyvysKG5ZjGuleTK79WdAhpH2oPh/tVn3QOwcjy A47GnFju6Gz6kFEZ2mMz6hfgzLTJpx37wdjU4cw06HDyRkeiYNF2ngMi1zkzAjl6/+5Z 5vtujgQWsr6DTlflyq5ysp0IKW9LNHXXhfCyeFkA8aa2W7kwF3NPBIm53QsWGuXMKtqX p45Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x10-v6si9571776pln.120.2018.04.23.01.06.29; Mon, 23 Apr 2018 01:06:43 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754191AbeDWIFI (ORCPT + 99 others); Mon, 23 Apr 2018 04:05:08 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:53395 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754033AbeDWIFE (ORCPT ); Mon, 23 Apr 2018 04:05:04 -0400 Received: from mail-pg0-f71.google.com ([74.125.83.71]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1fAWT8-0001UV-Un for linux-kernel@vger.kernel.org; Mon, 23 Apr 2018 08:05:03 +0000 Received: by mail-pg0-f71.google.com with SMTP id i127so6031143pgc.22 for ; Mon, 23 Apr 2018 01:05:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=eIch79UeyaqxSRMGc4VJ5eLypSLQ+wwgC6lW5kyA0n0=; b=tTJ0/H3KuSFbqlxRd7QNLN6uGnWbYMOlAzaPjC6P8UoK/xvNq9raeE575xuhum3MXM SgTzhtU9ZFULgzfYqnnFBOUwlErrf8KadpuV9PjKdihxNEG9v8jFogELeupruPDTkL7T wGwfMkt0nM6YcsDaqd6BXiNFPnEDy6Q3w/l7moS4Vf/1EdifAFGPQznuyVz1Piob+M5W jIkn0oxk3XpgBll8ZKoyN9J1XeMahsSX4wqfmWwsoog9/dGFBQjl3e4MPErW9cfdcBTp 1gvKPeUnvf6v/zG4BNXY6C6MGwjAqRgZ1AWmVleYlZAr12u8vsHgqRRSIw1YqrcUlZfu Lu4g== X-Gm-Message-State: ALQs6tDkGmorwde8P1DC/+baD6SKR6LchCwH1Y3JyymRktvqwZw98H7J WWtExsAyM12T1vqDeOpL300bAnGGeimEuP9Qd0/Ar3P2B7NF+SxAteXmC21Vek9CZDqai8WX4MJ O0UYJb/+oiCF8ToppZWY8pJmPUmYtPbqB1FcHBZOSmw== X-Received: by 10.99.0.4 with SMTP id 4mr16005904pga.107.1524470701560; Mon, 23 Apr 2018 01:05:01 -0700 (PDT) X-Received: by 10.99.0.4 with SMTP id 4mr16005879pga.107.1524470701106; Mon, 23 Apr 2018 01:05:01 -0700 (PDT) Received: from [10.101.46.95] ([175.41.48.77]) by smtp.gmail.com with ESMTPSA id q17sm17042157pgt.70.2018.04.23.01.04.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Apr 2018 01:05:00 -0700 (PDT) Content-Type: text/plain; charset=us-ascii; delsp=yes; format=flowed Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: [alsa-devel] [PATCH v4 3/3] ALSA: hda: Disabled unused audio controller for Dell platforms with Switchable Graphics From: Kai Heng Feng In-Reply-To: Date: Mon, 23 Apr 2018 16:04:55 +0800 Cc: mjg59@srcf.ucam.org, =?utf-8?Q?Pali_Roh=C3=A1r?= , dvhart@infradead.org, andy@infradead.org, Mario Limonciello , tiwai@suse.com, alsa-devel@alsa-project.org, Linux Kernel Mailing List , platform-driver-x86@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: References: <20180420094432.13133-1-kai.heng.feng@canonical.com> <20180420094432.13133-3-kai.heng.feng@canonical.com> To: Takashi Iwai X-Mailer: Apple Mail (2.3445.6.18) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Apr 20, 2018, at 8:10 PM, Takashi Iwai wrote: > > On Fri, 20 Apr 2018 11:44:32 +0200, > Kai-Heng Feng wrote: >> Now it's a typical discrete-only system. HDMI audio comes from AMD audio >> controller, others from Intel audio controller. >> >> When SG is enabled, the unused AMD audio contoller still exposes its >> sysfs, so userspace still opens the control file and stream. If >> userspace tries to output sound through the stream, it hangs the system. > > Hm, could you give more information about how it hangs? Well, I should say "it hangs the userspace process" instead. $ speaker-test -t wav -c 2 -D hw:CARD=HDMI,DEV=3 ...and it just stopped. Can't Ctrl+C to break it. > > >> @@ -1627,6 +1629,42 @@ static void check_msi(struct azx *chip) >> } >> } >> >> +#if IS_ENABLED(CONFIG_DELL_LAPTOP) > > This should be IS_REACHABLE(), as both dell-laptop and HD-audio are > tristate. Thanks, will update in next version. > >> +static bool check_dell_switchable_gfx(struct pci_dev *pdev) > > I'd remove "_dell" word here. Such a check would be likely needed for > other vendors, and it's quite possible that the function will be > extended to cover a wider DMI table. Makes sense. Will also update this one. Kai-Heng > > > thanks, > > Takashi