Message ID | 20230325142142.24337-1-me@dylanvanassche.be |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp439449vqo; Sat, 25 Mar 2023 07:25:37 -0700 (PDT) X-Google-Smtp-Source: AKy350ZBguetyLd/DFAUUa65edl6VHdZSKnbZhHS/dRtz+KrevV8TPcEMVWn+cM5twPyRojr1n5Q X-Received: by 2002:a17:906:3d49:b0:930:2530:5f47 with SMTP id q9-20020a1709063d4900b0093025305f47mr6650057ejf.11.1679754337694; Sat, 25 Mar 2023 07:25:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679754337; cv=none; d=google.com; s=arc-20160816; b=CDc62gUYAKumCAeft+9moQA2Pwp6H8o3s0Kc9GmIkce5d/v2aD1w6t8nK/sPnSCrIy FU77IEBqqJqWKSekgZyM83LQMgP8LFaf+aXP7YcJ2EVOCxr2quvlU42tBYSPohqdIfnl klg4Gs2aCkwnh1T9yq3TByg5Xztvw3W0uwUJ78c9WMvHUtk5AsCuwFbnz2XNxGi3+tIG cQrpnaVU3gS5FcuoupQgI1F2biiiq2nHeHkz8cq0rGlQfpvj4w4yXRtb93gF1sQPGhNF UQAPCznBc3NJ+hQwu8eG9Qh6fhl8Iu0tjsROZIuG5opwOI7dHndUZO7F++8dHurOip1R yW2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=5LSD+kez1XFmSv8Jj3qsqV+B5Ky+NhkoeQXRmyAN+C8=; b=J0UpgYReyjXjw/LiqtmrUYMDE/kijeagz87P02okcd6+zR4IVkD7PWeBJD4nX6328e hHcMtXjLjUkYCYay3tC0WafyqcDTESZdyTnOsWSY3FO1/WLOpQazLvf5b3lJJO8rY9gX N2vVVdtR1QGN08/xmK6vj89xGvMMMw/rXIWvxZabAWAdPHgojitHSbecQKaV6vF2joKS 3Gr3CQ9+RJLbBcqh3mDr06DUyFpTEEc8a1EbeMlP60iOkDcRuUJEQGBInwCaX2pXRlcp z5gjiI0G4ywaLxLm0Ghpz/wuOAlT5eGL2U/XF617LKrW6xCZIm8Z28O05pWi0lAwyJy5 GaPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b="LlaPYFY/"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=dylanvanassche.be Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt33-20020a1709072da100b0093581443200si15603928ejc.461.2023.03.25.07.25.12; Sat, 25 Mar 2023 07:25:37 -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=@dylanvanassche.be header.s=MBO0001 header.b="LlaPYFY/"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=dylanvanassche.be Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231370AbjCYOWB (ORCPT <rfc822;makky5685@gmail.com> + 99 others); Sat, 25 Mar 2023 10:22:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229674AbjCYOWA (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 25 Mar 2023 10:22:00 -0400 Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FF5B12F34; Sat, 25 Mar 2023 07:21:58 -0700 (PDT) Received: from smtp102.mailbox.org (unknown [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4PkLqk6CLDz9skg; Sat, 25 Mar 2023 15:21:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1679754114; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=5LSD+kez1XFmSv8Jj3qsqV+B5Ky+NhkoeQXRmyAN+C8=; b=LlaPYFY/XzKeNCixql9e3nZ3izQsmtt1VFVsZp2RVNXp7PkndmL3smCH/tl8JQuOBNTG0V gO/L3O7yLAj53pg+B4c6uF5HTLlPLws+MlTOBBIObhqv94BzeCTlBaMeFtMb6z/Niko/6b v6QIxUTbNEdJ8cqAHN8mTyyCdbVn1N0D5EMpIh7UZb6T2na5FxvQhqiCjv/9e+mTtTALom J/M0WIccM+HoAcbrkMSGDSl7FQBm+x+ByMQftjxnbM4UHY2b/ZRyxO0JlJjwwMwIU0aVmS V0/DtYxPJ9tYNoJeL3vtpqeI0Im1pDZxVGbTFiPBkW9y0Cl+2sk/nIgAHId+EA== From: Dylan Van Assche <me@dylanvanassche.be> To: Banajit Goswami <bgoswami@quicinc.com>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com> Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>, Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Dylan Van Assche <me@dylanvanassche.be> Subject: [PATCH v3 0/1] Expose ALSA control for jack Date: Sat, 25 Mar 2023 15:21:41 +0100 Message-Id: <20230325142142.24337-1-me@dylanvanassche.be> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761350084432109221?= X-GMAIL-MSGID: =?utf-8?q?1761350084432109221?= |
Series |
Expose ALSA control for jack
|
|
Message
Dylan Van Assche
March 25, 2023, 2:21 p.m. UTC
Qualcomm SDM845 features a headphone jack via a Qualcomm WCD9340 codec which has jack detection through the wcd-mbhc-v2 driver. ALSA features 2 ways to expose jack detection from the kernel to userspace either as an input device or through an ALSA control. The wcd-mbhc-v2 driver only supports the first option which is insufficient for userspace programs e.g. PulseAudio [1]. Therefore, ALSA clients such as PulseAudio do not pick up the jack detection events as they only support one of the possible interface (ALSA control or input interface, but not both). Expose the jack events as an ALSA control and input interface to provide ALSA clients both interfaces. [1] https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/1377 Changes in v3: - Improved cover letter - Added Tested-by from https://lore.kernel.org/alsa-devel/20221007155716.10594-1-me@dylanvanassche.be/ - Properly added maintainers for sending this patch Kind regards, Dylan Van Assche Dylan Van Assche (1): sound: soc: codecs: wcd-mbhc-v2: expose ALSA control for jack sound/soc/codecs/wcd-mbhc-v2.c | 4 ++++ 1 file changed, 4 insertions(+)
Comments
On Sat, Mar 25, 2023 at 03:21:41PM +0100, Dylan Van Assche wrote: > Qualcomm SDM845 features a headphone jack via a Qualcomm WCD9340 > codec which has jack detection through the wcd-mbhc-v2 driver. Please submit patches using subject lines reflecting the style for the subsystem, this makes it easier for people to identify relevant patches. Look at what existing commits in the area you're changing are doing and make sure your subject lines visually resemble what they're doing. There's no need to resubmit to fix this alone. Please don't send cover letters for single patches, if there is anything that needs saying put it in the changelog of the patch or after the --- if it's administrative stuff. This reduces mail volume and ensures that any important information is recorded in the changelog rather than being lost.