From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Ho Subject: Re: [PATCH v2 2/2] ASoC: add support for Conexant CX2072X CODEC Date: Wed, 12 Apr 2017 18:31:37 +0800 Message-ID: <20170412103137.GB11582@GMAIL.COM> References: <5b7e78fef2c8e299d39ebaa560d81d66e619e7eb.1491382907.git.simon.ho@conexant.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-pg0-f65.google.com (mail-pg0-f65.google.com [74.125.83.65]) by alsa0.perex.cz (Postfix) with ESMTP id AEF1426648D for ; Wed, 12 Apr 2017 12:31:42 +0200 (CEST) Received: by mail-pg0-f65.google.com with SMTP id 79so4496945pgf.0 for ; Wed, 12 Apr 2017 03:31:42 -0700 (PDT) Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Takashi Iwai Cc: pierre-louis.bossart@linux.intel.com, alsa-devel@alsa-project.org, Simon Ho , lgirdwood@gmail.com, broonie@kernel.org List-Id: alsa-devel@alsa-project.org On Wed, Apr 12, 2017 at 09:41:01AM +0200, Takashi Iwai wrote: > On Wed, 12 Apr 2017 07:45:20 +0200, > Takashi Iwai wrote: > > > > On Tue, 11 Apr 2017 15:31:37 +0200, > > Takashi Iwai wrote: > > > > > > On Wed, 05 Apr 2017 11:07:14 +0200, > > > wrote: > > > > > > > > --- /dev/null > > > > +++ b/sound/soc/codecs/cx2072x.c > > > > +/** > > > > + * cx2072x_enable_detect - Enable CX2072X jack detection > > > > + * @codec : pointer variable to codec having information related to codec > > > > + * > > > > + */ > > > > +int cx2072x_enable_detect(struct snd_soc_codec *codec) > > > > +{ > > > ..... > > > > +} > > > > +EXPORT_SYMBOL_GPL(cx2072x_enable_detect); > > > > + > > > > +/* > > > > + * cx2072x_get_jack_state: Return current jack state. > > > > + * @codec : pointer variable to codec having information related to codec > > > > + * > > > > + */ > > > > +int cx2072x_get_jack_state(struct snd_soc_codec *codec) > > > > +{ > > > .... > > > > +} > > > > +EXPORT_SYMBOL_GPL(cx2072x_get_jack_state); > > > > --- /dev/null > > > > +++ b/sound/soc/codecs/cx2072x.h > > > .... > > > > +enum cx2072x_jack_types { > > > > + CX_JACK_NONE = 0x0000, > > > > + CX_JACK_HEADPHONE = 0x0001, > > > > + CX_JACK_APPLE_HEADSET = 0x0002, > > > > + CX_JACK_NOKIE_HEADSET = 0x0003, > > > > +}; > > > > + > > > > +int cx2072x_hs_jack_report(struct snd_soc_codec *codec); > > > > > > This function is nowhere defined. And the new jack functions > > > cx2072x_enable_detect() and cx2072x_get_jack_state() are not declared > > > here, either. > > > > Also, some DAPM entries are missing / wrong, obviously. > > ... and yet another missing ones, the powers for some pins aren't > hooked. > > > Takashi > You are right, thanks for caching that. Simon > --- a/sound/soc/codecs/cx2072x.c > +++ b/sound/soc/codecs/cx2072x.c > @@ -1737,6 +1737,10 @@ static const struct snd_soc_dapm_route cx2072x_intercon[] = { > {"Out AIF", NULL, "I2S ADC2R"}, > {"Out AIF", NULL, "AFG Power"}, > {"AEC REF", NULL, "Out AIF"}, > + {"PortB In En", NULL, "PortB Power"}, > + {"PortC In En", NULL, "PortC Power"}, > + {"PortD In En", NULL, "PortD Power"}, > + {"PortE In En", NULL, "PortE Power"}, > }; > > static void cx2072x_sw_reset(struct cx2072x_priv *cx2072x)