I'm trying to configure alsalib to make format conversion
the asound.conf is:
pcm.uda1345ts {
type hw
card 0
device 0
}
pcm_slave.sl1 {
pcm "hw:0,0"
format S16_BE
rate 48000
channels 2
}
pcm.mono_dup {
type route
slave {
pcm "hw:0,0"
channels 2
}
ttable.0.0 16
ttable.0.1 16
}
pcm.dualmono {
type plug
slave "sl1"
ttable.0.0 16
ttable.0.1 16
}
pcm.recmono {
type plug
slave "sl1"
ttable.0.0 16
ttable.1.0 16
}
pcm.recmono2in1 {
type plug
slave "sl1"
ttable.0.0 16
ttable.0.1 16
ttable.1.0 16
ttable.1.1 16
}
pcm.recmono1in1 {
type plug
slave "sl1"
ttable.0.1 16
ttable.1.1 16
}
pcm.swap {
type plug
slave "sl1"
ttable.1.0 1
ttable.0.1 1
}
pcm.normal {
type plug
slave "sl1"
}
pcm.!default {
type plug
slave "sl1"
}
ctl.!default {
type hw
card 0
}
the library version is 1.0.14a cross-compiled for avr32 with buildroot.
(Alsa utils 1.0.14)
a try to play a wav file with:
aplay -D normal fileaudio/wav/ilSegnaleDiTest.wav
and I get:
Playing WAVE 'fileaudio/wav/ilSegnaleDiTest.wav' : Signed 16 bit Little
Endian, Rate 44100 Hz, Mono
aplay: set_params:961: Unable to install hw params:
ACCESS: RW_INTERLEAVED
FORMAT: S16_LE
SUBFORMAT: STD
SAMPLE_BITS: 16
FRAME_BITS: 16
CHANNELS: 1
RATE: 44100
PERIOD_TIME: (42666 42667)
PERIOD_SIZE: (1881 1882)
PERIOD_BYTES: (3762 3764)
PERIODS: (3 5)
BUFFER_TIME: (170657 170658)
BUFFER_SIZE: 7526
BUFFER_BYTES: 15052
TICK_TIME: 0
Thanks
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Alsa-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-user