Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp472699rwd; Thu, 1 Jun 2023 02:52:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5kJEb4ky+OnGuuYOKoY4ZXDwVf+0FMREKReI1MfhCgyDcgTEdnjjRdaJP7K50peSfUFftr X-Received: by 2002:a05:6808:434b:b0:398:bdb:956a with SMTP id dx11-20020a056808434b00b003980bdb956amr5838050oib.35.1685613175889; Thu, 01 Jun 2023 02:52:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685613175; cv=none; d=google.com; s=arc-20160816; b=DQpH+CuLsqIO0GLxBiIGXQMFnSuMxrlP78Wmo5Xanh3UWTEoeYwSgQRFK2JsaFIdrj SbUtlRclv0qz9vTtLhLbOi/A+UWwqgOmaiYQe1ZhqRpAL5a5QVo8OWOaQi7Yo1+N/Hj7 /L4E9hLBKdVkDNFprRcIMzOTUx8Vet3xIIXR5LEHRT2otNjjBHC2FlHdpQBOowpZr9Gq /wu1tFFuXR9vzc0dwYfJku57FUfyW+j43mZULa+JJVXZRMCSxiUj0Pl0/+831/rSRnzG LQ5dNFZaI0ub2VATwPd53cBLraAqPDR1Gve9dIxhyvutpWWKfbgmHcdRBqF88Jyv9Una /LlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=8slAiQhtNeEDPH5cE2i6jmsGl9SnzMbGOVBPNnG5StQ=; b=whcf/YPGh7XstofalvyeypUpoD3STASYC3VUQAM73J9VzXNBDFQgLt7IJqvV1o9hei BarUgxzoySxm1oBbMoHS0Rdt13n5GgAB7B/PitYeMUNnTXBNCZX12tefJ0+jQPAtG4aM p2bie0jKhQcIPsECSriWlqDR5C8+XdYj6jdUWAnn+bDXVU/DHgvkEnEuMjKGfAavY7Rg ygxcZOUBNqztou0IAnP0YBBXHlcvFSkIS8yoOuZzW5oeIrlTRvNhJEJDzUB4Qdepe917 QDb4/Q9q3MdvcA+D4mTip9WhdYPc5tjGtOkW/Bh8cTE+VWaKeGOrZ/DW4WYYNYXCwf5o 7+GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=QsDRgCTB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q136-20020a632a8e000000b00534873a6643si2547283pgq.329.2023.06.01.02.52.44; Thu, 01 Jun 2023 02:52:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=QsDRgCTB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232258AbjFAJnz (ORCPT + 99 others); Thu, 1 Jun 2023 05:43:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232910AbjFAJnu (ORCPT ); Thu, 1 Jun 2023 05:43:50 -0400 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D03D0E48 for ; Thu, 1 Jun 2023 02:43:30 -0700 (PDT) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3515TBNB016524; Thu, 1 Jun 2023 04:42:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=PODMain02222019; bh=8slAiQhtNeEDPH5cE2i6jmsGl9SnzMbGOVBPNnG5StQ=; b=QsDRgCTBFtDzm+U2RhfKxqISLvpAdcBvJLxn1OBMIjtbZz+TJrBNQyQCwVpcx37oWgly Grr7uqq/g9B5WkWboIK5GJ5ayKOrz0btQbggtnHN0hVvTBzxBZR3yLSlpoISBJi6A4aW VKionq2LYUI3Kcn7OtZl4+VGsyKr3qtNOZfIchWRwR2zNFc3NF0sqMWBvbx8DZicXQDR ykauWIX2J3OOy/00HExLWTl6F13ZNinWvY9PYfNAeSEPiXHUthOoZp71MSmrSzc9cOcI 1hI+83D9F3hlfRZjo+G/NjPcwUtP5PLsCbm1bcOzfy4SRolc8kFTDt1A6HtbTyPOMTyS 1Q== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3que9mx33j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 01 Jun 2023 04:42:58 -0500 Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Thu, 1 Jun 2023 10:42:56 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Thu, 1 Jun 2023 10:42:56 +0100 Received: from [198.90.251.45] (EDIN6T9W333.ad.cirrus.com [198.90.251.45]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 92A8745; Thu, 1 Jun 2023 09:42:56 +0000 (UTC) Message-ID: <78488c71-eef5-1a44-0b85-73c7ad0848c9@opensource.cirrus.com> Date: Thu, 1 Jun 2023 10:42:56 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: CSC3551 and devices missing related _DSD bits To: Armas Spann , Luke Jones , Takashi Iwai CC: , , , , , , , , , , , , , , , References: <1991650.PYKUYFuaPT@fedora> <87jzx3zaf8.wl-tiwai@suse.de> <19d69a5da8f1d4017ac14ed87f927ab82278073d.camel@ljones.dev> <12102f7419c5e44cd2133aa769e25dbd16f4e0c9.camel@codux.tech> From: Stuart Henderson In-Reply-To: <12102f7419c5e44cd2133aa769e25dbd16f4e0c9.camel@codux.tech> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Proofpoint-GUID: PgAw9JbGgD11sbnj0iAibcqjVuEEYWGw X-Proofpoint-ORIG-GUID: PgAw9JbGgD11sbnj0iAibcqjVuEEYWGw X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Hi Takashi, Hi Stuart (and of course, all others in here), > > would you mind to evaluate this small (pseudo-)patch to be harmless? > (concerning the blow-up theory the first answer in this converstion) > > I won't push it upstream right now but I want to know if this patch > might be harmfull. I'm owning a GA402XY myself and we digged out that > the initial setting of the cr3551 can be done via: > > diff --git a/sound/pci/hda/cs35l41_hda.c b/sound/pci/hda/cs35l41_hda.c > index 75020edd39e7..eaa06751bd48 100644 > --- a/sound/pci/hda/cs35l41_hda.c > +++ b/sound/pci/hda/cs35l41_hda.c > @@ -1243,6 +1243,12 @@ static int cs35l41_no_acpi_dsd(struct > cs35l41_hda *cs35l41, struct device *physd > hw_cfg->bst_type = CS35L41_EXT_BOOST; > hw_cfg->gpio1.func = CS35l41_VSPK_SWITCH; > hw_cfg->gpio1.valid = true; > + } else if (strncmp(hid, "CSC3551", 7) == 0 && strcmp(cs35l41- >> acpi_subsystem_id, "10431463") == 0) { > + // TESTING - (Hook for GA402X) > + dev_warn(cs35l41->dev, "Warning: ASUS didn't provide > the needed ACPI _DSD properties for GA402X series, using defaults.."); > + hw_cfg->bst_type = CS35L41_EXT_BOOST; > + hw_cfg->gpio1.func = CS35l41_VSPK_SWITCH; > + hw_cfg->gpio1.valid = true; > } else { > /* > * Note: CLSA010(0/1) are special cases which use a > slightly different design. I wouldn't recommend making speculative changes like the above. There are no "default" values as these attributes describe the hardware for the particular device and these can be different on each SKU.  In this case, it looks like the boost is being set incorrectly.  We're looking into how we can support these older devices, so please bear with us while we investigate.