
-
2021-01-26, 05:26 PM
#261
 作者: seeteeyou
感謝Seeteeyou兄分享,
常常給的資訊量很大,小弟都需要消化一下。小弟對於這段頗有興趣:
把RPi4的Type-C 當成傳輸介面用,其中也可當網路介面用。
小弟的點子是,兩台RPi4之間用Type-C串起來,取代網路線,不知效果會如何?
或者Player端直接變成Server端的USB音效卡!
如小弟的Roon -> USB OTG(RPi4);雙RPi4的玩法要再想一想。
當然前提是,要先改由GPIO供電,小弟在新天新地有分享做法了,可以參考一下:
http://www.stsd99.com/phpBB3/viewtop...tart=90#p19056
此篇文章於 2021-01-26 06:15 PM 被 sam0402 編輯。
-
The Following 4 Users Say Thank You to sam0402 For This Useful Post:
-
2021-01-26, 07:36 PM
#262
 作者: seeteeyou
其實RPi4 只播放音樂,已經算沒事幹了,雜訊應該還是一樣多。
對於 I2S的雜訊,小弟就把RPi4加上金屬外殼來處理了,再把GPIO用長腳的排針來延長與FifoPi連接。
http://www.stsd99.com/phpBB3/viewtop...tart=70#p18999
而FifoPi與TransportPi之間,可以考慮日本樂友的作法,用銅箔外加隔離包覆後夾在中間。
此篇文章於 2021-01-26 07:47 PM 被 sam0402 編輯。
-
The Following 4 Users Say Thank You to sam0402 For This Useful Post:
-
2021-01-27, 11:22 AM
#263
 作者: sam0402
感謝Seeteeyou兄分享
不用客氣,也感謝 sam0402 兄和 tetsuka 兄的無私分享。
 作者: sam0402
小弟對於這段頗有興趣:
把RPi4的Type-C 當成傳輸介面用,其中也可當網路介面用。
小弟的點子是,兩台RPi4之間用Type-C串起來,取代網路線,不知效果會如何?
或者Player端直接變成Server端的USB音效卡!
如小弟的Roon -> USB OTG(RPi4);雙RPi4的玩法要再想一想。
小弟是絕對讚同 sam0402 兄的想法,USB OTG 實在不容忽視,而且 Player 端只需擔任唯一的角色,僅僅是 USB 音效卡的它就能夠跑一個『超級纖瘦』版本的 Linux 了,任何跟無線/有線網路相關的部分也可以砍掉,去除很多軟件與及它們的 dependencies 之後就成為一種脫胎換骨的 OS 了。
其實小弟心中也正盤算著一記問題,到底該花時間鑽研 Netmap 和 Audio over Ether 那種 Kernel-bypass Networking/Direct Memory Access 的方式,還是集中火力優化體積纖巧的離線 Linux 比較好呢?前者的隱憂就是如何跟 44.1 KHz kernel timer frequency 並存,畢竟 sam0402 兄 compiled kernel 的時候已經遇上一定數量涉及 networking 方面的 warnings。
如果需要花那麼多時間去 debug 的話,倒不如專攻 OS 層面的優化那麼划算。減肥成功以後,還可以研究怎樣進一步精簡 kernel 等等,畢竟 headless + 離線的 OS 就可以省去很多 drivers 了。
另外小弟還找到這個 USB/IP 的 extension:
http://www.tinycorelinux.net/12.x/aa...re-v8.tcz.info
https://repo.picoreplayer.org/repo/1...re-v8.tcz.info
http://usbip.sourceforge.net
https://www.kernel.org/doc/readme/to...b-usbip-README
https://developer.ridgerun.com/wiki/...and_use_USB/IP
Setup a Raspberry Pi as a USB-over-IP server
https://derushadigital.com/other%20p...BIP-ZWave.html
Some additions to Linux USB/IP
https://linux-usbip-additions.blogspot.com
Mainline 的 source code 如下:
https://github.com/torvalds/linux/tr.../usb/usbip/src
https://github.com/torvalds/linux/bl.../linux/usbip.h
UAC2 gadget 這種相對比較複雜的 USB 音效卡就不知道能否於網路上共享了。
-
The Following 5 Users Say Thank You to seeteeyou For This Useful Post:
-
2021-01-27, 11:58 AM
#264
-
The Following 4 Users Say Thank You to seeteeyou For This Useful Post:
-
2021-01-27, 12:57 PM
#265
-
The Following 3 Users Say Thank You to Ericcatz For This Useful Post:
-
2021-01-27, 06:35 PM
#266
 作者: seeteeyou
