From: Raymond <rayau@netvigator.com>
To: alsa-devel@lists.sourceforge.net
Subject: Re: alsa dma transfer
Date: Tue, 05 Jul 2005 20:26:49 +0800 [thread overview]
Message-ID: <42CA7C89.90005@netvigator.com> (raw)
In-Reply-To: <s5hvf3x5lj2.wl%tiwai@suse.de>
Takashi Iwai wrote:
> At Wed, 29 Jun 2005 20:33:22 +0800,
> Raymond wrote:
>
>
>>The device hw:0 allow sending 16 mono PCM samples ( change pitch by SRC
>>and panning by hardware mixer, no reverb and chrous effect) to AC97 codec
>>
>>How to ensure each sound font samples loaded in memory aligned at 4K
>>boundary ?
>
>
> Depends. The emu10k1 doesn't align to 4k boundary but just
> split to different pages since emu10k1 has its own TLB.
>
In au88x0.c
chip->max_mem_size=(16*1024*1024);
chip->memhdr = snd_util_memhdr_new(chip->max_mem_size);
if (chip->memhdr == NULL) {
printk(KERN_ERR "snd_util_memhdr_new error\n");
}
chip->mem_size=chip->max_mem_size;
printk(KERN_INFO "%d Bytes wavetable\n",chip->max_mem_size);
What is the reason/advantage of using util_mem.c ?
It is correct to use snd_util_mem_alloc() to allocate memory for sample
in snd_vortex_sample_new() ?
Why get seg fault in __snd_util_memblk_new() ?
Unable to handle kernel paging request at virtual address 022d02ab
printing eip:
e1d301e4
*pde = 00000000
Oops: 0000
snd-seq-midi snd-seq-midi-event snd-seq snd-intel8x0 snd-au8830
snd-util-mem snd-mpu401-uart snd-rawmidi snd-seq-device snd-hwdep
snd-ac97-codec snd-pcm snd-t
CPU: 0
EIP: 0060:[<e1d301e4>] Tainted: P
EFLAGS: 00010207
EIP is at __snd_util_memblk_new_R970b7c65 [snd-util-mem] 0x44
(2.4.22-1.2199.nptl)
eax: db4ee684 ebx: 022d02af ecx: da63f940 edx: 00000040
esi: db4ee680 edi: 00010b00 ebp: db4ee680 esp: cfc43e58
ds: 0068 es: 0068 ss: 0068
Process arlload (pid: 5852, stackpage=cfc43000)
Stack: 00000010 000001f0 00010b00 db4ee684 00b10029 e1d30197 db4ee680
00010b00
022d02af 01000000 db4ee698 db4ee680 cfc43ef8 db4eec80 e1d3025d
db4ee680
00010b00 00010b00 d44d0780 e1d86ac4 db4ee680 00010b00 e1d92100
00010b00
Call Trace: [<e1d30197>] __snd_util_mem_alloc_Raf5d58ef [snd-util-mem]
0x77 (0xcfc43e6c)
[<e1d3025d>] snd_util_mem_alloc_Rc40f9ed9 [snd-util-mem] 0x2d (0xcfc43e90)
[<e1d86ac4>] snd_vortex_sample_new [snd-au8830] 0xb4 (0xcfc43ea4)
[<e1d92100>] .rodata.str1.32 [snd-au8830] 0x1a0 (0xcfc43eb0)
[<e1d85fbd>] load_data [snd-au8830] 0x1fd (0xcfc43ec0)
[<e1d861bd>] snd_soundfont_load [snd-au8830] 0x18d (0xcfc43f08)
[<e1d86c89>] snd_vortex_hwdep_load_patch [snd-au8830] 0x99 (0xcfc43f44)
[<e1d86d60>] snd_vortex_hwdep_ioctl [snd-au8830] 0x0 (0xcfc43f6c)
[<e1d21755>] snd_hwdep_ioctl [snd-hwdep] 0x65 (0xcfc43f78)
[<c0153719>] sys_ioctl [kernel] 0xc9 (0xcfc43f94)
[<c0109747>] system_call [kernel] 0x33 (0xcfc43fc0)
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
next prev parent reply other threads:[~2005-07-05 12:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-29 6:35 alsa dma transfer Tehn-Yit Chin
2005-06-29 7:21 ` Lee Revell
2005-06-29 9:26 ` Takashi Iwai
2005-06-29 12:33 ` Raymond
2005-06-29 13:40 ` Takashi Iwai
2005-07-05 12:26 ` Raymond [this message]
2005-07-05 13:12 ` Takashi Iwai
2005-07-05 15:58 ` Raymond
2005-07-08 16:24 ` Raymond
2005-07-27 9:08 ` Takashi Iwai
-- strict thread matches above, loose matches on Subject: below --
2005-06-29 12:53 Tehn-Yit Chin
2005-06-29 13:34 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42CA7C89.90005@netvigator.com \
--to=rayau@netvigator.com \
--cc=alsa-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox