Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp17447243rwd; Tue, 27 Jun 2023 03:12:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Bl7tFSXcPxetQWkxb4XViGn6YxhRG8CcznhGP4ma/jEyghB0vWyddue4x+i6SXBHORr2C X-Received: by 2002:a17:90a:f994:b0:262:ebb9:dd55 with SMTP id cq20-20020a17090af99400b00262ebb9dd55mr4101945pjb.45.1687860742772; Tue, 27 Jun 2023 03:12:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687860742; cv=none; d=google.com; s=arc-20160816; b=ia1peMRGDHhdOzTQrKg9jPJb1rD6Chq3//gNYbbyr5ydsrCfzm6CyUOAM8GTg3frb5 BxzI7f27GShw39S2yzRP012D276A7kZUT8do7xDe/yB1EBxGXJDFroeXsY3MhzbGhV5b hH5WTfKjOR31xDPNT3aAXL/Sx7Y3dGy4oJlmutjuBxRz5WvuUSKOJNKqeSYu4JqvZQxl 5Se6lzZ7fVbfiIH1pryDlsIF9Sam/xRyutJNcGcRudNzYxlsDhAEbb4iXwwkyXzdPtl5 OOQTNkpAtEYQfllFIZl98U67Gdf887UEXTUbgxJOfPrA/SWDWYt9vJOME5QGEsBxf9kg nTXg== 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=hP20W1aJRMG/CkLQ6EbxLZKVcTb46pBaae045QQFSpU=; fh=fUq3/i631FMVdi0gS9B+YnQ3dc28F569ITdGRmj52ug=; b=S/YlOZoOJ9Bpvz8wAWNEA5J3qISyz1TherbzzEbwttrNnqvfJwsdjAOWq1SOaiw2Rm D4WmdW0pssGRSU8UTt70Z6pOG5qYHhJEIu+R1HgyfZZIre9obXxZu4MIp2oKh5EttDhi 4NU2QjWAa+UDSjO90ok/a8UxeyZA2yHRiT4nWhu75o+ShIrji8n7mt+vq7hGA6KyrmOO vDcKVWoClaYPaVvyQbYaqD5XxbzudYP/us5zBcjM72vJmK22cYjuDPF3Zs+u0O0AggDG YMZTo+StgQ5ewweEv61pWovwz8ja4hbcs5I1RrA0JtepxV452y+/oZWgX/FNuK7WSSjk 97ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=QXDXJTsE; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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 b6-20020a17090a9bc600b00262ec69bd80si4317479pjw.72.2023.06.27.03.12.02; Tue, 27 Jun 2023 03:12:22 -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=QXDXJTsE; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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 S232064AbjF0KHB (ORCPT + 99 others); Tue, 27 Jun 2023 06:07:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231925AbjF0KG1 (ORCPT ); Tue, 27 Jun 2023 06:06:27 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06AF9469E for ; Tue, 27 Jun 2023 03:02:48 -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 B4AE21F8BD; Tue, 27 Jun 2023 10:02:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1687860166; 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=hP20W1aJRMG/CkLQ6EbxLZKVcTb46pBaae045QQFSpU=; b=QXDXJTsEbf+LhkJU374ssHmXGBltyj/IPxuz88f8sibP6mG9wAb/ux14D7a7R8LTxi+4wL ixdzfxmFjPU0AF1o9QGdhF+XbnM7TwR18l68YLuaOGri1lE+K1GSD6zz/HN0DLBDxUU4CZ 4tTMqf3gsD/rPM6gO0MFHGWjUqGxh1w= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1687860166; 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=hP20W1aJRMG/CkLQ6EbxLZKVcTb46pBaae045QQFSpU=; b=77kx53T2qHmV+H9O8k5Sxe6Cnp7aO5zDMrjLQPmn/rejVreO3TQw5L18OYl6HQxF4gykEg I4RxcnORGGqNtaDw== 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 8FAB813462; Tue, 27 Jun 2023 10:02:46 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id wyYiIsazmmTCcAAAMHmgww (envelope-from ); Tue, 27 Jun 2023 10:02:46 +0000 Date: Tue, 27 Jun 2023 12:02:46 +0200 Message-ID: <87ilb9fcjd.wl-tiwai@suse.de> From: Takashi Iwai To: dengxiang Cc: tiwai@suse.com, yangyingliang@huawei.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] SKU: Set to turn off EAPD control for Internal SPK. In-Reply-To: <20230627055836.23798-1-dengxiang@nfschina.com> References: <20230627055836.23798-1-dengxiang@nfschina.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, 27 Jun 2023 07:58:36 +0200, dengxiang wrote: > > Due to unknown reason that could not support DSP function on Raptor Lake > platform using v2.5 sof-bin firmware and snd_hda_intel would disable codec > wakeup twice during snd_hda_intel initialization, Internal SPK is forbidden > to put sound outside with snd_hda_intel driver on Unis B760 sku machine. > Now find out that PIN47 EAPD status is always low for ALC897 chip on > Unis B760 sku. > Solution: set to turn off EAPD control again in avoid to mute internal SPK. > > Signed-off-by: dengxiang > --- > sound/pci/hda/patch_realtek.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c > index 36c4adfb11e7..bb0ee265eb7f 100644 > --- a/sound/pci/hda/patch_realtek.c > +++ b/sound/pci/hda/patch_realtek.c > @@ -534,6 +534,16 @@ static void set_eapd(struct hda_codec *codec, hda_nid_t nid, int on) > { > if (get_wcaps_type(get_wcaps(codec, nid)) != AC_WID_PIN) > return; > + > + switch (codec->core.vendor_id) { > + case 0x10ec0897: > + case 0x80867a50: > + on = 0; > + break; > + default: > + break; > + } Sorry, this is definitely no-go. It matches generically to all devices that have this codec chip, so you'll break all those devices. Takashi