From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brian Austin Subject: Re: [PATCH 1/2] ASoC: Add support for CS35L32 Boosted Amplifier Date: Thu, 31 Jul 2014 09:37:38 -0500 Message-ID: References: <1406664163-10506-1-git-send-email-brian.austin@cirrus.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1994874856-1406817458=:7394" Return-path: 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: Dinh Nguyen Cc: "devicetree@vger.kernel.org" , Brian Austin , alsa-devel@alsa-project.org, Rob Herring , lgirdwood@gmail.com, broonie@kernel.org, Kumar Gala List-Id: devicetree@vger.kernel.org --8323329-1994874856-1406817458=:7394 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 30 Jul 2014, Dinh Nguyen wrote: >=20 >=20 >=20 > On Tue, Jul 29, 2014 at 3:02 PM, Brian Austin = wrote: > This patch adds support for the Cirrus Logic CS35L32 Boosted Ampl= ifier > I2S Output provides monitor data to the SOC/CODEC for speaker pro= tection algorithms >=20 > Signed-off-by: Brian Austin > --- > =C2=A0include/dt-bindings/sound/cs35l32.h | =C2=A0 26 ++ > =C2=A0sound/soc/codecs/Kconfig =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0| =C2=A0 =C2=A05 + > =C2=A0sound/soc/codecs/Makefile =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= | =C2=A0 =C2=A02 + > =C2=A0sound/soc/codecs/cs35l32.c =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= | =C2=A0670 +++++++++++++++++++++++++++++++++++ > =C2=A0sound/soc/codecs/cs35l32.h =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= | =C2=A0 97 +++++ > =C2=A05 files changed, 800 insertions(+) > =C2=A0create mode 100644 include/dt-bindings/sound/cs35l32.h > =C2=A0create mode 100644 sound/soc/codecs/cs35l32.c > =C2=A0create mode 100644 sound/soc/codecs/cs35l32.h >=20 > + > +static int int_clear(struct snd_soc_dapm_widget *w, > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 struct snd_kcontrol *kcontrol, int event) > +{ > + =C2=A0 =C2=A0 =C2=A0 struct snd_soc_codec *codec =3D w->codec; > + > + =C2=A0 =C2=A0 =C2=A0 if (SND_SOC_DAPM_EVENT_ON(event)) { > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 snd_soc_read(c= odec, CS35L32_INT_STATUS_1); > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 snd_soc_read(c= odec, CS35L32_INT_STATUS_2); > + =C2=A0 =C2=A0 =C2=A0 } else { > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return 0; > + =C2=A0 =C2=A0 =C2=A0 } > + =C2=A0 =C2=A0 =C2=A0 return 0; >=20 >=20 > Can remove one of the "return 0" or why not just a void? You know, I think I am just going to remove this altogether. It was a=20 request from Apps and I don't think it is really needed. I'll test withou= t=20 it and send a v2 with it removed. Thanks, Brian --8323329-1994874856-1406817458=:7394 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --8323329-1994874856-1406817458=:7394--