tml3nr
Moderator
Anh phải disable sound onboard trước. Để cho cái usb lấy được device 0. Sẽ dễ set hơn.Bản Xeonomaipi V1.3 cho Pi 3B+, mình đ9inhj dùng bản này ra USB DAC thì bị như sau:
- Đầu tiên :
cat /proc/asound/modules
0 snd_bcm2835
1 snd_usb_audio
-->Nhận USB DAC ngon rồi nhỉ
-Sau đó, làm chạy : aplay -D plughw:1,0 test.wav --> OK, sound chạy ngon lành
Nhưng khi disable sound onboard thì tèo, lumin ko còn nhận raspberry.
Kiểm tra: cat /proc/asound/modules
0 snd_usb_audio
Vầy là sao các bác nhỉ, mò hoài mà không thể chạy
Sau đó mình tìm cách chọt cho nó thành :
cat /proc/asound/modules
0 snd_usb_audio
1 snd_bcm2835
==> Nói chung cứ snd_bcm2835 không default 0 là tịt!!!
Nhưng vẫn tịt, bác nào đã set cho DAC USB chạy được giúp mình với ( mình đã rename /etc/asound.conf.bak thành asound.conf và chỉnh ExecStartPre=/bin/sleep 30 trong openhome.service)
Anh lưu ý là sau khi làm file asound.conf xong, reboot. Cần phải chạy aplay hoặc speaker-test một lần thì volume mới ló ra trong lệnh alsamixer.
Nếu thấy trong alsamixer có volume rồi, và sound device đang là 0 (default) thì OpenHome sẽ chạy ạ.
Anh tham khảo thêm về softvol:
https://alsa.opensrc.org/Softvol
Note:The new volume control won't appear imidiately! Only after the first usage of the newly defined device (e.g. with speaker-test), should amixer sget Softmaster display the new control. Mixers that were already started before the first usage (like KMix) have to be restarted to adopt the changes. If the new control is still not there, try restarting ALSA or your PC.