From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161209AbcBQK6I (ORCPT ); Wed, 17 Feb 2016 05:58:08 -0500 Received: from mail-wm0-f46.google.com ([74.125.82.46]:38218 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161067AbcBQK6F (ORCPT ); Wed, 17 Feb 2016 05:58:05 -0500 Subject: Re: [RFC v1 7/9] ASoC: msm8x16: Add sound mixer controls. To: Mark Brown References: <1455643880-1611-1-git-send-email-srinivas.kandagatla@linaro.org> <1455644008-1917-1-git-send-email-srinivas.kandagatla@linaro.org> <20160216202113.GH7544@sirena.org.uk> Cc: alsa-devel@alsa-project.org, Rob Herring , Mark Rutland , Pawel Moll , Patrick Lai , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, kwestfie@codeaurora.org From: Srinivas Kandagatla Message-ID: <56C4523A.7040003@linaro.org> Date: Wed, 17 Feb 2016 10:58:02 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20160216202113.GH7544@sirena.org.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for your comments on the patch series. On 16/02/16 20:21, Mark Brown wrote: > On Tue, Feb 16, 2016 at 05:33:28PM +0000, Srinivas Kandagatla wrote: > >> +static const char * const msm8x16_wcd_spk_boost_ctrl_text[] = { >> + "DISABLE", "ENABLE"}; > > On/off switches should be presented to usersrpace as on/off switches > with "Switch" at the end of their name not as SHOUTING enums. The > indentation and brace placement are also weird here. > > I'm going to stop reviewing at this point. It really feels like this > code could benefit from taking a look at some modern CODEC drivers and > following the ways they do things, there appear to be a lot of these > issues throughout the series. I totally agree with you on this and all the comments in the patchset, TBH this driver was forward ported from msm-3.10 Andriod kernel, My Idea was to retain most of code bits from that driver but it looks its a very bad Idea to start with. I will relook into the modern codec drivers and rewrite the driver to be inline with them. Thanks, srini >