At Mon, 18 Aug 2008 18:26:40 +0700, nguyen tritai wrote:
Takashi,
Now I can build and install driver for ca0106 sb Audigy but I got another issue when play an example file.
aplay -vv child.wav
Playing WAVE '/root/child.wav' : Unsigned 8 bit, Rate 22050 Hz, Mono Plug PCM: Rate conversion PCM (48000, sformat=U8) Its setup is: stream : PLAYBACK access : RW_INTERLEAVED format : U8 subformat : STD channels : 1 rate : 22050 exact rate : 22050 (22050/1) msbits : 8 buffer_size : 3763 period_size : 470 period_time : 21333 tstamp_mode : NONE period_step : 1 avail_min : 470 period_event : 0 start_threshold : 3763 stop_threshold : 3763 silence_threshold: 0 silence_size : 0 boundary : 493223936 Slave: Route conversion PCM (sformat=S32_LE) Transformation table: 0 <- 0 1 <- 0 Its setup is: stream : PLAYBACK access : MMAP_INTERLEAVED format : U8 subformat : STD channels : 1 rate : 48000 exact rate : 48000 (48000/1) msbits : 8 buffer_size : 8192 period_size : 1024 period_time : 21333 tstamp_mode : NONE period_step : 1 avail_min : 1024 period_event : 0 start_threshold : 8192 stop_threshold : 8192 silence_threshold: 0 silence_size : 0 boundary : 1073741824 Slave: Direct Stream Mixing PCM Its setup is: stream : PLAYBACK access : MMAP_INTERLEAVED format : S32_LE subformat : STD channels : 2 rate : 48000 exact rate : 48000 (48000/1) msbits : 32 buffer_size : 8192 period_size : 1024 period_time : 21333 tstamp_mode : NONE period_step : 1 avail_min : 1024 period_event : 0 start_threshold : 8192 stop_threshold : 8192 silence_threshold: 0 silence_size : 0 boundary : 1073741824 Hardware PCM card 0 'CA0106' device 0 subdevice 0 Its setup is: stream : PLAYBACK access : MMAP_INTERLEAVED format : S32_LE subformat : STD channels : 2 rate : 48000 exact rate : 48000 (48000/1) msbits : 32 buffer_size : 8192 period_size : 1024 period_time : 21333 tstamp_mode : ENABLE period_step : 1 avail_min : 1024 period_event : 0 start_threshold : 1 stop_threshold : 1073741824 silence_threshold: 0 silence_size : 1073741824 boundary : 1073741824 ######### + | 35%Segmentation fault
Kernel dump message
dmesg
Unable to handle kernel paging request for data at address 0x00000000 Faulting instruction address: 0xc0033fd4 Oops: Kernel access of bad area, sig: 11 [#7] Canyonlands Modules linked in: snd_seq_midi snd_ca0106 snd_rawmidi snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_ac97_codec snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd_page_alloc snd ac97_bus NIP: c0033fd4 LR: c004ac94 CTR: e901a6c8 REGS: dfbf3d40 TRAP: 0300 Tainted: G D (2.6.26-00015-gc0b03c1-dirty) MSR: 00029000 <EE,ME> CR: 48022444 XER: 20000000 DEAR: 00000000, ESR: 00000000 TASK = dfa57000[15245] 'aplay' THREAD: dfbf2000 GPR00: c004ac94 dfbf3df0 dfa57000 00000000 c0b2c180 00000000 3f10c149 00000000 GPR08: 00000000 00000000 9e370001 c030b10c 00000149 10025478 1000bd14 bff7ab68 GPR16: c0320000 c030ae74 c0320000 00000000 00000000 00000000 00000000 de14c340 GPR24: 4814b000 00000000 dfbf2000 de00c2c0 c0b2c180 00000000 00000000 c0b2c180 NIP [c0033fd4] __wake_up_bit+0x10/0x40 LR [c004ac94] unlock_page+0x48/0x5c Call Trace: [dfbf3e10] [c004ac94] unlock_page+0x48/0x5c [dfbf3e20] [c005a2d8] __do_fault+0x254/0x618 [dfbf3e80] [c000faf0] do_page_fault+0x2d8/0x518 [dfbf3f40] [c000d134] handle_page_fault+0xc/0x80 Instruction dump: 7d6b4a14 800b0280 812b0278 20000020 7c630430 54631838 7c634a14 4e800020 7c0802a6 9421ffe0 90810008 90010024 <80030000> 90a1000c 7f801800 419e0014 ---[ end trace a0b9d3bfbd44991b ]---
I tried with another example file.wav but the problem is the same. The issue seems from accessing memory. I'm using AMCC 460EX board with distribution Ubuntu-7.04
It's a known problem with non-coherent PPC architecture. Try my sound-unstable-2.6 git tree (or alsa-driver-unstable snapshot).
Takashi