Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp245254pxj; Thu, 3 Jun 2021 05:47:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/WnT+0vooDbtR7xqQqrOrhyaTYmiVpBOFfkuxXKPxt0zclzjCM7z8lux29P0p7NWViZFs X-Received: by 2002:aa7:cc97:: with SMTP id p23mr43187560edt.372.1622724425429; Thu, 03 Jun 2021 05:47:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622724425; cv=none; d=google.com; s=arc-20160816; b=1I669F5NCJ/8WNJCY12rjWa003pWKubKUEDZPnVYHwHpSRMm4j4PEOVs37ug/BnNsG owfRFlU1JVzEE6x1+81e+wpiqtanOa75i8QJKTG4Zw5iCbjMFlqrEIhfafyC2yKsDj49 d471ta4iRtferCBEFU40lGNddF2NaH+BH0ZHeuZRF46yyYaLt65iSIUEXkOA1PfwrJwq nQMEPNLidnpR6IZYkr0rAVvX3vdiAHJrdtU+TR8XwiS6pM4WQH4kAgPbRO0dDrzO0RdS 1jOl+yHYTUX+2Kl4ArF6jS0c9pLu5BZDuOY6MA35oJC5xe9Chtasc8IA2cMFEaYyJk/h FgQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=TAymb05qbKu5Mlb+wXaRBIiHqAltS0m6rndMQ8OdHFI=; b=OJqGohHD5LlNicArIn3aTAWQv6gllJ0xg46Rje/4Ol+NQqdVkPM5PWq4jPCDoIOb32 KuIJchQeBkbUvvWeBlAQzExT++DIAITQTzHTn+WbabPJ/2dy2C7+DEE5gggGR28+OWRE W2P8SnMKC/NhD+u3Kj9F6nIxqQO6RAckKVjuEEYM/D+mcSDj6cwd0FsEdCPTfTPmyMl2 Xeg3l6XM7cqz2I7iIHIyV3Tg6bE3bEHcBpucK9d/k3zaabNhWlOafdapaYL7TeIoWutD rGsHaKJ9bO6+3ZC/2TvvSVUOEdor4ZWOwhN6XtjY4KQQIBUe6AGiSEOsF/TsigsPVWlP Qyuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SfNLIlaH; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s18si2459038eji.59.2021.06.03.05.46.42; Thu, 03 Jun 2021 05:47:05 -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=@kernel.org header.s=k20201202 header.b=SfNLIlaH; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230309AbhFCMqw (ORCPT + 99 others); Thu, 3 Jun 2021 08:46:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:47294 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229966AbhFCMqv (ORCPT ); Thu, 3 Jun 2021 08:46:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CA11B61359; Thu, 3 Jun 2021 12:45:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622724307; bh=/0PErPiivKve18T5PWrNZSDblM4Yr8THdIMojDFkKIY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SfNLIlaHMkXy6z2Nwq1e62IgDvqFsiO17qMHNj+BAuK2eBbID038FOpOVRQg+VmnD gmLsesbPwihI4Y/q1165NFrTqwMWmXUeK56e/fiyQXTNL7RiuoG0YJjJiFyNgKqjnt ZsZYJZGbapXCve5ek6JvhtPxuHy4kZqQA6z5NAK9ou5R+n6M+aqxW17tR4VD2Azc9m 4MRRnNhNo/pEngG66YpM4ar12j3QrXpHPNzabijjh2g66ra2vas1ZIFTxdQR41m1a6 7RFq/PLwuk6oL+9eLZXZpBnbllg0qzBx+7yLE11RrgkubbjjFVf30Lp2cGf+ZQmUXs fT278QpB+0Rog== Date: Thu, 3 Jun 2021 13:44:55 +0100 From: Mark Brown To: Srinivas Kandagatla Cc: robh@kernel.org, devicetree@vger.kernel.org, perex@perex.cz, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, lgirdwood@gmail.com Subject: Re: [PATCH v2 2/4] ASoC: codecs: wcd: add multi button Headset detection support Message-ID: <20210603124455.GE4257@sirena.org.uk> References: <20210524110700.27077-1-srinivas.kandagatla@linaro.org> <20210524110700.27077-3-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+JUInw4efm7IfTNU" Content-Disposition: inline In-Reply-To: <20210524110700.27077-3-srinivas.kandagatla@linaro.org> X-Cookie: Where am I? Who am I? Am I? I User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --+JUInw4efm7IfTNU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, May 24, 2021 at 12:06:58PM +0100, Srinivas Kandagatla wrote: > + break; > + default: > + break; > + } > + return 0; > +} > +EXPORT_SYMBOL(wcd_mbhc_event_notify); Why is this not EXPORT_SYMBOL_GPL? Same for the other symbols that are exported, between ASoC and regmap I'm not clear that there's anything useful that is usable from non-GPL code... > + /* Report insertion */ > + if (jack_type == SND_JACK_HEADPHONE) > + mbhc->current_plug = MBHC_PLUG_TYPE_HEADPHONE; > + else if (jack_type == SND_JACK_HEADSET) { > + mbhc->current_plug = MBHC_PLUG_TYPE_HEADSET; > + mbhc->jiffies_atreport = jiffies; > + } else if (jack_type == SND_JACK_LINEOUT) > + mbhc->current_plug = MBHC_PLUG_TYPE_HIGH_HPH; This would be more idiomatically written as a switch statement. --+JUInw4efm7IfTNU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmC4zsYACgkQJNaLcl1U h9AHcAf+MAkcShDyOY9iT0Adnp0ijXBX3S6aae7O09/0QaNOvBIWj8b14Iokai81 8r5zFAdH/G8zkVmTIsqEZBZL/3qOWFKUy9mmOIuNkiAAUvoDUZr+Bsk/qcca+SNu kdlOcue5k8z2We9SBIvF6kxV9LXH4eSw5Le0mJCqEP+/Bj9gViF/EWiOBaJZNJPl f41hiDlJuG1PyKpDw6OFsulvOtOdgVrBPC+eJThbgi0Ox+gL8BPil5iznwVOuMd1 ca31v0Us5t8lF/GoFCmUgM+7J8k5JKk/LPvSph2oIPXWucW2xsyPLN0va5BPM7/7 y8OCKNeIUnX5pIRwldewtdbEaKa4YA== =46e+ -----END PGP SIGNATURE----- --+JUInw4efm7IfTNU--