All of lore.kernel.org
 help / color / mirror / Atom feed
From: Raymond <rayau@netvigator.com>
To: alsa-devel@lists.sourceforge.net
Subject: Re: alsa dma transfer
Date: Tue, 05 Jul 2005 23:58:28 +0800	[thread overview]
Message-ID: <42CAAE24.9000503@netvigator.com> (raw)
In-Reply-To: <s5hzmt1e6r9.wl%tiwai@suse.de>

Takashi Iwai wrote:
> At Tue, 05 Jul 2005 20:26:49 +0800,
> Raymond wrote:
> 
>>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() ?
> 
> 
> snd_util_mem_*() are helper functions to manage the memory blocks
> _virtually_.  It doesn't allocate any memory block by itself but just
> allocates a metadata for the memory block.  That is, it doesn't matter
> whether the real memory block is stored as SG-buffer or not.  util_mem
> handles only virtually linear buffer.
> 
> 
> 
>>Why get seg fault in __snd_util_memblk_new() ?
> 
> 
> Wrong code ;)  Invalid handler pointer is passed?
> 
> 

It's quite difficult to trace those callback functions.

Since WT on the au8820/au8830 chip and not on the other chip on the
sound card.

Is it feasible to replace most of the callback functions by direct call
if the code is with in module au88x0

   if ((err = snd_device_new(card, SNDRV_DEV_SEQUENCER, wt, &ops)) < 0) {
         return err;
     }

instead of a separate module au88x0-synth

snd_seq_device_new(card,1,"au88x0-synth",sizeof(snd_vortex_synth_arg_t),
&wt)




-------------------------------------------------------
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

  reply	other threads:[~2005-07-05 15:58 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
2005-07-05 13:12         ` Takashi Iwai
2005-07-05 15:58           ` Raymond [this message]
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=42CAAE24.9000503@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.