From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sylwester Nawrocki Subject: Audio support on Mini6410 board [was Re: Hi again] Date: Fri, 11 Jan 2013 00:16:27 +0100 Message-ID: <50EF4BCB.40307@gmail.com> References: <50D19AE6.1080306@gmail.com> <50D19D03.3060203@gmail.com> <50D2109D.9@gmail.com> <50D2F879.6020501@gmail.com> <50D305CF.2030600@gmail.com> <50D30F6C.7000004@gmail.com> <50D31BF8.8040301@gmail.com> <50D31F63.6090304@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f43.google.com ([74.125.83.43]:40153 "EHLO mail-ee0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754332Ab3AJXQb (ORCPT ); Thu, 10 Jan 2013 18:16:31 -0500 Received: by mail-ee0-f43.google.com with SMTP id c50so580676eek.16 for ; Thu, 10 Jan 2013 15:16:30 -0800 (PST) In-Reply-To: Sender: linux-samsung-soc-owner@vger.kernel.org List-Id: linux-samsung-soc@vger.kernel.org To: Alexander Nestorov Cc: linux-samsung-soc Hi Alexander, Cc: linux-samsung-soc@vger.kernel.org On 12/21/2012 07:39 PM, Alexander Nestorov wrote: > Hi once again :) > > After some more work there is some (really small) progress. > I'm able to make the kernel throw errors about something related with > AC97 and/or ALSA > > This is the kernel log: http://pastie.org/5562475 > Those are the patches I have applied (probably something is wrong, I > just don't know what/where): http://pastie.org/5562478 > And this is the kernel's configuracion: http://pastie.org/5562483 > (should I disable/enable something?) It might be correct, but I suspect you need add an entry for Mini6410 board, similar to this one "SoC AC97 Audio support for SMDK with WM9713" > What do you think? Any notes/comments? I have virtually no experience with ASoC and no board to check it, so my ability to help you with this is really limited. Anyway, let's try to make it work. In the kernel log there are 2 things I noticed and would need to be checked: Lines 164...166: soc-audio soc-audio: ASoC machine SMDK WM9713 should use snd_soc_register_card() soc-audio soc-audio: CPU DAI samsung-ac97 not registered platform soc-audio: Driver soc-audio requests probe deferral and line 182: soc-audio: probe of soc-audio failed with error -22 Likely only this last error is important. I would add some debug prints to snd_soc_register_card() and snd_soc_instantiate_card() to find out where it fails exactly. Anyway, it seems you have added wrong audio devices to your board file, copied from mach-mini2440.c ? Instead, you should find what's in board files for boards based on s3c6410 SoC, e.g. mach-s3c6410/mach-crag6410.c. I think you need one of these devices in mini6410_devices[] array: &s3c64xx_device_iis0, &s3c64xx_device_iis1, Also, can you check what devices are registered in the system, e.g. # find /sys/devices ? You might want to have a look at sound/soc/samsung/smdk_wm9713.c. Likely you need to add something similar for Mini6410. And just do remove all mini2440 devices from your board file, like: uda1340_codec, mini2440_audio. Those certainly shouldn't be there. I'm not sure yet where AC97_* SoC pins are configured (corresponding to B29...B33 pins of Tiny6410 module). -- Regards, Sylwester