Received: by 10.192.165.156 with SMTP id m28csp2842329imm; Sun, 15 Apr 2018 10:19:11 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+0tQH/ugw7+uNz8h0ivIQefBr1Nvbtj4P4jcW+JLOmBYPc8XffdVRbxaVWJsV5e3Zc2uT1 X-Received: by 10.99.2.202 with SMTP id 193mr10565491pgc.117.1523812751547; Sun, 15 Apr 2018 10:19:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523812751; cv=none; d=google.com; s=arc-20160816; b=jeJ+Kxnu0ZJpCuEaxOTg16otdFDtgnPOF96nI0OvkdPEFAzEzm3rveE4fMlXc+os5d 8NUccaIUDZhpp/o6vUVCXNcGSSdV5MI2FK76qWjoINwF749Aj188ZIvHRJbqPrcR0xyq ubMCXYTQyX40gZHNb31Sxk5UBqdffNo/lWfbVo/SvXpTyRl5eTBN+1M8RomhZES9goJI Fg7cisnNCF60EtH0z/Nr+NTSsRglX7wbiy5zVPMxH8KdUHZQiC5EWAHZOijNwxi1p84v FEZ7bxc8SLZ4c77CCoBx8D3MOeP8LqfYio+wY38NRp0QNJ+afRZH1h4mg0kkCcO2rC+o mwNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=fLOvQAnMg7SILm8uMXb8qwDNvG0CUacuAH6rrJZ/3a0=; b=x2iJfWgJMs+fxp9blyk9OKZtQ64wjescI0cfkTfN7FDu4yMbribDaxKTSowqHlrm1A 94fZM9kA0nft+b5YN07UHMioF/b/ham/wzBZ+nVWALJFmjgVTwSvESdJrEtE4WyJzvxI /n7p4JcdTA61NgwqsB81TaXgGjqD+SV4/P7QCGXJ18nipRd8m0iG678HvdjdvIQyl7E8 0st1qYTo+dkwSYYt6Fqo3j5EzyA0nHcV57g38O82yQF1bDOoDJNV4WgeW2N1ATwNqX4X jGtK3n9onrQa1irHVUVDHE8pa3NCL1XASvIoBg6rHWZIc2MbRq/xOv53MpXAKSHx2kZS AZxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BkinOmjx; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b10-v6si5818866plb.281.2018.04.15.10.18.57; Sun, 15 Apr 2018 10:19:11 -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=@gmail.com header.s=20161025 header.b=BkinOmjx; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752577AbeDORRv (ORCPT + 99 others); Sun, 15 Apr 2018 13:17:51 -0400 Received: from mail-wr0-f176.google.com ([209.85.128.176]:33579 "EHLO mail-wr0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752460AbeDORRt (ORCPT ); Sun, 15 Apr 2018 13:17:49 -0400 Received: by mail-wr0-f176.google.com with SMTP id z73so19793670wrb.0; Sun, 15 Apr 2018 10:17:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=fLOvQAnMg7SILm8uMXb8qwDNvG0CUacuAH6rrJZ/3a0=; b=BkinOmjxfSB+Y5fcgMYHsvEaXapk/PWWkVr7+MTeX1VlfBjXGRTSh6FWt3JWr1tUHR O4MqCM+QJQB/1co9qWHZm4YhxXZD0Nb4u6Gylv7WvQ5ionGz8D4QZxR8VP/QWO0oXXpY UcQKI+3uyTzwUTc0am/8wjWXPVslHxahCXLHZIY3SQxvGvS+xyhkxkjErdDCPSpbAQ1q N9crchPOrdIc6iSEezxsp5VqYBexnu1xoTRg2vRyVXsNt7/NC4JYH5kqY6fyInXsSrpZ F+cOsi7VbkkqubZdBuKIvnpR/51jwi8OW7z81FFl38Wxn8Nq76NYvgYEyIMNZzfDuRfL 3MHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=fLOvQAnMg7SILm8uMXb8qwDNvG0CUacuAH6rrJZ/3a0=; b=C3htvXTNo9OpcWLImi/sJcZrSnSp9Zx1bqVQNXsQ7kTuRHL7y9lySecwJ1qbtIURHb mfeGbZDzZWMlzbYGrkONQZtAckvWEAVkvuTC2aQwwlEcHIuhslLnyJVuJ4IHoLc+VHZU hpSdPc7FnAcbZkCMeDK6BLR4I4xibtWlYQMtnZnWqhUjWsspcqF3e/H3MOD97Vk2xIEv 6CwKDMa+G7LZVAhadt8ufQJspkjUvahnFGtfAGhufGB8CWw2o4A/3fr1VvpYF5u/2ipi 6it3XMnZDPxvKGT0wN1X7kDpFUAZca4CVCcF2F2j/fyFgbF+qfImOFHWLVsv0IFUQQ59 xAxA== X-Gm-Message-State: ALQs6tARWeke+o8aK/l+FER5ssclFaLMEgAAul8c92l4Z2USdIVziT8T Ako8Qhq+lwcJgXCgTEEFaU0= X-Received: by 10.223.166.161 with SMTP id t30mr8458036wrc.1.1523812668448; Sun, 15 Apr 2018 10:17:48 -0700 (PDT) Received: from pali ([2a02:2b88:2:1::5cc6:2f]) by smtp.gmail.com with ESMTPSA id p4sm10770783wrf.27.2018.04.15.10.17.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Apr 2018 10:17:47 -0700 (PDT) Date: Sun, 15 Apr 2018 19:17:46 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Lukas Wunner Cc: Kai-Heng Feng , Takashi Iwai , mario.limonciello@dell.com, andy@infradead.org, dvhart@infradead.org, mjg59@srcf.ucam.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org Subject: Re: [PATCH v3 3/3] ALSA: hda: Disabled unused audio controller for Dell platforms with Switchable Graphics Message-ID: <20180415171746.futkvgbaoj6quy5z@pali> References: <20180412104239.25584-1-kai.heng.feng@canonical.com> <20180412104239.25584-3-kai.heng.feng@canonical.com> <20180412105909.tbyfcjm55sb47hiq@pali> <93DC0F40-81A5-49C6-A470-0D1B6AA85725@canonical.com> <20180414104512.GA27158@wunner.de> <20180414104950.ngomyjy5l5cwhb5i@pali> <20180414111711.GA4245@wunner.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lsvnox7sxk76vpiz" Content-Disposition: inline In-Reply-To: <20180414111711.GA4245@wunner.de> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --lsvnox7sxk76vpiz Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Saturday 14 April 2018 13:17:11 Lukas Wunner wrote: > On Sat, Apr 14, 2018 at 12:49:50PM +0200, Pali Roh=C3=A1r wrote: > > On Saturday 14 April 2018 12:45:12 Lukas Wunner wrote: > > > On Thu, Apr 12, 2018 at 10:15:41PM +0800, Kai-Heng Feng wrote: > > > > Do you have any suggestion to check if it connects to the system via > > > > Thunderbolt? > > >=20 > > > Just use pci_is_thunderbolt_attached(), introduced by 8531e283bee6, > > > like this: > > >=20 > > > if (check_dell_switchable_gfx(pci) && !pci_is_thunderbolt_attached(pc= i)) > >=20 > > And what about PCI-e device attached to ExpressCard slot? >=20 > I don't know of a bullet-proof way to recognize those. In theory > one could check if the PCIe port above the GPU is a non-hotplug > root port, but I think there are machines with hotplug capable > root ports with GPUs below them that aren't actually removable. >=20 > However I think ExpressCard-attached GPUs were rare, much less ones > with integrated HDA controller, so in reality that's probably a > non-issue. Hm... maybe another idea: Is it possible to detect which audio pci device belongs to graphics card via vga_switcheroo? Currently, looking at output it is same PCI device as graphic card, just different PCI function. --=20 Pali Roh=C3=A1r pali.rohar@gmail.com --lsvnox7sxk76vpiz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQS4VrIQdKium2krgIWL8Mk9A+RDUgUCWtOJOAAKCRCL8Mk9A+RD UuYYAJ9Lpy9Pz9bUaG+MA2favSZebY/RQACfTgw6dpp4U+1FXTlc++IA8aitEX0= =vVLS -----END PGP SIGNATURE----- --lsvnox7sxk76vpiz--