Have updated from scratch with JetPack 4.2.
Now USB mic Samson Direct Go(tested with 2 Samson devices and 2 TX2 dev boards) records with overload(like vocoder) sound.
I have tried arecord, audacity, pulseaudio, alsa but always broken sound.
On JetPAck 3.3 was excellent recording.
[ 1083.971050] usb 1-2.4: USB disconnect, device number 5
[ 1088.813052] usb 1-2.4: new full-speed USB device number 6 using tegra-xusb
[ 1088.839068] usb 1-2.4: New USB device found, idVendor=17a0, idProduct=0130
[ 1088.839076] usb 1-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1088.839081] usb 1-2.4: Product: Samson Go Mic Direct
[ 1088.839086] usb 1-2.4: Manufacturer: Samson Technologies
[ 1088.858173] input: Samson Technologies Samson Go Mic Direct as /devices/3530000.xhci/usb1/1-2/1-2.4/1-2.4:1.2/0003:17A0:0130.0007/input/input9
[ 1088.918206] hid-generic 0003:17A0:0130.0007: input,hidraw5: USB HID v1.00 Device [Samson Technologies Samson Go Mic Direct] on usb-3530000.xhci-2.4/input2
[ 1089.286086] retire_capture_urb: 354 callbacks suppressed
[ 1094.290104] retire_capture_urb: 1241 callbacks suppressed
Best regards, Viktor.
Also, fps for gstreamer pipeline is wrong.
File was recorded, but it has higher speed of playback. It looks like that appsrc syncing with alsasrc.
Without alsasrc or with other mic all is ok.
const std::string strRecord
"qtmux name = mux ! filesink location = " + fileName + " "
"alsasrc device = default do-timestamp = true ! audio/x-raw ! queue ! voaacenc ! mux.audio_0 "
"appsrc name = videosrc do-timestamp = true ! video/x-h264, stream-format = byte-stream, framerate = " + std::to_string( encodeFPS ) + "/1, width = " + std::to_string( videoWidth ) + ", height = " + std::to_string( videoHeight ) + " ! "
"h264parse ! taginject tags=title=\"Hyper.Camera\" ! queue ! mux.video_0"
Target fps is 30f/s. But now, with Samson Mic alsasrc, fps is about 40f/s on JetPack 4.2.
If target fps is 25f/s with Samson Mic alsasrc, then final fps is about 33f/s
Have tried another china CD04 mic and all is fine - fps and voice.
Why in the JetPack 4.2 Samson Mic became broken?
I have tested a USB headset with L4T rel32.1 (version of L4T in Jetpack 4.2) and did not observe any isssues, but obviously this is a different USB device and from what you have said that issue appears to be specific to the Samson Mic.
For testing capture on the USB Mic, I selected the USB Mic under the Ubuntu desktop ‘Sound’ settings and executed the command …
$ arecord -r 48000 -f S16_LE -c 1 -d 10 cap.wav
Is this the same way that you tested the Samson Mic with arecord? Playing back the file with aplay sounds fine.
Have you dumped all the mixer settings for the Samson Mic and compared with the earlier release …
$ amixer -c <soundcardname>
Note that soundcard name is listed under /proc/asound/cards.
Can you also confirm the jetson power-model setting by executing …
$ sudo nvpmodel -q
NV Power Mode: MAXP_CORE_ARM
I do wonder if this could be related to the problem because this is not seem good …
I do not see this on my setup. Do you always see this with the Samson Mic? Do you see this with the Mic that works?
I am not sure about why the gstreamer fps would be off and I would need someone to check on this.
Have tested again, and with another USB 3.0 cable and USB 3.0 hub and Samson Mic works fine.
Fps as desired 30f/s and no voice corruption.
Will made more tests and answer.
New TX2 dev board, JetPack 4.2, USB 3.0 hub Orico 4-ports, Samson Go Mic
Step 1. plugged USB keyboard only. Poweron.
arecord -r 48000 -f S16_LE -c 1 -d 10 cap.wav - OK
Step 2. plugged 2 usb wireless dongles for MS keyboard and BOW mouse
arecord -r 48000 -f S16_LE -c 1 -d 10 cap.wav - OK
Step 3. restart.
arecord -r 48000 -f S16_LE -c 1 -d 10 cap.wav - FAIL( corrupted voice in record )
Was repeated 2 times.
So wireless dongles broke the USB system only after restart.
It is solved for me.
It is bad dongles or problem in TX2 SW/HW?
I am working with JetPack 3.3 and same HW without any problems before.
Log from step 3:
[ 24.832655] retire_capture_urb: 616 callbacks suppressed
[ 33.376547] retire_capture_urb: 137 callbacks suppressed
[ 38.384549] retire_capture_urb: 616 callbacks suppressed
[ 43.392604] retire_capture_urb: 269 callbacks suppressed
[ 48.400622] retire_capture_urb: 616 callbacks suppressed
[ 53.408624] retire_capture_urb: 616 callbacks suppressed
[ 58.416636] retire_capture_urb: 616 callbacks suppressed
[ 85.888650] usb 1-2.3: USB disconnect, device number 5
[ 87.424646] usb 1-2.2: USB disconnect, device number 4
[ 88.683396] usb 1-2.2: new full-speed USB device number 7 using tegra-xusb
[ 88.709789] usb 1-2.2: New USB device found, idVendor=05ac, idProduct=0256
[ 88.709795] usb 1-2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 88.709797] usb 1-2.2: Product: Wireless Receiver
[ 88.709799] usb 1-2.2: Manufacturer: Telink
[ 88.715551] input: Telink Wireless Receiver as /devices/3530000.xhci/usb1/1-2/1-2.2/1-2.2:1.0/0003:05AC:0256.0009/input/input11
[ 88.779726] hid-generic 0003:05AC:0256.0009: input,hidraw2: USB HID v1.11 Mouse [Telink Wireless Receiver] on usb-3530000.xhci-2.2/input0
[ 88.782355] input: Telink Wireless Receiver as /devices/3530000.xhci/usb1/1-2/1-2.2/1-2.2:1.1/0003:05AC:0256.000A/input/input12
[ 88.840250] hid-generic 0003:05AC:0256.000A: input,hidraw3: USB HID v1.11 Keyboard [Telink Wireless Receiver] on usb-3530000.xhci-2.2/input1
[ 90.259397] usb 1-2.3: new full-speed USB device number 8 using tegra-xusb
[ 90.285945] usb 1-2.3: New USB device found, idVendor=045e, idProduct=0800
[ 90.285952] usb 1-2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 90.285955] usb 1-2.3: Product: Microsoft® Nano Transceiver v2.0
[ 90.285958] usb 1-2.3: Manufacturer: Microsoft
[ 90.290954] input: Microsoft Microsoft® Nano Transceiver v2.0 as /devices/3530000.xhci/usb1/1-2/1-2.3/1-2.3:1.0/0003:045E:0800.000B/input/input13
[ 90.347934] hid-generic 0003:045E:0800.000B: input,hidraw4: USB HID v1.11 Keyboard [Microsoft Microsoft® Nano Transceiver v2.0] on usb-3530000.xhci-2.3/input0
[ 90.352739] input: Microsoft Microsoft® Nano Transceiver v2.0 as /devices/3530000.xhci/usb1/1-2/1-2.3/1-2.3:1.1/0003:045E:0800.000C/input/input14
[ 90.353043] hid-generic 0003:045E:0800.000C: input,hidraw5: USB HID v1.11 Mouse [Microsoft Microsoft® Nano Transceiver v2.0] on usb-3530000.xhci-2.3/input1
[ 90.368701] input: Microsoft Microsoft® Nano Transceiver v2.0 as /devices/3530000.xhci/usb1/1-2/1-2.3/1-2.3:1.2/0003:045E:0800.000D/input/input15
[ 90.431791] hid-generic 0003:045E:0800.000D: input,hidraw6: USB HID v1.11 Device [Microsoft Microsoft® Nano Transceiver v2.0] on usb-3530000.xhci-2.3/input2
Best regards, Viktor.
Wireless mouse dongle was removed.
Now mic is ok.
Following your steps (#5), we can’t reproduce issue on JetPack-4.2/TX2.
● Wireless mouse: Logitech MX master
● USB headphone: PLANTRONICS
● USB hub: Transcend USB 3.0 hub (TS-HUB3K)
Other mic works. Samson+jetpack4.2+bow mouse - does not.
Could you try below combinations?
1 Samson + jetpack4.2 + other wireless mouse( such as Logitech )
2 Other USB mic + jetpack4.2 + BOW wireless mouse
Will try tonight and reply.
Every test plug devices and power up.
JetPack 4.2 + Usb 3.0 hub + Samson Go Direct mic + MS wireless kb - OK
JetPack 4.2 + Usb 3.0 hub + Samson Go Direct mic + MS wireless kb + BOW wireless mouse - Failed
JetPack 4.2 + Usb 3.0 hub + Samson Go Direct mic + MS wireless kb + Logitech wireless mouse - Failed
JetPack 4.2 + Usb 3.0 hub + CD04 mic + MS wireless kb + Logitech wireless mouse - OK
JetPack 4.2 + Usb 3.0 hub + Samson Go Direct mic + MS wireless kb + WD 1Tb usb hdd - OK
2 wireless - bad case for Samson mic.