sound state files for DM2

Willie willie_chen at openmoko.com
Mon Feb 25 15:35:30 CET 2008


Willie wrote:
> Hi Miles,
>
> 'madplay' needs four files in /dev/*. The steps are as following.
>
> #mknod dsp c 14 3
> #chown root:audio dsp
> #mknod adsp c 14 12
> #chown root:audio adsp
> #mknod audio c 14 4
> #chown root:audio audio
> #mknod mixer c 14 0
> #chown root:audio mixer
>
> Then we can use madplay to play mp3 files. But now it can't
> generate any sound from buildhost's sound state files.
> Today L.Sean told me the same case here. The stereoout.state
> can't work now, so we can't play any mp3 files . It can make
> GSM phone call sound, because gsmhandset.state can work.
> It's very strange that we don't change stereout.state file.
>
> Regards,
> Willie
>
I cat some codec register values, when I play mp3 files.

root@(none):/sys/devices/platform/soc-audio$ cat codec_reg
WM8753 registers
 0: ffffffff
 1:    0
 2:    0
 3:    a
 4:   42
 5:   23
 6:   20
 7:   17
 8:  1ff
 9:  1ff
 a:    f
 b:    f
 c:   7b
 d:    0
 e:   32
 f:    0
10:  1c3
11:  1c3
12:   c0
13:    0
14:  141
15:    0
16:    0
17:    0
18:    0
19:    0
1a:    0
1b:    0
1c:    0
1d:    0
1e:    0
1f:    0
20:   55
21:    5
22:  150
23:   55
24:  150
25:   55
26:   50
27:   55
28:  17f
29:  17f
2a:  100
2b:  100
2c:   79
2d:    0
2e:    0
2f:    0
30:    0
31:  197
32:  197
33:    0
34:    4
35:   26
36:   e3
37:  136
38:    9
39:    0
3a:   83
3b:   24
3c:  1ba
3d:    0
3e:    0
3f:    0

root@(none):/sys/devices/platform/soc-audio$ cat dapm_widget
Handset Spk: Off
Handset Mic: Off
Headset Mic: Off
GSM Line In: Off
GSM Line Out: Off
Stereo Out: On
Mic 2 Volume: Off
Mic 1 Volume: Off
ALC Mixer: Off
Right Capture Volume: Off
Left Capture Volume: Off
Right ADC: Off
Left ADC: Off
Playback Mixer: Off
Out 4: Off
Out 3: Off
Out3 Left + Right: Off
Voice DAC: Off
Mono Out 2: Off
Mono Out 1: Off
Mono Mixer: Off
Right DAC: Off
Right Out 2: Off
Right Out 1: Off
Right Mixer: Off
Left DAC: Off
Left Out 2: Off
Left Out 1: Off
Left Mixer: Off
Mic Bias: Off
PM State: D3hot

Regards,
Willie





More information about the openmoko-kernel mailing list