USBスピーカー
OlasonicのUSBスピーカー、TW-S7を購入してRaspberry Piに接続した。接続してRPiを再起動するとUSBスピーカーが認識される。
$ aplay -l **** List of PLAYBACK Hardware Devices **** card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA] Subdevices: 8/8 Subdevice #0: subdevice #0 Subdevice #1: subdevice #1 Subdevice #2: subdevice #2 Subdevice #3: subdevice #3 Subdevice #4: subdevice #4 Subdevice #5: subdevice #5 Subdevice #6: subdevice #6 Subdevice #7: subdevice #7 card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: DAC [USB Audio DAC], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0
card 1のdevice 0でUSBスピーカが認識されているのmpd.confにデフォルトのオーディオ出力に設定の下にこの設定を追加する。
#
# An example of an ALSA output:
#
audio_output {
type "alsa"
name "My ALSA Device"
device "hw:0,0" # optional
format "44100:16:2" # optional
# mixer_device "default" # optional
# mixer_control "PCM" # optional
# mixer_index "0" # optional
}
audio_output {
type "alsa"
name "USB Audio"
device "hw:1,0" # optional
format "44100:16:2" # optional
}
mpdをリスタートしてDroidMPDを接続すると出力設定に追加した”USB Audio”が出てくるのでそちらを選択すればOK。

コメントを残す