[alsa-devel] mapping externally allocated Scatter Gather DMA buffers

Manu Abraham abraham.manu at gmail.com
Tue Nov 9 13:43:50 CET 2010


On Tue, Nov 9, 2010 at 5:31 PM, Jaroslav Kysela <perex at perex.cz> wrote:
> On Tue, 9 Nov 2010, Manu Abraham wrote:
>
>> testbox ~ # arecord -Dhw:2,0
>> Recording WAVE 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono
>
>> Any idea, why saa7231_hw_params is not getting invoked ?
>
> Your hw probably does not support directly 8-bit sample at 8000Hz, one
> channel. Use 'plughw:2,0' device instead 'hw:2,0' to let alsa-lib do all
> stream format conversions.

That didn't make any difference at all.

I just tried that, I get something like this :

testbox ~ # arecord -Dplughw:2,0
Recording WAVE 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono
ALSA lib pcm_params.c:2150:(snd1_pcm_hw_refine_slave) Slave PCM not usable
arecord: set_params:957: Broken configuration for this PCM: no
configurations available


[  719.292194] saa7231_capture_open (0): ()
[  719.292390] saa7231_hw_free (0): DEBUG: Removing IRQ event ..
[  719.292393] saa7231_remove_irqevent (0): Removing IRQ Event:43 ......
[  719.292395] saa7231_hw_free (0): DEBUG: Stream exiting ..
[  719.292397] saa7231_hw_free (0): DEBUG: Freeing ptable ...
[  719.292398] saa7231_capture_close (0): DEBUG: Closing stream
[  777.191250] saa7231_capture_open (0): ()
[  777.191441] saa7231_hw_free (0): DEBUG: Removing IRQ event ..
[  777.191444] saa7231_remove_irqevent (0): Removing IRQ Event:43 ......
[  777.191446] saa7231_hw_free (0): DEBUG: Stream exiting ..
[  777.191448] saa7231_hw_free (0): DEBUG: Freeing ptable ...
[  777.191450] saa7231_capture_close (0): DEBUG: Closing stream
[ 6928.076343] saa7231_capture_open (0): ()
[ 6928.076559] saa7231_hw_free (0): DEBUG: Removing IRQ event ..
[ 6928.076562] saa7231_remove_irqevent (0): Removing IRQ Event:43 ......
[ 6928.076565] saa7231_hw_free (0): DEBUG: Stream exiting ..
[ 6928.076567] saa7231_hw_free (0): DEBUG: Freeing ptable ...
[ 6928.076568] saa7231_capture_close (0): DEBUG: Closing stream

Best Regards,
Manu


More information about the Alsa-devel mailing list