From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751477Ab1KJFA1 (ORCPT ); Thu, 10 Nov 2011 00:00:27 -0500 Received: from sm-d311v.smileserver.ne.jp ([203.211.202.206]:23148 "EHLO sm-d311v.smileserver.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750784Ab1KJFAX (ORCPT ); Thu, 10 Nov 2011 00:00:23 -0500 Message-ID: <4EBB5A66.2020800@dsn.lapis-semi.com> Date: Thu, 10 Nov 2011 14:00:22 +0900 From: Tomoya MORINAGA User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Mark Brown CC: Takashi Iwai , perex@perex.cz, linux-kernel@vger.kernel.org, "Wang, Qi" , "Wang, Yong Y" , "Clark, Joel" , "Ewe, Kok Howg" , Liam Girdwood , alsa-devel@alsa-project.org Subject: Re: [PATCH] Add SoundCard driver for OKI SEMICONDUCTOR ML7213 IOH References: <70D251FDDC55405882A8447CC455D56E@hacdom.okisemi.com> <8486F61FC3B94B908BFE654234DD6C97@hacdom.okisemi.com> <4E9BAEF7.1080406@dsn.lapis-semi.com> <4EA5563A.10703@dsn.lapis-semi.com> <20111024122015.GA26033@opensource.wolfsonmicro.com> <4EB8F079.9080703@dsn.lapis-semi.com> <20111108143818.GA5632@opensource.wolfsonmicro.com> In-Reply-To: <20111108143818.GA5632@opensource.wolfsonmicro.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (2011/11/08 23:38), Mark Brown wrote: > On Tue, Nov 08, 2011 at 06:03:53PM +0900, Tomoya MORINAGA wrote: > > So, I started looking at this but... > >> struct snd_ml7213i2s_pcm { >> enum snd_soc_control_type control_type; >> struct snd_ml7213i2s *ml7213i2s; >> spinlock_t lock; >> unsigned int irq_pos; >> unsigned int buf_pos; >> struct snd_pcm_substream *substream; >> struct cbdata cbd; /* i2s callback info */ >> unsigned int channels; >> unsigned int rw; >> unsigned int rate; >> unsigned int ch; >> unsigned int setup_flag; >> unsigned int format; >> unsigned int bclkfs; >> struct mutex i2c_mutex; >> }; > > ...this looks *really* confused, there's things in here which are a mix > of DMA controller and CODEC driver things. The CODEC and DMA drivers > shouldn't know anything about each other, let alone be referencing the > same data structure. Let me clarify your saying. I couldn't understand what your "DMA controller" mean. Which "snd_ml7213i2s_pcm" structure member do you mean ? -- tomoya ROHM Co., Ltd.