其實小弟心中也正盤算著一記問題,到底該花時間鑽研 Netmap 和 Audio over Ether 那種 Kernel-bypass Networking/Direct Memory Access 的方式,還是集中火力優化體積纖巧的離線 Linux 比較好呢?前者的隱憂就是如何跟 44.1 KHz kernel timer frequency 並存,畢竟 sam0402 兄 compiled kernel 的時候已經遇上一定數量涉及 networking 方面的 warnings。
如果需要花那麼多時間去 debug 的話,倒不如專攻 OS 層面的優化那麼划算。減肥成功以後,還可以研究怎樣進一步精簡 kernel 等等,畢竟 headless + 離線的 OS 就可以省去很多 drivers 了。
「遇上一定數量涉及 networking 方面的 warnings」,那是第一個44.1KHz 版本時遇到的問題,
那些warnings剛好跟播放無關,所以44.1KHz才能誕生。
在Lite版之後的版本,小弟去除很多與播放無關的Driver 和 Network Filter 功能,compile時已經沒有什麼warnings。
到Noël版時已經算是非常精簡的Kernel了,所以才有真正的好聲。
至於USB ip,小弟還得重新compile 才能補上這個功能,不過RPi4要改供電方式才能用。
所以小弟會先測試OTG模式,把RPi4當成音效卡看看。
或許Noël之後還會有Update...
此篇文章於 2021-01-28 10:15 AM 被 sam0402 編輯。
-
The Following 3 Users Say Thank You to sam0402 For This Useful Post:
-
2021-01-28, 11:12 PM
#267
 作者: sam0402
所以小弟會先測試OTG模式,把RPi4當成音效卡看看。
或許Noël之後還會有Update...
或許 RPi4 能夠帶領我們向終點邁進多一步:
ian's fifo 通通無法徹底消除前端數位播放差異,只能打折,還是哭哭......
事緣是醬子的,索價 299 鎂的 Euphony OS 近來增添了另一種 RAM 的緩衝模式,好處是把現有 queue 中包含的所有檔案拷貝入 RAM 之後就能夠暫時把網路卡關掉,然後每次相隔五分鐘才檢查一下 queue 的內容有沒有任何改變,最後的結果就是消除/大大降低網路帶來的干擾:
https://audiophilestyle.com/forums/t...hread/page/64/
when queue is filled from NAS and fully buffered to RAM and when playback starts - network can be disconnected
Hi, yes talked to Zeljko last night. Basically before you could only buffer & play 2 songs if you pulled out the cable. Now you can buffer & play as many as you like then pull cable out.
Add album, buffer, then in expert menu press play. See below, it automatically shuts down network completely. It also auto populates how long for (album time length).
But nothing like the change that disconnecting the network has made. Tonight I sat through a Jeffrey Foucault album on buffer and network disconnected in Expert. I really enjoyed it, but it wasn't until I listened to a track again with network connected and wondered what had happened. I had to do the Expert disconnect again for that track and sure enough, a real change to detail, air and tone. What's that all about?
The difference is very obvious; the Matrix in the chain was a good change, this is again something I don't want to miss. Despite the inability to skip, add or stop play, so far it is worth it.
既然暫時關掉網路卡是可行的話,那麼 USB Host 和 USB OTG 大概也問題不大吧?假如能夠把一定數目的檔案拷貝入 8GB RAM 的 RPi4 是否可以暫時關掉 Roon Core 那邊的 USB 輸出呢?
因此小弟就去看看一些關於 UAC2 gadget 的 patches,當中 Ruslan Bilovol 兄就提及 ALSA 的 loopback driver:
https://patchwork.kernel.org/project...bmitter=121671
貌似虛擬音效卡:
https://www.alsa-project.org/wiki/Matrix:Module-aloop
https://www.systutorials.com/docs/linux/man/1-alsaloop/
https://sysplay.in/blog/linux/2019/0...pback-devices/
還有 JACK 和 PulseAudio:
https://github.com/actions/virtual-e...ts/issues/1114
https://stackoverflow.com/questions/...cord-it-to-fil
當然最重要的就是如何利用 RPi4 的 RAM 來建立緩衝,該不是用 alsa-utils 的 arecord 寫入 RAM disk 那麼簡單吧?
-
The Following 4 Users Say Thank You to seeteeyou For This Useful Post:
-
2021-01-29, 12:28 AM
#268
 作者: seeteeyou
