* Conversion from S16 format to ALAW
@ 2004-11-16 7:59 Manu Sharma
2004-11-16 8:28 ` Jaroslav Kysela
2004-11-16 11:54 ` Takashi Iwai
0 siblings, 2 replies; 5+ messages in thread
From: Manu Sharma @ 2004-11-16 7:59 UTC (permalink / raw)
To: alsa-devel
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".
Is there something wrong in my configuration setup or am I missing
something ? Any clues or suggestions would be appreciated.
Regards,
Manu
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Conversion from S16 format to ALAW
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
2004-11-16 11:54 ` Takashi Iwai
1 sibling, 1 reply; 5+ messages in thread
From: Jaroslav Kysela @ 2004-11-16 8:28 UTC (permalink / raw)
To: Manu Sharma; +Cc: alsa-devel
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Conversion from S16 format to ALAW
2004-11-16 7:59 Conversion from S16 format to ALAW Manu Sharma
2004-11-16 8:28 ` Jaroslav Kysela
@ 2004-11-16 11:54 ` Takashi Iwai
1 sibling, 0 replies; 5+ messages in thread
From: Takashi Iwai @ 2004-11-16 11:54 UTC (permalink / raw)
To: Manu Sharma; +Cc: alsa-devel
At Tue, 16 Nov 2004 08:59:05 +0100,
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"
Typo of "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".
>
> Is there something wrong in my configuration setup or am I missing
> something ? Any clues or suggestions would be appreciated.
I didn't get the error message.
% arecord -Dalaw -traw -fA_LAW -c2 -r44100 foo.raw
Takashi
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Conversion from S16 format to ALAW
2004-11-16 8:28 ` Jaroslav Kysela
@ 2004-11-16 16:32 ` Manu Sharma
2004-11-17 7:37 ` Clemens Ladisch
0 siblings, 1 reply; 5+ messages in thread
From: Manu Sharma @ 2004-11-16 16:32 UTC (permalink / raw)
To: alsa-devel
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Conversion from S16 format to ALAW
2004-11-16 16:32 ` Manu Sharma
@ 2004-11-17 7:37 ` Clemens Ladisch
0 siblings, 0 replies; 5+ messages in thread
From: Clemens Ladisch @ 2004-11-17 7:37 UTC (permalink / raw)
To: Manu Sharma; +Cc: alsa-devel
Manu Sharma wrote:
> 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 ?
Yes. The way how alsa-lib creates plugins might change in the future.
HTH
Clemens
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-11-17 7:37 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2004-11-17 7:37 ` Clemens Ladisch
2004-11-16 11:54 ` Takashi Iwai
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.