[alsa-devel] SND-SOC - how to test drivers ?
Vaclav Peroutka
vaclavpe at gmail.com
Wed Dec 1 22:18:04 CET 2010
2010/12/1 Jassi Brar <jassisinghbrar at gmail.com>:
> On Wed, Dec 1, 2010 at 6:14 AM, Vaclav Peroutka <vaclavpe at gmail.com> wrote:
>> 2010/11/23 Jassi Brar <jassisinghbrar at gmail.com>:
>>> On Tue, Nov 23, 2010 at 6:24 AM, Vaclav Peroutka <vaclavpe at gmail.com> wrote:
>>>
>>> How about first making the driver work with some, non-Android, rootfs
>>> that has alsa-utils ?
>>>
>>
>> Hello, I did some progress, but not too much. I am getting "no
>> soundcards found" even if I have /dev/snd and /proc/asound like below.
>> What did I do wrong ?
>
> Please make sure you use the same I2S device (indexed) in ASoC machine
> driver as your board init file adds to the platform.
>
Unfortunately I don't know where to look. In the device the CPU
(s3c6410) has XPCM*0 pins connected to audio card and XPCM*1 pins
routed to GSM modem (not sure about that).
In the kernel sources I have several s3c_i2s sources. The raw one,
then s3c6410_i2s, s3c6410_i2s-v32 and s3c6410_i2s-v40. And they are
very different to each other. I am using s3c6410_i2s-v32 as it is used
in similar project. Anyway I am not sure which i2s file I should
use...
In kernel dmesg I have following:
<6>[ 3.006951] Advanced Linux Sound Architecture Driver Version 1.0.18a.
<4>[ 3.028690] No device for DAI MAX9880
<4>[ 3.037007] No device for DAI s3c-i2s
<4>[ 3.045335] [s3c6410_max9880_init][s3c6410_max9880_init]
platform_set_drvdata
<4>[ 3.062157] s3c_i2s_probe
<4>[ 3.070666] s3c_snd_txctrl
<4>[ 3.078908] I2S off
<4>[ 3.087042] s3c_snd_rxctrl
<4>[ 3.095348] I2S off
<4>[ 3.103452] Maxim MAX9880 Audio CODEC 0.12
<4>[ 3.111595] max9880_probe assign i2c address
0x10max9880_codec_probe - max9880 found
<6>[ 3.130565] max9880: max9880_init
<4>[ 3.138988] Entered s3c24xx_pcm_new
<4>[ 3.147131] Entered s3c24xx_pcm_preallocate_dma_buffer
<4>[ 3.155941] Entered s3c24xx_pcm_preallocate_dma_buffer
<6>[ 3.164518] asoc: MAX9880 <-> s3c-i2s mapping ok
<6>[ 3.173180] max9880: max9880_dapm_event 769
<6>[ 3.173193]
<6>[ 3.200174] max9880: max9880_dapm_event 0
<6>[ 3.200187]
<6>[ 3.216540] max9880: max9880_add_widgets
<6>[ 3.216554]
<3>[ 3.232180] Failed to add route LMICIN->Mic Input
<6>[ 3.240256] max9880: max9880_add_controls
<6>[ 3.240271]
<6>[ 3.437446] ALSA device list:
<6>[ 3.443669] #0: S3C6410 MAX9880 (MAX9880)
More information about the Alsa-devel
mailing list