本帖最后由 mattni 于 2022-8-26 09:41 编辑
diretta alsa的驱动已经到位。开发者给出的ubuntu server的安装方法如下:
请用最新的ubuntu server 22,其他更低版本会报错。
1. 将diretta ALSA X64驱动程序解压缩以后,复制到/opt/DirettaALSAdriver/driver目录
2. 将驱动编译到kernel内 (通常kernel路径在/usr/src/...)
Code :
# cd ./DirettaALSAdriver
# sudo make KERNELDIR=/usr/src/linux-headers-$(uname -r) #用变量自动带入路径
3. 测试
Code :
# sudo modprobe snd_pcm
# sudo insmod ./driver/alsa_bridge.ko
4. 检查alsabridge
Code :
# sudo lsmod | grep alsa_bridge
5. 改权限,让文件可执行,以及copy参数文件
Code :
chmod +x syncAlsa_x64
chmod +x direttaHost.sh
mv /opt/DirettaALSAdriver/setting.inf /etc/Diretta-profile.inf
6. 查看修改diretta_bridge_host.service, diretta_bridge_driver.service, direttaHost.sh Code :
# sudo nano opt/DirettaALSAdriver/diretta_bridge_host.service
# sudo nano /opt/DirettaALSAdriver/diretta_bridge_driver.service
# sudo nano /opt/DirettaALSAdriver/direttaHost.sh
7. 执行direttaHost.sh
Code :
# cd /opt/DirettaALSAdriver/
# sudo ./direttaHost.sh
8 如果一切顺利,diretta alsa会出现在音乐播放设备中(MPD, Roon, etc...). 可以用以下命令检查是否diretta target是否连接正常
Code :
# aplay -l
9. 一般不需要改变网络设置。开发者建议可以查看一下dhcp,在/etc/systemd/network目录
开发者建议用systemd-serviced代替network manager
Code :
# sudo apt install network-manager
# sudo systemctl disable NetworkManager
# sudo systemctl stop NetworkManager
# sudo systemctl start systemd-networkd
# sudo apt remove NetworkManager
systemd的网络配置查看,启用IPv6
enp2s0f0.network file in /etc/systemd/network (my Diretta connection)
Code :
[Match]
Name=enp2s0f0
[Network]
DHCP=yes
LinkLocalAddressing=ipv6
#[DHCPv4]
# RouteMetric=2
|