由於USB或I2S DAC都是使用Linux的ALSA(Advanced Linux Sound Architecture)控制,因此USB DAC的使用者也可以參考此篇文章設定及測試
1. I2S DAC硬體與driver準備(USB DAC使用者直接到下一章節)
筆者的DAC規格
晶片: PCM5102a
通道: I2S (下圖左上角Pi預設沒焊排針的8隻腳)
指揮艇組合XD
由於筆者手邊的I2S DAC是採用HiFiBerry的設計,又Raspbian 2014-01-07版本(Linux kernel 3.10.25+以上)已內建HiFiBerry的driver,因此不用再多下載驅動,但需要在啟動時載入driver modules
// 載入I2S DAC需要用到的driver modules
pi@ShiunPiSnd ~ $ sudo vi /etc/modules
# 關閉內建DAC省去未來播放音樂還要選擇裝置的麻煩 #snd-bcm2835 # 載入DAC driver module snd_soc_bcm2708_i2s bcm2708_dmaengine snd_soc_pcm5102a snd_soc_hifiberry_dac重新啟動Pi讓Linux載入HiFiBerry driver
2. 檢查Pi是否有抓到DAC
顯然的Pi有抓到HiFiBerry DAC,且內建的DAC也關掉了 (若讀者使用USB DAC在此處也會看到)
3. 播放音樂測試
pi@ShiunPiSnd ~ $ aplay xxx.wav
收工~
(2014/05/26 update) 筆者試著播放/usr/share/sounds/alsa下的音樂卻發生錯誤,但播放自己的音樂卻沒問題,若讀者發現無法播放/usr/share/sounds/alsa下的音樂也請不用擔心
參考資料
1. HiFiBerry
While gaming promoting will be banned earlier than eight.30pm, the ban doesn’t extend to perimeter promoting or on-air mentions of betting odds. But the rise of online betting could threaten its contribution. An alarmingly high proportion of problem gamblers are utilizing off-shore betting firms for ‘micro-betting’ on sports activities. We like to see a great cell app on Android and iOS from our top online bookmakers. 카지노 If you’re betting whereas you’re in the crowd or you’re on the transfer, you want prompt entry out of your cellphone. We solely advocate the most safe betting websites would possibly be} licensed by national authorities just like the UK Gambling Commission .
回覆刪除