[PROBLEM] Issue with sound card that have multiple device - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7) +--- Thread: [PROBLEM] Issue with sound card that have multiple device (/showthread.php?tid=4604) |
Issue with sound card that have multiple device - beanxinh - 12-11-2021 Hi, I have install moode-r760 on a RPi3 and use it with the Asus Xonar U7 MKII. It have analog and spdif out which I want to use the spdif to output the sound to a Sony PHA3. On aplay -l the card appear like this Quote:card 2: MKII [Xonar U7 MKII], device 0: USB Audio [USB Audio]The SPDIF port is on device 1. I tried to change the output in web GUI but they do not have the option to choose the device, only allow to change the card. I tried to looking for a solution and come up with some post mentioned that changing /etc/alsa/conf.d/_audioout.conf will allow to change the output device so I manually changed it to Quote:pcm._audioout {and Quote:pcm._audioout {but MPD and spotify still output on the old device. After a while i figured that by changing /www/inc/playerlib.php in the below place Quote:sysCmd("sed -i '/slave.pcm/c\slave.pcm \"" . $output_mode . ':' . $cardnum . ",0\"' " . ALSA_PLUGIN_PATH . '/_audioout.conf');and swap ",0\" to ",1\" and then using the web GUI to change the sound card I can output the sound to the spdif port. and when I took a look at the _audioout.conf file it changed to the same value that I manually inputted before Quote:pcm._audioout { So my question is what happened? Why manually changed the /etc/alsa/conf.d/_audioout.conf did not changed the output of the sound card? And if possible please add the ability to choose the device to your wonderful program in some future release. Thank. RE: Issue with sound card that have multiple device - Tim Curtis - 12-11-2021 You need to restart MPD after changing ALSA conf. sudo systemctl restart mpd If there is more demand for cards like the Xonar device I could add to the TODO list but at minimum I'd need a sample device for testing. RE: Issue with sound card that have multiple device - beanxinh - 12-12-2021 (12-11-2021, 09:21 PM)Tim Curtis Wrote: You need to restart MPD after changing ALSA conf. Sorry I forgot to mention it in the previous post but after I changed the _audioout.conf I did restart MPD using "systemctl restart mpd" I also try reboot the pi . Quote:audio_output { type "alsa"If I change the mpd.conf file and replace "_audioout" with "hw2:1" I can change the output of MPD after restart the service or reboot but spotify remain the same( they are different service after all). |