sudo tee /etc/udev/rules.d/89-pulseaudio-usb.rules <<END # Disable PulseAudio for next usb-audio devices by usb-id # Tone2 Pro ATTRS{idVendor}=="3353", ATTRS{idProduct}=="a002", ENV{PULSE_IGNORE}="1" # Tone2 ATTRS{idVendor}=="3353", ATTRS{idProduct}=="a004", ENV{PULSE_IGNORE}="1" # Tone1 ATTRS{idVendor}=="3353", ATTRS{idProduct}=="a001", ENV{PULSE_IGNORE}="1" # Tea ATTRS{idVendor}=="3353", ATTRS{idProduct}=="a005", ENV{PULSE_IGNORE}="1" # Tea Pro ATTRS{idVendor}=="3353", ATTRS{idProduct}=="a006", ENV{PULSE_IGNORE}="1" # Tone1 with XMOS usbid ATTRS{idVendor}=="20b1", ATTRS{idProduct}=="000a", ENV{PULSE_IGNORE}="1" # just one line for all XMOS devices ATTRS{idVendor}=="20b1", ENV{PULSE_IGNORE}="1" # just one line for all Khadas Audio devices ATTRS{idVendor}=="3353", ENV{PULSE_IGNORE}="1" END
现在,只需将Tone2 Pro或Tone1设备重新插入计算机,新配置即可生效。
检查您的Tone2 Pro或Tone1是否支持本机DSD播放
通过下面的命令就能确认,
1 2
grep -H DSD_U32_BE /proc/asound/card?/stream0 && \ echo Native DSD support - ok
#zeroconf_enabled "yes" #zeroconf_name "Music Player @ %h"
audio_output { type"alsa" name "Tone2" # use only hardware devices for bit-perfect playback device "hw:CARD=Pro,DEV=0" # optimal buffer/period size for maximum performance # about 2% system usage only ;) buffer_time "409600" period_time "40960" # only use hardware volume control mixer_type "null" # software volume control, you may/may not need this ;) # mixer_type "software"
# disable all format conversions auto_resample "no" auto_channels "no" auto_format "no" # Disable DSD over PCM, as we have native playback from the Linux kernel # dop "yes" }
mpc add DSD_test_512.44100.2.dsf mpc add '09 - Faith No More - Be Aggressive.flac' mpc add http://s4-webradio.rockantenne.de/alternative # play it mpc play mpc repeat on mpc mpc outputs mpc stop mpc clear mpc update # get full commands list mpc help