Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp424205rdb; Tue, 5 Dec 2023 09:02:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2ygK/3a8Hz0apUPqd140sn9kbsAZr/jO5OAKM/VCexBp5Z+5NAnygg9Fq8zo62mCIs0iF X-Received: by 2002:a05:6a00:a82:b0:6ce:694f:62a9 with SMTP id b2-20020a056a000a8200b006ce694f62a9mr1552728pfl.42.1701795749519; Tue, 05 Dec 2023 09:02:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701795749; cv=none; d=google.com; s=arc-20160816; b=Wn7zZmvwGu0taTHvw9ReR61zGwmwTwq/PLuUg3pBbAxtv7eb3rnOgGg6S+pjGU6Ik4 LdIL3NuRlS+L45/NPTBdfn51YQsNrQUAwKEWTwwitMESz7DziQUE4bntRWtJ1CXsIl0e aITi9uKgzVafqnIbacnu9Ud2/e4raOkdF5xoh04dssTdcFybtyT0OM+HK4Q8mAgA5a7Y 3MQKSyPJXh6mD9I40e4HztsbDxxdmpT2W0CKVFPgf2ZKaY8cwexT2oAf3ANE8FW6Pjgt G0cEWNo9IIHd7imZ20a1ApG+WAjCt+XrHfHYrQVbkRoHlbU6Mrq5geCZttEsyu0H65Sg wcKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=ruiFdoZv/GRLi+urN+tIZaiFgCx/lBkrInpBwBXVld8=; fh=WJYg5CdbCz0HQvbeBy+a649ekTtZ7aaV5HvM7nZLxeI=; b=kUaWt8Wm8g7GuIoIl9kGN2cj8xx2CwMUHHDkavcbvyFN67XwG0VeBEgcBX2+pzcOm6 ZyA+xRnMk3MFvTmga99E79RrwJ8sUb1QfubOSuc3GTxDXYpySUH9dzt/DQJNda3wxV65 TBRPzmApIPG+8aH1xp4DU4I8UT0vRxaCwQzW078OW2wnI3Zez1wckCbn37OdLOzsWxNV Tl6wb9Ovr5BBNnX7nI8iGtm2P/uATvubObL4o2XH0c8mlhCvUL335g4TNEU2kVWGH1w0 tU2Hnkql6WOh/79seAClE4SQ3mRzv7KN/Lt7DDzmEDhrdI7HoBo6jSTFmJDC8bTg83Cd m7KA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=irl.hu Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id t20-20020a056a00139400b006cdfad63657si8214507pfg.313.2023.12.05.09.02.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 09:02:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=irl.hu Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 99C64807648A; Tue, 5 Dec 2023 09:00:13 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229710AbjLEQ7u convert rfc822-to-8bit (ORCPT + 99 others); Tue, 5 Dec 2023 11:59:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjLEQ7t (ORCPT ); Tue, 5 Dec 2023 11:59:49 -0500 Received: from irl.hu (irl.hu [95.85.9.111]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D1CB83 for ; Tue, 5 Dec 2023 08:59:55 -0800 (PST) Received: from [192.168.2.4] (51b68398.dsl.pool.telekom.hu [::ffff:81.182.131.152]) (AUTH: CRAM-MD5 soyer@irl.hu, ) by irl.hu with ESMTPSA id 0000000000071509.00000000656F5709.00116505; Tue, 05 Dec 2023 17:59:52 +0100 Message-ID: <9c3846ae0da417c0fe5d4fa2d9d4134143184dda.camel@irl.hu> Subject: Re: [PATCH 2/2] ALSA: hda/tas2563: Add tas2563 HDA driver From: Gergo Koteles To: Pierre-Louis Bossart , Shenghao Ding , Kevin Lu , Baojun Xu , Jaroslav Kysela , Takashi Iwai , Liam Girdwood , Mark Brown Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Date: Tue, 05 Dec 2023 17:59:52 +0100 In-Reply-To: References: <4a2f31d4eb8479789ceb1daf2e93ec0e25c23171.1701733441.git.soyer@irl.hu> <90765ee0-a814-4852-9b2a-020cda98d930@linux.intel.com> <974d41f6c703d9b65ebcd75a2c659cecf13bd877.camel@irl.hu> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.50.1 (3.50.1-1.fc39) MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 05 Dec 2023 09:00:13 -0800 (PST) On Tue, 2023-12-05 at 10:01 -0600, Pierre-Louis Bossart wrote: > > > > + > > > > +static void tas2563_fixup_i2c(struct hda_codec *cdc, > > > > + const struct hda_fixup *fix, int action) > > > > +{ > > > > + tas2xxx_generic_fixup(cdc, action, "i2c", "INT8866"); > > > > > > Any specific reason to use an Intel ACPI identifier? Why not use > > > "TIAS2563" ? > > > > > INT8866 is in the ACPI. > > I don't know why Lenovo uses this name. > > I think it's more internal than intel. > > > >    Scope (_SB.I2CD) > >     { > >         Device (TAS) > >         { > >             Name (_HID, "INT8866") // _HID: Hardware ID > > Ouch, I hope they checked with Intel that this isn't an HID already in > use... > It looks the INT prefix is not reserved. (yet) https://uefi.org/ACPI_ID_List?acpi_search=INT > > > > > > + return 0; > > > > +} > > > > + > > > > +static const struct dev_pm_ops tas2563_hda_pm_ops = { > > > > + SYSTEM_SLEEP_PM_OPS(tas2563_system_suspend, tas2563_system_resume) > > > > > > where's the pm_runtime stuff? > > > > > > > The amp stores its state in software shutdown mode. > > The tas2563_hda_playback_hook wakes/shutdowns the amp, not the > > pm_runtime. > > My point was that you have all these pm_runtime_ calls in the code, but > nothing that provides pm_runtime suspend-resume functions so not sure > what exactly the result is? > > I think nothing. I haven't experienced anything unusual recently.