Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5149011rwe; Tue, 18 Apr 2023 02:48:39 -0700 (PDT) X-Google-Smtp-Source: AKy350Zx0kJeWBopnpO2YDZsQOQMA3/so2Ma9+DZCus3stLaYUAf39r8BdNdc3ODft6alTs6eBvj X-Received: by 2002:a17:902:d203:b0:1a6:abac:9cc with SMTP id t3-20020a170902d20300b001a6abac09ccmr1278137ply.66.1681811319027; Tue, 18 Apr 2023 02:48:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681811319; cv=none; d=google.com; s=arc-20160816; b=xh5JDHXZrn8axiTsTgN2o4Ob0oyrcscinrm27jrBhCQIwJXLTVaglrh3aMnG0vFOMT 3gpeim5CU/Yv6cop6crYw6VU897zqQkREn0cKkvUt3uTYtF/xguXTh/7qjXX0soJndz3 AiAih5Zw88KZF2AI5g6lb8N0FSIlJB0ndqML7F5SKT56NGsUj3Oj3z0oeOD50gxwlh5h sVjGuCgH/5UGtiFGc33oBeT+IyxqAbqIlAKvKncZ42VnvPG2lE9NPYCbgsEcfQr0FBiL Z4C4aIvMBiQtZlm//pdwK/K3mP3Xag8lkOmmnVTeoz1p+9XdRqhiMtL2Rl31GODv0thO 30oQ== 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:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=h2DNN9uAK/0LGB1yyCJ/gV0l/zgtfRP7lir/w0VgvNg=; b=kh9MMtF+4HriUhorSQdc6ouwa97ocEZsmjRT21YWxAkmPKhRpIBvnCnbHAMgX+fS1Z 5vbFNDIAOIScU6UJb9oRv3mzcZDu9rjfC289oErrZ5lBgsRdeEj9BqQUFunqaa1e8pvb Excyy2S/sbDqIA+L2caYHwXqDV/HvF1FyQCKei6f1IBsekDERrVjNap2u3nsDbCaiMs0 f7B8HByv0Yll9aPY5J4wER+956adpPFHJL3puTfCoh9WdQHs/ymiR99XjDwp5SlXej0u 7BC4oWZ1S7aOB60VEP3ajIV9BpxIbnttXyySjXlveQOWzqfI0SzvuRNDzvrp6l1F6wVF /E6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Ku6jUIEI; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=e2L9IOmp; 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=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 6-20020a170902e9c600b001a21fd27407si373990plk.469.2023.04.18.02.48.25; Tue, 18 Apr 2023 02:48:39 -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=@suse.de header.s=susede2_rsa header.b=Ku6jUIEI; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=e2L9IOmp; 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=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231492AbjDRJpb (ORCPT + 99 others); Tue, 18 Apr 2023 05:45:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231294AbjDRJpJ (ORCPT ); Tue, 18 Apr 2023 05:45:09 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50F7A6E8E for ; Tue, 18 Apr 2023 02:44:56 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 0F1641F8D5; Tue, 18 Apr 2023 09:44:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1681811095; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=h2DNN9uAK/0LGB1yyCJ/gV0l/zgtfRP7lir/w0VgvNg=; b=Ku6jUIEIO0ZX3eA0cnLitm2O8jPO64lxUk9wh5NVhpKkU8SbTT8Bi2xMrs2oxfoi42kE81 Qd+CI0ZZ0lpw4gBuJZci0SbzEBTK5XctP/WLP3CiqPH1PbFLCin1lW5CwV9eMd6HtkyyNe pSlZ9Ir4YaehH1nC0KUhUE5vptqp7L8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1681811095; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=h2DNN9uAK/0LGB1yyCJ/gV0l/zgtfRP7lir/w0VgvNg=; b=e2L9IOmppkEfnZkYo7lT7LLPkg651ZsvqGufKr+7UH8HFQJizvGOwJtsDQGQkj8kiJ4Fmv 6MZhWl0BqAy9SpDQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id DA00F13581; Tue, 18 Apr 2023 09:44:54 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id kkF4NJZmPmSfMgAAMHmgww (envelope-from ); Tue, 18 Apr 2023 09:44:54 +0000 Date: Tue, 18 Apr 2023 11:44:53 +0200 Message-ID: <87leip4j8q.wl-tiwai@suse.de> From: Takashi Iwai To: reaperli Cc: , , , jasontao , alsa-devel@alsa-project.org Subject: Re: [PATCH] ALSA: hda: Glenfly: add HD Audio PCI IDs and HDMI Codec Vendor IDs. In-Reply-To: <20230418083312.5208-1-reaperlioc@glenfly.com> References: <20230418083312.5208-1-reaperlioc@glenfly.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Tue, 18 Apr 2023 10:33:12 +0200, reaperli wrote: > > From: jasontao > > Add a set of HD Audio PCI IDS, and the HDMI codec vendor IDs for > Glenfly Arise. > > Signed-off-by: jasontao > Signed-off-by: reaperli The patch looks OK now, but could you submit to alsa-devel ML at the next time? About details in the patch: > @@ -1743,6 +1745,8 @@ static int default_bdl_pos_adj(struct azx *chip) > } > > switch (chip->driver_type) { > + case AZX_DRIVER_GFHDMI: > + return 128; So this looks pretty high in comparison with other chips. It means that the actual position is much behind the reported position. Due to a large FIFO? Or what reason? > @@ -1859,6 +1863,9 @@ static int azx_first_init(struct azx *chip) > } > #endif > > + if (chip->driver_type == AZX_DRIVER_GFHDMI) > + bus->polling_mode = 1; This looks odd, too. Doesn't the hardware give any interrupt back upon the CORB/RIRB response? > --- a/sound/pci/hda/patch_hdmi.c > +++ b/sound/pci/hda/patch_hdmi.c > @@ -4489,6 +4489,18 @@ static int patch_via_hdmi(struct hda_codec *codec) > return patch_simple_hdmi(codec, VIAHDMI_CVT_NID, VIAHDMI_PIN_NID); > } > > +static int patch_gf_hdmi(struct hda_codec *codec) > +{ > + int err; > + > + err = patch_generic_hdmi(codec); > + if (err) > + return err; > + > + codec->no_sticky_stream = 1; This hack is needed for what reason? thanks, Takashi