03-27-2019, 01:37 PM
(03-27-2019, 03:31 AM)TheOldPresbyope Wrote: @Tim Curtis
I pulled a HiFiBerry DAC+ out of the drawer and slapped it on an RPi3B+. Booted into moOde r50rc0.
Set I2S audio device to HiFiBerry DAC+ and rebooted. Only volume settings available are "Disabled" and "Software".
Checked the audio portion of moode.log and got output which differs from yours: ALSA Card number (1) and Hdwr volume controller not detected.
Ran "aplay -l". Oh, sure, my Creative W2 USB-Audio BT adapter was still plugged in so ALSA counts two cards. That must be mucking up the works.
Code:pi@moode50rc0:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberry_dacplus], device 0: HiFiBerry DAC+ HiFi pcm512x-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: W2 [Creative Bluetooth Audio W2], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
For sure having an I2S and USB audio device connected at the same time will really mess up the configuration. Currently the code assumes that only one of either an I2S device or USB device is connected.
Its certainly possible to modify the code to support I2S and USB connected at same time and with a mechanism to switch between the two but there would need to be a demand for this capability since its a significant work effort.
After disconnecting the USB device it will prolly take two reboots to completely reset the config back to I2S.
-Tim