Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Manu Sharma <manu.sharma@ma.tech.ascom.ch>
To: alsa-devel@lists.sourceforge.net
Subject: Re: Conversion from S16 format to ALAW
Date: Tue, 16 Nov 2004 17:32:17 +0100	[thread overview]
Message-ID: <419A2B91.8070803@ma.tech.ascom.ch> (raw)
In-Reply-To: <Pine.LNX.4.58.0411160926111.21901@pnote.perex-int.cz>

Hi,

Thanks Jaroslav and Takashi for your questions; they served as inputs !

I was not explicitly specifying the format (-f A_LAW), considering that 
since the plugin type itself is "alaw". I missed the fact that I 
specified default format of this plugin to be S16_LE in my alsa.conf !

I have another question about the warning given in function header of 
snd_pcm_alaw_open (same applies for corresponding mulaw function).

Does the warning suggest that applications should not be using this 
function directly, they should instead configure their alsa.conf and use 
snd_pcm_open ?

Manu

Jaroslav Kysela wrote:
> On Tue, 16 Nov 2004, Manu Sharma wrote:
> 
> 
>>Hi all,
>>
>>I am trying to sample and play alaw streams on my iPAQ 5500. The HW 
>>driver registers support for S16_LE only. So, to achieve my purpose, I 
>>register a plugin like following in my alsa.conf file:
>>
>>pcm.alaw {
>>	type alaw
>>	slave {
>>		pcm  "hw:0.0"
>>		format S16_LE
>>	}
>>}
>>
>>With this, when I use arecord to capture sound, I get an error "arecord: 
>>set_params:832: Sample format not available".
> 
> 
> Could you specify the full command? It should be something like:
> 
> arecord -D alaw -f A_LAW ...
> 
> Anyway, the default device should do this job for you also:
> 
> arecord -f A_LAW ...
> 
> 						Jaroslav
> 
> -----
> Jaroslav Kysela <perex@suse.cz>
> Linux Kernel Sound Maintainer
> ALSA Project, SUSE Labs
> 
> 



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8

  reply	other threads:[~2004-11-16 16:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-16  7:59 Conversion from S16 format to ALAW Manu Sharma
2004-11-16  8:28 ` Jaroslav Kysela
2004-11-16 16:32   ` Manu Sharma [this message]
2004-11-17  7:37     ` Clemens Ladisch
2004-11-16 11:54 ` 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=419A2B91.8070803@ma.tech.ascom.ch \
    --to=manu.sharma@ma.tech.ascom.ch \
    --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