From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753297AbdGLPhm (ORCPT ); Wed, 12 Jul 2017 11:37:42 -0400 Received: from mx2.suse.de ([195.135.220.15]:35774 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752829AbdGLPhl (ORCPT ); Wed, 12 Jul 2017 11:37:41 -0400 Date: Wed, 12 Jul 2017 17:37:38 +0200 Message-ID: From: Takashi Iwai To: "Sebastian Reichel" Cc: "Tony Lindgren" , "Liam Girdwood" , "Mark Brown" , "Rob Herring" , "Sebastian Reichel" , , "Jaroslav Kysela" , , , Subject: Re: [PATCHv2 3/6] ASoC: codec: cpcap: new codec In-Reply-To: <20170712151846.24621-4-sebastian.reichel@collabora.co.uk> References: <20170712151846.24621-1-sebastian.reichel@collabora.co.uk> <20170712151846.24621-4-sebastian.reichel@collabora.co.uk> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.2 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@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