Posts: 13,377
Threads: 303
Joined: Mar 2018
Reputation:
539
05-23-2024, 12:12 PM
(This post was last modified: 05-23-2024, 12:20 PM by Tim Curtis.
Edit Reason: eta2
)
This log entry where haystack[0] is "" indicates the issue is in an upstream function.
Code: 20240523 132853 getArrayIndex(): needle="SMSL USB AUDIO", haystack[0]=""
ETA: What is the output from the commands below?
Code: aplay -l
lsusb
cat /proc/asound/card0/usbid
ls /proc/asound/card0/
Posts: 159
Threads: 19
Joined: Mar 2020
Reputation:
3
(05-23-2024, 12:12 PM)Tim Curtis Wrote: This log entry where haystack[0] is "" indicates the issue is in an upstream function.
Code: 20240523 132853 getArrayIndex(): needle="SMSL USB AUDIO", haystack[0]=""
ETA: What is the output from the commands below?
Code: aplay -l
lsusb
cat /proc/asound/card0/usbid
ls /proc/asound/card0/
aplay -l
Code: root@salon:~# aplay -l
**** Liste des périphériques matériels PLAYBACK ****
carte 0 : AUDIO [SMSL USB AUDIO], périphérique 0 : USB Audio [USB Audio]
Sous-périphériques : 1/1
Sous-périphérique #0 : subdevice #0
carte 1 : vc4hdmi0 [vc4-hdmi-0], périphérique 0 : MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Sous-périphériques : 1/1
Sous-périphérique #0 : subdevice #0
carte 2 : vc4hdmi1 [vc4-hdmi-1], périphérique 0 : MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Sous-périphériques : 1/1
Sous-périphérique #0 : subdevice #0
Posts: 159
Threads: 19
Joined: Mar 2020
Reputation:
3
(05-23-2024, 12:12 PM)Tim Curtis Wrote: This log entry where haystack[0] is "" indicates the issue is in an upstream function.
Code: 20240523 132853 getArrayIndex(): needle="SMSL USB AUDIO", haystack[0]=""
ETA: What is the output from the commands below?
Code: aplay -l
lsusb
cat /proc/asound/card0/usbid
ls /proc/asound/card0/
lsusb
Code: lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 152a:85dd Thesycon Systemsoftware & Consulting GmbH SMSL USB AUDIO
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 0bda:9210 Realtek Semiconductor Corp. RTL9210 M.2 NVME Adapter
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 0001:0000 Fry's Electronics MEC0003
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Posts: 13,377
Threads: 303
Joined: Mar 2018
Reputation:
539
Also these commands:
Code: lsusb
cat /proc/asound/card0/usbid
ls /proc/asound/card0/
Posts: 159
Threads: 19
Joined: Mar 2020
Reputation:
3
(05-23-2024, 12:27 PM)Tim Curtis Wrote: Also these commands:
Code: lsusb
cat /proc/asound/card0/usbid
ls /proc/asound/card0/
Code: root@salon:~# cat /proc/asound/card0/usbid
152a:85dd
root@salon:~# ls /proc/asound/card0/
id pcm0p stream0 usbbus usbid usbmixer
Posts: 159
Threads: 19
Joined: Mar 2020
Reputation:
3
05-23-2024, 12:30 PM
(This post was last modified: 05-23-2024, 12:32 PM by romain.)
(05-23-2024, 12:27 PM)Tim Curtis Wrote: Also these commands:
Code: lsusb
cat /proc/asound/card0/usbid
ls /proc/asound/card0/
Code: root@salon:~# cat /proc/asound/card0/id
AUDIO
Code: cat /proc/asound/card0/pcm0p/info
card: 0
device: 0
subdevice: 0
stream: PLAYBACK
id: USB Audio
name: USB Audio
subname: subdevice #0
class: 0
subclass: 0
subdevices_count: 1
subdevices_avail: 1
Posts: 13,377
Threads: 303
Joined: Mar 2018
Reputation:
539
(05-23-2024, 12:20 PM)romain Wrote: (05-23-2024, 12:12 PM)Tim Curtis Wrote: This log entry where haystack[0] is "" indicates the issue is in an upstream function.
Code: 20240523 132853 getArrayIndex(): needle="SMSL USB AUDIO", haystack[0]=""
ETA: What is the output from the commands below?
Code: aplay -l
lsusb
cat /proc/asound/card0/usbid
ls /proc/asound/card0/
aplay -l
Code: root@salon:~# aplay -l
**** Liste des périphériques matériels PLAYBACK ****
carte 0 : AUDIO [SMSL USB AUDIO], périphérique 0 : USB Audio [USB Audio]
Sous-périphériques : 1/1
Sous-périphérique #0 : subdevice #0
carte 1 : vc4hdmi0 [vc4-hdmi-0], périphérique 0 : MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Sous-périphériques : 1/1
Sous-périphérique #0 : subdevice #0
carte 2 : vc4hdmi1 [vc4-hdmi-1], périphérique 0 : MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Sous-périphériques : 1/1
Sous-périphérique #0 : subdevice #0
Is aplay the only command that returns output in French language?
The detection routines would be searching for English key words for example "card 0".
Posts: 159
Threads: 19
Joined: Mar 2020
Reputation:
3
(05-23-2024, 12:57 PM)Tim Curtis Wrote: (05-23-2024, 12:20 PM)romain Wrote: (05-23-2024, 12:12 PM)Tim Curtis Wrote: This log entry where haystack[0] is "" indicates the issue is in an upstream function.
Code: 20240523 132853 getArrayIndex(): needle="SMSL USB AUDIO", haystack[0]=""
ETA: What is the output from the commands below?
Code: aplay -l
lsusb
cat /proc/asound/card0/usbid
ls /proc/asound/card0/
aplay -l
Code: root@salon:~# aplay -l
**** Liste des périphériques matériels PLAYBACK ****
carte 0 : AUDIO [SMSL USB AUDIO], périphérique 0 : USB Audio [USB Audio]
Sous-périphériques : 1/1
Sous-périphérique #0 : subdevice #0
carte 1 : vc4hdmi0 [vc4-hdmi-0], périphérique 0 : MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Sous-périphériques : 1/1
Sous-périphérique #0 : subdevice #0
carte 2 : vc4hdmi1 [vc4-hdmi-1], périphérique 0 : MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Sous-périphériques : 1/1
Sous-périphérique #0 : subdevice #0
Is aplay the only command that returns output in French language?
The detection routines would be searching for English key words for example "card 0". Yes, I came to the same conclusion
Code: root@salon:~# aplay -l | awk -F'[' '/carte 0/{print $2}' | cut -d']' -f1
SMSL USB AUDIO
root@salon:~# aplay -l | awk -F'[' '/card 0/{print $2}' | cut -d']' -f1
Posts: 13,377
Threads: 303
Joined: Mar 2018
Reputation:
539
What option did you use to run the OS in French?
Posts: 159
Threads: 19
Joined: Mar 2020
Reputation:
3
(05-23-2024, 01:02 PM)Tim Curtis Wrote: What option did you use to run the OS in French?
setlocale with raspi-config
|