[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200219145500.GC4488@sirena.org.uk>
Date: Wed, 19 Feb 2020 14:55:00 +0000
From: Mark Brown <broonie@...nel.org>
To: Jerome Brunet <jbrunet@...libre.com>
Cc: Liam Girdwood <lgirdwood@...il.com>, alsa-devel@...a-project.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-amlogic@...ts.infradead.org,
Kevin Hilman <khilman@...libre.com>
Subject: Re: [PATCH 2/2] ASoC: meson: add t9015 internal DAC driver
On Wed, Feb 19, 2020 at 02:36:46PM +0100, Jerome Brunet wrote:
Looks good, couple of small things below:
> +static const struct snd_kcontrol_new t9015_snd_controls[] = {
> + /* Volume Controls */
> + SOC_SINGLE("Playback Mute", VOL_CTRL1, DAC_SOFT_MUTE, 1, 0),
This should be Switch (see control-names.rst).
> + SOC_SINGLE("Volume Ramp Enable", VOL_CTRL1, VC_RAMP_MODE, 1, 0),
> + SOC_SINGLE("Mute Ramp Enable", VOL_CTRL1, MUTE_MODE, 1, 0),
> + SOC_SINGLE("Unmute Ramp Enable", VOL_CTRL1, UNMUTE_MODE, 1, 0),
These too.
> + /* Channel Src */
> + SOC_ENUM("Right DAC Source", dacr_in_enum),
> + SOC_ENUM("Left DAC Source", dacl_in_enum),
Ideally these would be moved into DAPM (using an AIF_IN widget for the
DAI).
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists