tml3nr
Moderator
Nó chưa thấy sound anh ạ. Để em teamview xem thử.Em thử Fifo pi cũng không thấy Render, asset chạy ngon. Chạy thử lệnh systemctl status openhome.service
Nó báo thế lày:
Nó chưa thấy sound anh ạ. Để em teamview xem thử.Em thử Fifo pi cũng không thấy Render, asset chạy ngon. Chạy thử lệnh systemctl status openhome.service
Nó báo thế lày:
còn nhạc ngoại thì sao bác.Xin nói thêm
Nếu thêm dòng 24db_digital_gain.
Sau thời gian tìm hiểu sở thích của các bác trên forum này.
Với thể loại nhạc vàng. Bản xenomaipi v1.3 hoàn toàn đáp ứng cho các bác, không cần realtime.
Điều này khó nói lắm anhcòn nhạc ngoại thì sao bác.
[Unit]
Description=OpenHome Player
Wants=network-online.target
After=network.target network-online.target
[Service]
User=root
ExecStartPre=/bin/sleep 30
ExecStart=-/usr/bin/openhome-player
Restart=on-failure
[Install]
WantedBy=multi-user.target
Alias=openhomeplayer.service
sudo systemctl daemon-reload
Với thể loại nhạc vàng, vocal. Bản xenomaipi v1.3 hoàn toàn đáp ứng cho các bác, không cần realtime.
cảm ơn anh đã nhiệt tình teamview giúp emEm cập nhật tình hình ạ.
Máy của anh @toi511 dùng fifo pi.
dtoverlay=rpi-dac.dtbo
Dac này không có volume nên phải dùng softvol.
Service cần phải thêm delay 30s như sau thì ok ạ:
openhome.service:
Mã:[Unit] Description=OpenHome Player Wants=network-online.target After=network.target network-online.target [Service] User=root ExecStartPre=/bin/sleep 30 ExecStart=-/usr/bin/openhome-player Restart=on-failure [Install] WantedBy=multi-user.target Alias=openhomeplayer.service
Sau đó chạy:
Mã:sudo systemctl daemon-reload
Rồi reboot.
@chipno : Anh dùng digione với softvol. Nếu như openhome không play được sau khi reboot thì anh thêm vào openhome.service như trên nhé.
Cảm ơn ý kiến của bác về vụ Realtime, trước cứ nghĩ là Xenomai aka realtime thôi
Hôm nay Gfu chút mới vỡ ra thêm về vụ Linux Realtime, thấy có Cobalt lại có cả Mercury
Mình đã copy mấy file về đọc, tiện share thêm mấy link để mấy anh có thời gian đọc thêm cùng chém về RT cho nó nhừ ạ :
https://www.opensourceforu.com/2015/10/the-xenomai-project-a-linux-based-rtos/
https://pdfs.semanticscholar.org/9eb5/1dbe38fb23034e80b8664d8281996d2a5ef6.pdf
http://kth.diva-portal.org/smash/get/diva2:1251188/FULLTEXT01.pdf
https://www.icterra.com/real-time-linux-comparison/
@mtminh , @tml3nr
Vụ 24db tìm ra ở đây giải thích
https://www.raspberrypi.org/forums/viewtopic.php?t=269979
From the overlay readme
Name: allo-boss-dac-pcm512x-audio
Info: Configures the Allo Boss DAC audio cards.
Load: dtoverlay=allo-boss-dac-pcm512x-audio,<param>
Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
Digital volume control. Enable with "dtoverlay=allo-boss-dac-pcm512x-audio, 24db_digital_gain"
The default behaviour is that the Digital volume control is limited to a maximum of 0dB. ie. it can attenuate but not provide gain. For most users, this will be desired as it will prevent clipping. By appending the 24db_digital_gain parameter, the Digital volume control will allow up to 24dB of gain. If this parameter is enabled, it is the responsibility of the user to ensure that the Digital volume control is set to a value
that does not result in clipping/distortion!
Vâng anh, Trong BOSS-DAC-Tech-Manual-1.2.pdf có nói điều này.
Mình nghĩ đây là bug. Với điều kiện bình thường, nếu tăng +24db, tín hiệu đã bị cắt ngọn (clipping) sinh ra biến dạng, dù để volume mức thấp. Vậy mà, tăng lên đến mức độ 56 mới bị ảnh hưởng.
Có thể phần trước sound card, cung cấp I2S quá thấp. Dưới mức độ mà sound card không decode tốt được. Độ động giảm nhiều lắm.
Kỳ lạ một điều là tăng digital volume max, kêu to mồm nhưng chất lượng âm thanh không khá hơn. Nếu có sơ đồ và hiểu driver, có thể biết 2 loại volume đó tác động vào nơi nào trên sound card hoăc trên OS
Tăng fix +24db, chỉ là test tìm hiểu, không phải cách khắc phục đúng.
Nhờ các anh chuyên gia check lại chính xác phải vậy không.
@mtminh Đối với Bos Dac thì volume analog/digital thì là nằm trên con pcm5122 anh à. Anh xem trong specs của pcm5122 ở đây. Anh kiểm tra volum analog thứ 2 của Boss Dac trong hình trên đang ở level 0, anh tăng lên test xem như thế nào ạ.
Muốn asset upnp chạy với quyền root. Anh chỉ cần sửa "User=root" trong assetupnp.service ạ.
sudo nano /lib/systemd/system/assetupnp.service
[Unit]
Description=Launch AssetUPnP
After=network.target
[Service]
User=root
Type=simple
ExecStart=/home/pi/bin/AssetUPnP > /dev/null 2>&1
Restart=always
RestartSec=1min
[Install]
WantedBy=multi-user.target
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] Attached SCSI removable disk
@mtminh Đối với Bos Dac thì volume analog/digital thì là nằm trên con pcm5122 anh à. Anh xem trong specs của pcm5122 ở đây. Anh kiểm tra volum analog thứ 2 của Boss Dac trong hình trên đang ở level 0, anh tăng lên test xem như thế nào ạ.
Lúc này em nghĩ là pi nó hiểu y như mình đang cắm usb disk anh ạ.Em cắm thẻ nhớ qua adapter usb to sdcard vào raspbian toàn bị lỗi dưới. Bác nào biết fix giùm ạ.
Mã:sd 0:0:0:0: Attached scsi generic sg0 type 0 sd 0:0:0:0: [sda] Attached SCSI removable disk
Lúc này em nghĩ là pi nó hiểu y như mình đang cắm usb disk anh ạ.
Vậy mình phải theo bài boot pi from usb.
Thí dụ như:
https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/msd.md
À em lộn. Tưởng anh tính boot từ adapter microsd to usb.Nó bị như thế nên em không thể fdisk hay làm gì trên thẻ nhớ (thẻ nhớ cắm vào adpter usb to sdcard rồi cắm vào cổng usb của pi). Muốn flash os vào thẻ nhớ cũng không được.