Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 08FD7C25B48 for ; Mon, 23 Oct 2023 18:46:11 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 75D2493A; Mon, 23 Oct 2023 20:45:19 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 75D2493A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1698086769; bh=jDwciitYmk8u5u8zSmhyK5TzvFy4ruKbgSjxwCQTnn4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=WVqZW8rBQHE9+XgCLJ1IXxVy+MQzBRwNGoQ0aLSnKtx5VH7kh3Jlf4QAXlE4ApDJU ExWZFD/RWvnIlRNqt83HJw/cfLzESD8veqvlDCHPPL+00jRkYvf07mUFB1z9EUdl1A JzLsu3Cf6PeuWYNMviqItLUau3q+XqyNuYV3FZI0= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 00C20F80557; Mon, 23 Oct 2023 20:45:18 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id BB1FFF804F3; Mon, 23 Oct 2023 20:45:18 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id CD439F804F3; Mon, 23 Oct 2023 20:45:15 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 60768F8024E for ; Mon, 23 Oct 2023 20:45:11 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 60768F8024E Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=HbsFlgC4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698086713; x=1729622713; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=jDwciitYmk8u5u8zSmhyK5TzvFy4ruKbgSjxwCQTnn4=; b=HbsFlgC434nJ2kuYpQaKYnyDKhZBzxLnFHKByoyD1cuTszmO3RyXKgBl lK05Gb7bbAJv3G6cwZY/St57lw0hv3c5Sn/TUUpRzPGWWfz5ooKqw5VY+ OSmWs634F1qvWGpfy8e6L9ixpEoFdnvMFaVR3nfEVVB4uX6HvkEMfptqL AexmpBOlvkOfKCy2o4i8rHrq/TcKKciisRb4IomhhVC5bTW1jBQuN5cvl 2YDSmm2SCYjloL424djWhHUXaOvXjaQNxHkY9NKbBHxFVCQoXB5ioc9mp jKyP25MUtPfdQia57crP8Rmq04qnUVYKma00IU8nc3brBUnQRHTYIARRQ A==; X-IronPort-AV: E=McAfee;i="6600,9927,10872"; a="390789272" X-IronPort-AV: E=Sophos;i="6.03,246,1694761200"; d="scan'208";a="390789272" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2023 11:45:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10872"; a="848857211" X-IronPort-AV: E=Sophos;i="6.03,246,1694761200"; d="scan'208";a="848857211" Received: from weiyiwil-mobl.amr.corp.intel.com (HELO [10.212.122.211]) ([10.212.122.211]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2023 11:45:09 -0700 Message-ID: Date: Mon, 23 Oct 2023 13:45:08 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/6] ASoC: Intel: soc-acpi-cht: Add Lenovo Yoga Tab 3 Pro YT3-X90 quirk Content-Language: en-US To: Hans de Goede , Cezary Rojewski , Liam Girdwood , Peter Ujfalusi , Mark Brown Cc: alsa-devel@alsa-project.org References: <20231021211534.114991-1-hdegoede@redhat.com> From: Pierre-Louis Bossart In-Reply-To: <20231021211534.114991-1-hdegoede@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Message-ID-Hash: PD5EE54LPH2MEUG3G3BLZETBT7KS3HM7 X-Message-ID-Hash: PD5EE54LPH2MEUG3G3BLZETBT7KS3HM7 X-MailFrom: pierre-louis.bossart@linux.intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On 10/21/23 16:15, Hans de Goede wrote: > The Lenovo Yoga Tab 3 Pro YT3-X90 x86 tablet, which ships with Android with > a custom kernel as factory OS, does not list the used WM5102 codec inside > its DSDT. > > Workaround this with a new snd_soc_acpi_intel_baytrail_machines[] entry > which matches on the SST id instead of the codec id like nocodec does, > combined with using a machine_quirk callback which returns NULL on > other machines to skip the new entry on other machines. The work-around sounds fine, but out of curiosity what causes the codec driver to probe if there's no ACPI HID? Really wondering how we avoid the -517 error code with the deferred probe never completing because the codec driver never probed and registered the needed components?