Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


S/PDIF input with parametric EQ?
#11
Hi Georgeus,

I too am using an Allo USBridge Signature! Referencing Bitlab's post, I would suggest your next step is to follow what he says from the heading ' Splitting the inputs'. Since you've used arecord you're evidently logged into your USBridge over SSH, so the next step is to create an ALSA config file called /etc/alsa/conf.d/axagon.conf and work out what to put in it, inspired by Bitlab's example. What matters for you is the pcm_slave setting to reference your device and set sampling rate and two channels, and the pcm.toslink setting to configure your S/PDIF input. I have no idea whether you have to also enter settings for the two analogue inputs you have too. Note that he is using a MOTU Ultralite AVB soundcard, so wherever his file mentions motu you can change that to axagon for your file, and your device has a different number of inputs so your values for the bindings parameters will be different.

With that done, you will have set the correct sampling rate, and be able to address the S/PDIF input by a name you give it in the file when using arecord to capture audio. If that works you can continue to follow his article to set up a playlist as a way to select this configuration as your input device for playback via Moode. Let me know how you get on with this!

I am going to bite the bullet and buy a HifiBerry Digi+ I/O and do some similar work. In my case it is a deal-breaker if I cannot route to CamillaDSP since I need room correction, so something tells me  the playlist-as-input solution won't work for me, but this post suggested by jensgk earlier in this thread shows promise! I will follow up when I have the HAT and have worked on setting it up.

Cheers,

Ian
Reply
#12
Success!

I followed an article at HiFiBerry's web site to get the Digi+ I/O card's driver (part of the Linux kernel) loaded, then using Bitlab's article as inspiration to use an alsa:// link in an M3U playlist file to pass digital audio from the digital input HAT to mpd. I've written up the complete process here.

I will also A/B compare between this setup and digital-direct-to-the-DAC as I've been using up until now. The former benefits from the room correction EQ curve I've implemented in CamillaDSP, whilst the latter bypasses the HifiBerry Digi+ & Allo streamer entirely, obviating any possible re-clocking errors this might have introduced.


More soon,

Ian
Reply
#13
(03-11-2024, 01:24 AM)dr.diem Wrote: Success!

I followed an article at HiFiBerry's web site to get the Digi+ I/O card's driver (part of the Linux kernel) loaded, then using Bitlab's article as inspiration to use an alsa:// link in an M3U playlist file to pass digital audio from the digital input HAT to mpd. I've written up the complete process here.

I will also A/B compare between this setup and digital-direct-to-the-DAC as I've been using up until now. The former benefits from the room correction EQ curve I've implemented in CamillaDSP, whilst the latter bypasses the HifiBerry Digi+ & Allo streamer entirely, obviating any possible re-clocking errors this might have introduced.


More soon,

Ian

Very nice.  I did not try the whole thing, but I just connected my Hifime UR23 SPDIF Optical to USB converter to my RPi with moode, and readily got the following output (see below). I am hoping I can reproduce the rest of your recipe when I get more time.  Thanks for the write up!  Smile



pi@moode:~ $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 2: Rx [UR23 USB SPDIF Rx], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
pi@moode:~ $ arecord -D hw:2,0,0 --dump-hw-params
Recording WAVE 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono
HW Params of device "hw:2,0,0":
--------------------
ACCESS:  MMAP_INTERLEAVED RW_INTERLEAVED
FORMAT:  S16_LE S24_3LE
SUBFORMAT:  STD
SAMPLE_BITS: [16 24]
FRAME_BITS: [32 48]
CHANNELS: 2
RATE: [32000 96000]
PERIOD_TIME: [1000 1000000]
PERIOD_SIZE: [32 96000]
PERIOD_BYTES: [128 576000]
PERIODS: [2 1024]
BUFFER_TIME: (666 2000000]
BUFFER_SIZE: [64 192000]
BUFFER_BYTES: [256 1152000]
TICK_TIME: ALL
--------------------
arecord: set_params:1343: Sample format non available
Available formats:
- S16_LE
- S24_3LE
Reply


Forum Jump: