Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4189841pxb; Tue, 2 Nov 2021 05:47:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzAmWLGm2eGQH4LQB0U02Xp5EMTaXUuZQUBpfRm1a0v4t1HmHdLo6hnROceWd3pjiSS4Vw X-Received: by 2002:a6b:8b16:: with SMTP id n22mr20769991iod.0.1635857258851; Tue, 02 Nov 2021 05:47:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635857258; cv=none; d=google.com; s=arc-20160816; b=eTi75fuI+ITYXq+ZCEaohB8WSEY8goWHz/3I9dkPw2FNWnaBm2GHBg1eLMOjdCFyi2 kBhSayCjgbmmHKLxLrBBjyAEwXRiIccaiwhOM2sGyFYpSMcrrKzsjR5a8jLZqrLtVTVw 6uvNgrMU/r1JYkK6irAehtM+rxt/s4WkIUhj6PK1Y7Vq6b58ntq3NW1JS7wr1UuFTPSH VbTCxw5k7v4u4+EcM6P1b4a0oMd+vMavd/SlhlkOdmHbjBhlv2otofLvSzOci+yCHeMT W1V+VK1jL9qMIIROv4pG28DqBHKKUTTOU6KphODaZjUBSBiu7EPnIoNQJTyvsnGk4CvM hjuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZZkZVqa+3Plnn+r7mlQ/DHzi6CEkEgG/JnTm+RoF3Os=; b=NrNmDxb0V/PILTYEXE1+dbwyqcS9eaXZX7mhaes+ZX6k7N9TM3tXzdE8Qv06Uodvda nAeJPbnvEAivx48rwqbFoy8MBOkpTR0TX+3/PzEGvkpnmq6XzUGa4LZrMtr1XqRbqisp VDOs6ZdP6+ImkOCjPS0XZUkRQ3UYciT9C9YSBrUFwE7Nxzf0osJ+MrYGipos0pnj43hj TJvm0qIExxuUeLRUzQ3C8MYuwy4WZFHtg7MggQf5Qq0PdYLEN+8UCddxk1BIt7BICiVW 5qP76X8e8d2xCIKqNQQ0xjNTCallGZ58kAJeOMkGffpDd/Ob+l8cKAEfBouo0RL9EmE6 LWQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=a5BUgCpS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d1si17764568jaf.24.2021.11.02.05.47.15; Tue, 02 Nov 2021 05:47:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=a5BUgCpS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230326AbhKBMrw (ORCPT + 99 others); Tue, 2 Nov 2021 08:47:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbhKBMrv (ORCPT ); Tue, 2 Nov 2021 08:47:51 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E997CC061714 for ; Tue, 2 Nov 2021 05:45:16 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id r9-20020a7bc089000000b00332f4abf43fso1527017wmh.0 for ; Tue, 02 Nov 2021 05:45:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ZZkZVqa+3Plnn+r7mlQ/DHzi6CEkEgG/JnTm+RoF3Os=; b=a5BUgCpSrtUkDJpbZB1JWGRjd29moku/hgoRNXpgoUydTPcHt/wZ+Mn2D21V4PyZZ9 Vx8dSEvCioF/cLT6iQgvNOKDrGVK4aGS/oMld+LZZ7+gWvsmWzTKnmhwPf5wKO+GE5s0 Dl1PgbJsFtIvBSshpJxhmJ39uAK2LAFN+N+KVJIgjucoTmfsOz00WhzY+J9cZoMceF/X zkruyXFjaQ8nhIV+zS6svKW6vGw0/RHvrayN7hEZSTJvAofn1mY50hLttZvDBV5xezi8 gnQJtbXquJcW43+wuhCkoQudE+sJgwjiEISmCRgTmzcMMFTolHy2g4YDijtOwwTN65rA zCSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ZZkZVqa+3Plnn+r7mlQ/DHzi6CEkEgG/JnTm+RoF3Os=; b=Bicv4qIZhmwVGvE6TuU+s3RJ7Qq3PrzAA2KGarMyFDuMcBETOgLSHF8qYj54C9Ncwk dwWK1592+yMwda7L2JyWskHqRP42VUzDy4cU/yZxdLPVR3qCl5y1CosDbbHtxDuVFjTS p1qLN6s+9hiB8YhN0BpZ6ha2Qivt9zRLdZKaMcdH6GFBc2YnA7i92v47qwQyAtGH2Vac Jap3hbQrZuMOAFIQgySICBLup9LfHZ/5+rdb92TlYLVSkzUp633CQWc7s9gZB8z9mJRG X+R6+UhI0H61yKApVZAlVDdvpnS8eUAlvk0NzPQG9UPNHt67lKK4phQwJBa7AYdCmx8b rKHA== X-Gm-Message-State: AOAM530eKbnwOKJppKk1hUQzAPonnkmEaRrYoeDyanJkCVlNMnKYzaHh Ojdmn9E8ae9ke59/mBWWYg== X-Received: by 2002:a7b:c76e:: with SMTP id x14mr6612110wmk.27.1635857115568; Tue, 02 Nov 2021 05:45:15 -0700 (PDT) Received: from rampage-hp2 ([80.169.207.154]) by smtp.gmail.com with ESMTPSA id y12sm15437552wrn.73.2021.11.02.05.45.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Nov 2021 05:45:15 -0700 (PDT) Date: Tue, 2 Nov 2021 12:45:13 +0000 From: Jonathan Clarke To: Takashi Iwai Cc: linux-kernel@vger.kernel.org, Takashi Iwai , alsa-devel@alsa-project.org Subject: Re: [PATCH] Make top/rear speaker, mute and micmute leds work on HP x360 14-ea000 laptops that use Realtek 245 codec Message-ID: <20211102124513.GA1298862@rampage-hp2> References: <20211029154313.1005394-1-jonathan.a.clarke@gmail.com> <20211101103445.GA1064130@rampage-hp2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 02, 2021 at 09:19:25AM +0100, Takashi Iwai wrote: > Could you try just to flip the bit 0x08? At LED off state? > > % hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x0b > % hda-verb /dev/snd/hwC0D0 0x20 SET_PROC_COEF 0x77f4 > > That is, the implementation in alc286_fixup_hp_mute_led_coefbit(), > which is used by many other HP laptops. Ah, I see what you mean. Yes, you're right, changing from 0x77f4 to 0x77fc makes the mute led light up. The changes to the other proc_coef bits in my patch are not needed. I will revise and revert in next few days. Thanks