From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Subject: Re: [Uclinux-dist-devel] [PATCH 1/4] extend ad1938 codec driver to ad193x supporting ad1936/7/8/9 Date: Thu, 18 Mar 2010 11:57:43 -0400 Message-ID: <8bd0f97a1003180857vdd155e0o29684b50cbd5e34e@mail.gmail.com> References: <1268900221-6833-1-git-send-email-21cnbao@gmail.com> <1268900221-6833-2-git-send-email-21cnbao@gmail.com> <1268902095.3773.6.camel@odin> <3c17e3571003180208y34e4b5dekd2d23efa0723b641@mail.gmail.com> <20100318111848.GB3080@opensource.wolfsonmicro.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-gw0-f51.google.com (mail-gw0-f51.google.com [74.125.83.51]) by alsa0.perex.cz (Postfix) with ESMTP id 65594103828 for ; Thu, 18 Mar 2010 16:58:04 +0100 (CET) Received: by gwb15 with SMTP id 15so550650gwb.38 for ; Thu, 18 Mar 2010 08:58:03 -0700 (PDT) In-Reply-To: <20100318111848.GB3080@opensource.wolfsonmicro.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Mark Brown Cc: uclinux-dist-devel@blackfin.uclinux.org, alsa-devel@alsa-project.org, Liam Girdwood , Barry Song <21cnbao@gmail.com>, Barry Song List-Id: alsa-devel@alsa-project.org On Thu, Mar 18, 2010 at 07:18, Mark Brown wrote: > On Thu, Mar 18, 2010 at 05:08:01PM +0800, Barry Song wrote: >> On Thu, Mar 18, 2010 at 4:48 PM, Liam Girdwood wrote: >> > Btw, have a look at wm8731.c. This driver supports both I2C and SPI and >> > is less churn than splitting out the code into three files. > >> We have many discussion about a driver to support both spi and i2c in >> another device(ad714x). At the beginning, the way in wm8731.c is used, >> then after many comments, people agree splitting the driver to three >> modules is the best way. If you are interested in it, you may take a >> look at "input/misc: add Analog Devices AD714x captouch input driver" >> in linux-input maillist. > > This was a discussion for the input subsystem and what makes sense here. > For ASoC we've been using the approach that WM8731 and other similar > drivers are using, please follow that approach with ASoC drivers. > Adding files per driver per bus type isn't helpful here. that isnt really true. the tact taken in the input subsystem wrt multiple busses had nothing to do with the input subsystem. it was designed to provide flexibility -- the core is not tied to the busses, and any of the pieces could be loaded/unloaded on the fly instead of forcing the core to be rebuilt just because of bus changes. i'm not suggesting the ASoC codecs shouldnt use the same style across the board (and thus we shouldnt change the AD193x driver), just pointing out your basic premise here is invalid and that there are pros/cons to each method and that they're independent of the subsystem. you simply selected a different solution. -mike