0

Get digi io to reccord

Hiya,

I have been a happy user of a rasp3 + Digi+ for some times. Now I want to be able to pipe my CD player output into the system so I can record the stream, play it on the hifi system, etc. so I purchased a Digi+ I/O which I thought was adapted given the simplicity of my use case (in particular I only want to use a CD player).

Setting up the card was easy and I can play my music just like before using aplay or for instance moode. But when I try to capture the toslink input, however hard I try I merely obtain an empty wav file.

I have used the following command as a test

arecord -d 10 -c 2 -f CD -vv test2.wav

Which then produces the following output:

Recording WAVE 'test2.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Plug PCM: Hardware PCM card 0 'snd_rpi_hifiberry_digi' device 0 subdevice 0
Its setup is:
stream : CAPTURE
access : RW_INTERLEAVED
format : S16_LE
subformat : STD
channels : 2
rate : 44100
exact rate : 44100 (44100/1)
msbits : 16
buffer_size : 22052
period_size : 5513
period_time : 125011
tstamp_mode : NONE
tstamp_type : MONOTONIC
period_step : 1
avail_min : 5513
period_event : 0
start_threshold : 1
stop_threshold : 22052
silence_threshold: 0
silence_size : 0
boundary : 1445199872
appl_ptr : 0
hw_ptr : 0
#+ | 00%

Plugin the CD player works like expected so I doubt the problem comes from it.

While I typically use the moode image disk, exactly the same happens with a fresh install of hifiberryos.

For the sake of completeness here is my config.txt

$ cat /boot/config.txt
disable_splash=1
disable_overscan=1
hdmi_drive=2
hdmi_blanking=1
hdmi_force_edid_audio=1
hdmi_force_hotplug=1
hdmi_group=0
dtparam=i2c_arm=on
dtparam=i2s=on
#dtparam=audio=off
dtoverlay=hifiberry-digi
#dtoverlay=disable-wifi
dtoverlay=disable-bt

And

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberry_digi], device 0: HifiBerry Digi HiFi wm8804-spdif-0 [HifiBerry Digi HiFi wm8804-spdif-0]
Subdevices: 1/1
Subdevice #0: subdevice #0

Am I missing something obvious here? I did read more than 30 posts related to the digi+ but had no luck here.

Cheers!
Guillaume.

17 comments

Please sign in to leave a comment.