From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCHv2 3/6] ASoC: codec: cpcap: new codec Date: Wed, 12 Jul 2017 17:37:38 +0200 Message-ID: References: <20170712151846.24621-1-sebastian.reichel@collabora.co.uk> <20170712151846.24621-4-sebastian.reichel@collabora.co.uk> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20170712151846.24621-4-sebastian.reichel@collabora.co.uk> 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: Sebastian Reichel Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, linux-omap@vger.kernel.org, Tony Lindgren , linux-kernel@vger.kernel.org, Liam Girdwood , Rob Herring , Sebastian Reichel , Mark Brown List-Id: linux-omap@vger.kernel.org On Wed, 12 Jul 2017 17:18:43 +0200, Sebastian Reichel wrote: > > +/* Capture Gain Control: 0dB to 31dB in 1dB steps */ > +static DECLARE_TLV_DB_SCALE(mic_gain_tlv, 0, 100, 0); > + > +/* Playback Gain Control: -33dB to 12dB in 3dB steps */ > +static DECLARE_TLV_DB_SCALE(vol_tlv, -3300, 300, 0); Better to set const for TLV declarations here... > +static const char * const cpcap_phase_invert_texts[] = { > + "Non Inverted", "Inverted" > +}; > +static const SOC_ENUM_SINGLE_DECL(cpcap_hifi_l_phase_inv_enum, > + CPCAP_REG_RXSDOA, CPCAP_BIT_MONO_DAC0, cpcap_phase_invert_texts); > +static const SOC_ENUM_SINGLE_DECL(cpcap_ext_l_phase_inv_enum, > + CPCAP_REG_RXEPOA, CPCAP_BIT_MONO_EXT0, cpcap_phase_invert_texts); ... while SOC_ENUM_*_DECL() already contain const, so you should omit const here. thanks, Takashi