![]() |
Input from HiFiBerry DAC2 ADC Pro - 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: Input from HiFiBerry DAC2 ADC Pro (/showthread.php?tid=7705) |
Input from HiFiBerry DAC2 ADC Pro - scaronpce - 05-06-2025 Hello Forum, I have a new HiFiBerry DAC2 ADC Pro using the "hifiberry-dacplusadcpro" dtoverlay. I was hoping to enable the analog input by changing line 38 of the inp-config.php script from: Code: if ($_SESSION['i2sdevice'] == 'HiFiBerry DAC+ ADC') { to: Code: if ($_SESSION['i2soverlay'] == 'hifiberry-dacplusadcpro') { This does enable the input device selector in the configuration menu but capture (ie: Fixed volume (0dB), analog input, local audio output) does not appear in the library menu. Unless it is named under some poetic label ;-) I can verify with Code: sox -r 48k -b 32 -c 2 -t alsa hw:sndrpihifiberry -t alsa hw:sndrpihifiberry How do I play this source in moOde ? Regards, moOde release is: 9.3.3 2025-04-29 RE: Input from HiFiBerry DAC2 ADC Pro - Tim Curtis - 05-06-2025 More code would need to be changed to support that device but b4 any of that could be done there needs to be a complete explanation of what comand(s) are used to actually switch the input on the board. For example the earlier DAC+ ADC just used the "alsaloop" command. RE: Input from HiFiBerry DAC2 ADC Pro - scaronpce - 05-06-2025 Hello Tim, I understand your comment. For your information, the command Code: alsaloop -C hw:sndrpihifiberry,0 -P hw:sndrpihifiberry,0 -t 50000 works perfectly in a SSH session (just as sox does). In fact, this is why I edited line 38 of the inp-config script: I expected this to work just as it works for the plain DAC / ADC board. Can you point me towards the script that does the input switching so I can test ? Regards, RE: Input from HiFiBerry DAC2 ADC Pro - scaronpce - 05-08-2025 Hello Tim, I am happy to report that analog input works fine with the HiFiBerry DAC2 ADC PRO. Note changes in HiFiBerry drivers are documented here: Change in HiFiBerry drivers. My understanding is that their device name is always 'sndrpihifiberry'. In audio.php, line 113 was changed from: Code: if ($_SESSION['i2sdevice'] == 'HiFiBerry DAC+ ADC') { Code: if (0 === strpos($_SESSION['i2soverlay'], 'hifiberry-dacplusadc')) { In the same script, lines 146-147 were changed from: Code: if ($_SESSION['i2sdevice'] == 'HiFiBerry DAC+ ADC') { Code: if (0 === strpos($_SESSION['i2soverlay'], 'hifiberry-dacplusadc')) { In inp-config.php, line 38 was changed from: Code: if ($_SESSION['i2sdevice'] == 'HiFiBerry DAC+ ADC') { Code: // Either version of HiFiBerry DAC+ADC I can switch from analog input to MPD without any issue. Actual capture parameters (frequency, bit depth, etc.) are of no concern at this time. I probably should specify 32 bits, 2 channels, 48/96 kHz in real life but right now, I just wanted this to work. Thank you for your support. |