From mboxrd@z Thu Jan 1 00:00:00 1970 From: Liam Girdwood Subject: Re: [PATCH v5] ASoC/2.6.37: fix au1x platform Date: Fri, 27 Aug 2010 13:51:24 +0100 Message-ID: <1282913484.3025.25.camel@odin> References: <1282827231-17323-1-git-send-email-manuel.lauss@googlemail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wy0-f179.google.com (mail-wy0-f179.google.com [74.125.82.179]) by alsa0.perex.cz (Postfix) with ESMTP id 1E858245CF for ; Fri, 27 Aug 2010 14:51:28 +0200 (CEST) Received: by wyb32 with SMTP id 32so3362559wyb.38 for ; Fri, 27 Aug 2010 05:51:27 -0700 (PDT) In-Reply-To: <1282827231-17323-1-git-send-email-manuel.lauss@googlemail.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: Manuel Lauss Cc: alsa-devel@alsa-project.org, Mark Brown , alsa-devel@vger.kernel.org, Ian Lartey List-Id: alsa-devel@alsa-project.org On Thu, 2010-08-26 at 14:53 +0200, Manuel Lauss wrote: > This patch fixes up the au1x audio platform after the multi-component > merge: > - compile fixes and updates to get DB1200 platform audio working again, > - removal of global variables in AC97/I2S/DMA(PCM) modules. > > The AC97 part is limited to one instance only for now due to issues > with getting at driver data in the soc_ac97_ops. > > Signed-off-by: Manuel Lauss > --- > v5: smaller patch > v4: fixed a bug in the previous bugfix, and added DAI drvdata accessors. > v3: fixed a bug which caused cat /proc/iomem to loop endlessly. > v2: prepare PCM,I2S for multiple card operation, use dev_name() for DAI name. > > Against Liam's asoc/for-2.6.37 branch. > > Tested on DB1200 and DB1300 (here both I2S and AC97 operate as > independent cards), please fold this into the other Au1x multi-component > patches. > This all looks fine > Issues I observed with AC97: > * AC97 is limited to a single instance since I cannot get at the driver > data in the AC97 callbacks at all time (or did I miss anything?): > when the AC97 codec calls snd_ac97_mixer(), it calls into the soc_ac97_ops > callbacks; however ac97->bus->card->private_data (suggested by Mark) > is _always_ NULL, so no way to get at the dai and ultimately driver data. > > * generic AC97 codec use spits out this kobject warning, which is caused by the > "device_register()" in soc-core.c::soc_ac97_dev_register(): > Although I'm curious about these issues. I didn't see them when testing on my now non working Zylonite with WM9713 (AC97), so I'm suspecting it's related to the generic AC97 somehow. Unfortunately, this will need someone with working AC97 hardware to fix this issue. Is the AC97 DAI being probed before the generic AC97 codec driver in this case ? Liam