Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp819714rwl; Sat, 25 Mar 2023 11:35:04 -0700 (PDT) X-Google-Smtp-Source: AK7set832UHDbrIzhc81jA+GIC3X9fMsNJCwfUzqQq2JYiSsA1y/YoA5LlJUJAluWNTALD4Zk5q/ X-Received: by 2002:a05:6a20:8089:b0:da:e752:d47c with SMTP id c9-20020a056a20808900b000dae752d47cmr6770962pza.12.1679769303999; Sat, 25 Mar 2023 11:35:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679769303; cv=none; d=google.com; s=arc-20160816; b=BD2ajvXfKeDR8IdmgZdBVxTjKWPYBw2uM0mQ+Q5cb1cM+rAgw4tXgQUvfOUBB5JNYG fd7tw4c55av7LED3KXvVQa8tlzCCpcAjf0oGKCPusU0F3WAApe840BADcuZ3w/rXOq2b 7UQzGXlJE5+BsKwiWPawPJSgIWugrKRhRxtWn7Y0h6tlj34xNCD2Jk3KMxLQFZJQBEpq GppauZNE3HjlADurEq04ygN9VOdJ9AfiJYB1CJv+Ejk5N3f0CPMU0cdTiOYttC6A/Dds SK0HLg1MnT+zAVfU8lMX15QUi9ajtlzZTDVb/NXVN6joSmVJ5cAvcQlg7pnf3rrmR4jZ FFMQ== 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=N45uVFUpr0sJ4VqANPWTHeIAeXtEyKwZmpqEYnJtzKQ=; b=t7sd8sVKzUDyTri72aiU5Gq01+tf8dxI99u5Yaaoghm3/aLKIoM29prb1QFREQFkN6 Os6yVewl+0soXsVV0Emfu8xZGLg/97Oc9gF5VC0DJKQBIW9A6Q6SeWNz5hHbnebEWWVh YaDiL/mL/bm/qXJPMPbyBxawX2sclq5EHpj9iokPk/8q9Pk1Qd3l1K+A3ZOIxmCdecLc QH8bMmnnB4SvXtMig2lxRRh5nIGhtaIWgIBnixQPF6hGLlvPNvnDv/QZAjGFglQODnlH MN1eZNPrSTdYg5uItK8e5kuHUUTwA53zdHqH3xeOI6xTqOscJcl053jTuWS6pEKEL6RX dfTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mUCM6GRA; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a6-20020a656546000000b0050c0a7a2742si23084028pgw.350.2023.03.25.11.34.52; Sat, 25 Mar 2023 11:35:03 -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=@kernel.org header.s=k20201202 header.b=mUCM6GRA; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230223AbjCYSM3 (ORCPT + 99 others); Sat, 25 Mar 2023 14:12:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjCYSM2 (ORCPT ); Sat, 25 Mar 2023 14:12:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B316B211C; Sat, 25 Mar 2023 11:12:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4D02D60C88; Sat, 25 Mar 2023 18:12:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0FE99C433D2; Sat, 25 Mar 2023 18:12:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679767946; bh=CajaQHBsxDOFeWJ2Z4uhMq5fkuJ8Vq6DMecim34eK/g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mUCM6GRAikDeM9qfa7PiMJ/0Dw+GRabGMDc4q3NX0t/nsMJnQzpoROwQ0SkKcPyUq VR65LV/hVTQkSw+4J8V0XeKmu6ncB0RkxNW1oCexmX0XIoe7foBNVYvz/RrrQL3YUH CAhHltUbyW8gpA1WcvHnkmMuRKEfzS3FoUjftPyce/BEoRwmn9FUf6S/M5yvV6tpBu DZwww6l2sDKaS3QTi/VhYAv4LKMfgE54KL5TZA0G8zt4yRQ/Ys0fRT4aLuj8OM88ng IcI9mrgVU40MqYCT4JqVDRVbNchp98sZKx89mfJELQRBjNaE1tr9DjIRlTuFkW6y7g Ksp/Fwvdy5BqA== Date: Sat, 25 Mar 2023 18:12:23 +0000 From: Mark Brown To: Dylan Van Assche Cc: Banajit Goswami , Jaroslav Kysela , Takashi Iwai , Srinivas Kandagatla , Liam Girdwood , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Joel Selvaraj , Caleb Connolly Subject: Re: [PATCH v3 1/1] sound: soc: codecs: wcd-mbhc-v2: expose ALSA control for jack Message-ID: References: <20230325142142.24337-1-me@dylanvanassche.be> <20230325142142.24337-2-me@dylanvanassche.be> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="BY1KhK6s61gDAstw" Content-Disposition: inline In-Reply-To: <20230325142142.24337-2-me@dylanvanassche.be> X-Cookie: Single tasking: Just Say No. X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,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 --BY1KhK6s61gDAstw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 25, 2023 at 03:21:42PM +0100, Dylan Van Assche wrote: > =20 > mutex_lock(&mbhc->lock); > =20 > + ret =3D snd_jack_add_new_kctl(mbhc->jack->jack, "Headset Jack", WCD_MBH= C_JACK_MASK); > + if (ret) > + dev_warn(component->dev, "failed creating Headset Jack kctl with err: = %d\n", ret); > + No, drivers should not be open coding userspace reporting - there is no reason for this device to be special, or for this device to duplicate what machine drivers and the core are doing. Any configuration should be done by the machine driver, the ASoC core jack handling already creates userspace controls when asked. --BY1KhK6s61gDAstw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmQfOYYACgkQJNaLcl1U h9D8yAf/fy9sMmjyaQSaCVRAtU6vPerFG2ZHD4sxzKPFhQb/dYDzG1AIAN+Dcp6p TNKiM3DeqpzAV9GsThFTdllqXMAu79UOYhkPiPhjqUIH7gCli6TD0nhE7FerQWs0 MNYJFlZb9ZanjrSLm9QX0nraG9B/2mFgfK5ug7nH2WpNnuTm+5jwztOISRpAhOmm /dWq7YTfT9CZdJkruUFsq0OgvDHnR294QQbzziUeRVX69msTC9h7BQVFk09Unvf7 wIP0p7qOLGuMjanJ/SyKU51V1Z078t7TrQhrPDzIW95oXgJeDAdmsqkeIfZDoAMm mRLRKpwn0bVRbSCjisW24bgr/1tajQ== =yrsm -----END PGP SIGNATURE----- --BY1KhK6s61gDAstw--