spahune
1
Please see below error, before that it was working. I have used apple headphones to record using jack connector.
But currently it shows me an error:
arecord -t wav -c 1 -d 6 -v /home/ubuntu/reco69.wav -D sysdefault:CARD=1
Recording WAVE ‘/home/ubuntu/reco69.wav’ : Unsigned 8 bit, Rate 8000 Hz, Mono
arecord: set_params:1297: Unable to install hw params:
ACCESS: RW_INTERLEAVED
FORMAT: U8
SUBFORMAT: STD
SAMPLE_BITS: 8
FRAME_BITS: 8
CHANNELS: 1
RATE: 8000
PERIOD_TIME: 125000
PERIOD_SIZE: 1000
PERIOD_BYTES: 1000
PERIODS: 4
BUFFER_TIME: 500000
BUFFER_SIZE: 4000
BUFFER_BYTES: 4000
TICK_TIME: 0
{it shows me:
arecord: set_params:1297: Unable to install hw params:}
Hello!
What board and L4T release are you using?
The above command works fine for me on Jetson TX2 …
$ arecord -t wav -c 1 -d 6 -v /home/ubuntu/reco69.wav -D sysdefault:CARD=1
Recording WAVE '/home/ubuntu/reco69.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
Plug PCM: Linear conversion PCM (S8)
Its setup is:
stream : CAPTURE
access : RW_INTERLEAVED
format : U8
subformat : STD
channels : 1
rate : 8000
exact rate : 8000 (8000/1)
msbits : 8
buffer_size : 4000
period_size : 1000
period_time : 125000
tstamp_mode : NONE
tstamp_type : MONOTONIC
period_step : 1
avail_min : 1000
period_event : 0
start_threshold : 1
stop_threshold : 4000
silence_threshold: 0
silence_size : 0
boundary : 9007199254740992000
Slave: Hardware PCM card 1 'tegra-snd-t186ref-mobile-rt565x' device 0 subdevice 0
Its setup is:
stream : CAPTURE
access : MMAP_INTERLEAVED
format : S8
subformat : STD
channels : 1
rate : 8000
exact rate : 8000 (8000/1)
msbits : 8
buffer_size : 4000
period_size : 1000
period_time : 125000
tstamp_mode : NONE
tstamp_type : MONOTONIC
period_step : 1
avail_min : 1000
period_event : 0
start_threshold : 1
stop_threshold : 4000
silence_threshold: 0
silence_size : 0
boundary : 9007199254740992000
appl_ptr : 0
hw_ptr : 0
Can you also share the output from …
cat /proc/asound/cards
And …
arecord -L
Regards,
Jon
Hi,
I have same problem on tx2.
card 2: UAC20 [nanoSHARC micArray16 UAC2.0], device 0: USB AUDIO [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
2 [UAC20 ]: USB-Audio - nanoSHARC micArray16 UAC2.0
XMOS nanoSHARC micArray16 UAC2.0 at usn-3530000.xhci-2.2, high speed
can you help me?
Hello!
What command are you using to capture audio?
Is there any error messages that you are seeing?
Regards,
Jon
Thank you for reply
my command was
arecord -t wav test.wav -D hw:2,0 -r 48000 -c 16 -f S32_LE -d 5
and error message was
arecord: set_params:1297: Unable to install hw params
also, I used ALSO library
similar error was occured
when this function ‘snd_pcm_hw_params_set_access’ was called.
thanks