Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp582075rwl; Sat, 25 Mar 2023 07:25:20 -0700 (PDT) X-Google-Smtp-Source: AKy350aaK84wyHQ5R9e8MVEDCg6etY0ih+MjQ4Zapepo3/B1gZfD4qYXBTZOrJOPTvOz1tJnlpdb X-Received: by 2002:a17:907:3f81:b0:93d:bae1:ca9e with SMTP id hr1-20020a1709073f8100b0093dbae1ca9emr8260043ejc.25.1679754319797; Sat, 25 Mar 2023 07:25:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679754319; cv=none; d=google.com; s=arc-20160816; b=pKi/ho1v7BUMEV00o6Fz1o4RKxCrgp3oWyxeMtihlCn1swcWLpxfvb9FHo5MUhzOFt ft6JxD8lNB4cULK8wp2h2oYr3zPMaZ+yb2ONRtv+QRgWKkEjKJHMGpaf4tihDgju1vG5 tD3fbQwLZjbStgtoDmcqEayxKXn6AxOMzrAPsNSfR/ryFfV6N8m5bxfOZ9XO7E0CvqDS sdtk70GXZwBM0vXf5zR9G+Weajc+3qysY0ktXmfuRGc/dJLAqcFDiEIn/GfOgVCEHQMn tmg6/7GL4nglLFjoqiYy/imc73P4hplcTjKiJtJlhWGohpw+SDM57rZyqxZ5Eyn5ERuZ XqjQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j15-20020a170906830f00b008bc21b16e13si23526383ejx.871.2023.03.25.07.24.52; Sat, 25 Mar 2023 07:25:19 -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 S231359AbjCYOWB (ORCPT + 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 ); 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 To: Banajit Goswami , Jaroslav Kysela , Takashi Iwai Cc: Srinivas Kandagatla , Liam Girdwood , Mark Brown , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Dylan Van Assche 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: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.39.2