All of lore.kernel.org
 help / color / mirror / Atom feed
From: Carlos Munoz <carlos@kenati.com>
To: Adrian McMenamin <adrian@mcmen.demon.co.uk>
Cc: Takashi Iwai <tiwai@suse.de>, alsa-devel@alsa-project.org
Subject: Re: Couple of questions
Date: Thu, 16 Mar 2006 16:10:04 -0800	[thread overview]
Message-ID: <4419FE5C.6080903@kenati.com> (raw)
In-Reply-To: <1142543316.9236.1.camel@localhost.localdomain>

Adrian McMenamin wrote:

>On Thu, 2006-03-16 at 11:42 +0100, Takashi Iwai wrote:
>  
>
>>At Thu, 16 Mar 2006 00:01:11 +0000,
>>Adrian McMenamin wrote:
>>    
>>
>>>If my driver declares this:
>>>
>>>	.info = (SNDRV_PCM_INFO_NONINTERLEAVED),
>>>
>>>Can I expect samples to come in all left followed by all right, or how?
>>>      
>>>
>>Yes.  It's the non-interleaved format (LLLLLLLL....RRRRRR.....).
>>
>>    
>>
>>>And will cat somefile.wav > /dev/dsp using oss emulation respect that?
>>>      
>>>
>>Yes.
>>
>>    
>>
>>>And what default frequency can I expect cat to use in the above?
>>>      
>>>
>>ALSA has no default frequency.  OSS assumes 8kHz for /dev/audio.
>>/dev/dsp has no default, IIRC, but practically 44.1kHz.
>>
>>So "cat some > /dev/dsp" is not a good way for testing at all...
>>It's usable for checking that "something" works at least, but not for
>>checking the detailed functionality.
>>    
>>
>
>
>Thanks. My problem is I cannot get the alsa utilities to compile/work
>(they compile but seg fault on use). Is there a good OSS only app I can
>use to test the basic play stuff?
>
>
>  
>
Hi Adrian,

Unfortunately, I can't offer any help. I am doing exactly what you are 
doing to test my alsa driver. I'm also using /dev/dsp. However, what I 
noticed when cat'ing a wav file to /dev/dsp is that the 
snd_xxx_playback_pointer() function only gets called for a short while 
and then it's no called any more. The dma buffer is only partially 
filled. The driver is not aware of this and just wraps around the buffer 
repeating the sound data over and over. I compiled aplay with no X 
support (command line only) but can't get it to work. So now I'm in the 
middle of writing a light alsa application to test the driver. I hope to 
have something by tomorrow at the latest. If I ever get it to work I can 
send it to you if you are interested.

Thanks,


Carlos


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

  reply	other threads:[~2006-03-17  0:04 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-16  0:01 Couple of questions Adrian McMenamin
2006-03-16 10:42 ` Takashi Iwai
2006-03-16 21:08   ` Adrian McMenamin
2006-03-17  0:10     ` Carlos Munoz [this message]
2006-03-17  0:20     ` Lee Revell
2006-03-16 23:34   ` Adrian McMenamin
2006-03-17  0:16     ` Lee Revell
2006-03-17 10:13       ` Takashi Iwai
2006-03-17 20:27         ` Adrian McMenamin
2006-03-17 20:29           ` Takashi Iwai
2006-03-17 23:29             ` Adrian McMenamin
2006-03-17 23:46               ` Lee Revell
2006-03-17 23:51                 ` Adrian McMenamin
2006-03-17 23:58                   ` Lee Revell
2006-03-18  0:08                     ` Adrian McMenamin
2006-03-18  0:17                       ` Lee Revell
2006-03-18  0:22                         ` Adrian McMenamin
2006-03-18 11:08   ` Adrian McMenamin
2006-03-20 18:11     ` Carlos Munoz
  -- strict thread matches above, loose matches on Subject: below --
2011-04-09 16:14 Brad Campbell
2011-04-09 23:17 ` Roman Mamedov
2011-04-10  8:02 ` NeilBrown
1998-03-20 18:39 couple " Nick Verhaegen

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=4419FE5C.6080903@kenati.com \
    --to=carlos@kenati.com \
    --cc=adrian@mcmen.demon.co.uk \
    --cc=alsa-devel@alsa-project.org \
    --cc=tiwai@suse.de \
    /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.