既然暫時關掉網路卡是可行的話,那麼 USB Host 和 USB OTG 大概也問題不大吧?假如能夠把一定數目的檔案拷貝入 8GB RAM 的 RPi4 是否可以暫時關掉 Roon Core 那邊的 USB 輸出呢?
小弟剛剛才實作出來把piCorePlayer 當成OTG 給Roon Server,就等同Roon Server 的一張音效卡。
藉由usb線傳音樂,這樣就不用透過網路傳輸了,也等於可以關掉。
至於聲音如何,太晚了,明早再試聽比較。
-
The Following 3 Users Say Thank You to sam0402 For This Useful Post:
-
2021-01-29, 09:55 AM
#269
小弟剛剛才實作出來把piCorePlayer 當成OTG 給Roon Server,就等同Roon Server 的一張音效卡。
藉由usb線傳音樂,這樣就不用透過網路傳輸了,也等於可以關掉。
至於聲音如何,太晚了,明早再試聽比較。
聲音很好,但使用中狀況不佳,偶有爆音和程式中斷,放棄。
等Kernel 5可用時再測試。
-
The Following User Says Thank You to sam0402 For This Useful Post:
-
2021-01-29, 10:35 AM
#270
 作者: sam0402
聲音很好,但使用中狀況不佳,偶有爆音和程式中斷,放棄。
等Kernel 5可用時再測試。
感謝 sam0402 兄,且看這 NAA 更新後的結果如何:
https://audiophilestyle.com/forums/t...omment-1082701
Soon'ish it should begin to support also USB inputs, so you could use it as input device to HQPlayer (makes HQPlayer look like a USB DAC to the upstream computer).
來自同一作者的 HQ Player 也是驚為天人,最近推出的版本該是登峰造極了:
https://audiophilestyle.com/forums/t...omment-1105619
I've been listening all day and I can report that I also hear the superiority of 4.9.0 over 4.9.2. But I can also report that, at least over here, Embedded 4.21.1 sounds even better than Desktop 4.9.0! Even more surprising is that the difference between all three versions (in audiophile terms, LOL) is pretty significant. In other words, the latest HQP OS/Embedded is so good that I can't "downgrade" to Desktop 4.9.0!
Ericcatz 兄和 me5888 兄也是讚口不絕:
https://www.mobile01.com/topicdetail...&p=40#80290433
恭喜入手HQPlayer,這套被推崇為(秒天秒地)的音樂播放軟體...
沒聽過這套軟體之前,對於這種評價曾經(視而不見),但是....
聽過之後才驚覺到自己從前是如何的(以管窺天)與可笑的自以為是!
https://www.mobile01.com/topicdetail...&p=40#80332662
HQPlayer + NAA 裝好了也試聽了一晚
感覺是比Logitech Media Server + Squeezelite 好上1p
Embedded 版本的售價是 €199,PC 和 RPi4 也可以的說:
https://www.signalyst.com/embedded-install.html
-
The Following 3 Users Say Thank You to seeteeyou For This Useful Post:
發文規則
- 您不可以發表新主題
- 您不可以發表回覆
- 您不可以上傳附件
- 您不可以編輯自己的文章
-
討論區規則
|