It's the same driver (and DTS overlay) you used on your rpi3. You get playback and capture devices.Where to implement a driver for this? Has someone a driver ?
frunse@moode:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
card 0: b1 [bcm2835 HDMI 1], device 1: bcm2835 HDMI 1 [bcm2835 HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
looks diferent 2 times HDMI 1 no HDMI 0 ???
may be something i need to add in /boot/config.txt
like this???
dtoverlay=vc4-kms-v3d
What is the different between vc4-kms and bcm2835 ???
Sorry need lots to learn about Raspberry i guess
Robert
thnx so aplay -l tells me yet:It's the same driver (and DTS overlay) you used on your rpi3. You get playback and capture devices.
CDSP supports fast recovery from stalled devices which is very handy for I2S slaves.
moode wans't working stable on HDMI Out, after some minutes of music play i got freeze and need to restart the RPI4 (moode) so i switched to picoreplayer and this works absolutly stable on HDMI Out on the same RPI4! so i am fine now.Did you get this sorted? I believe vc4-kms-v3d is the recommended HDMI driver now so you should be using that (at least, if you've updated Raspi OS). In older releases of Raspi OS, they used the FKMS driver which shows up like above. From your aplay output on a later post, it looked like vc4hdmi1 was card #2, so you would need to put the number 2 in your /etc/asound.conf (I had 1 in my example).
yes , you are right: CD and other signals into ADAU1763 and then from there I2S into the CDSP-Filter for the roomodes and back I2S to the ADAU 1463 and crossover FIR filters to the 2 dacs U use (bass and mid/high). Thank you for the link. So corrected, without the ALSA-Loop, I forgot to cut in the example,Do I understand correctly (based on your diagram) that you want CDSP to capture from I2S and playback to I2S? If so, why the loopback?
The device name string should use the card name, i.e. the single-word string before the parentheses. It should be hw:Slave for the playback. Check e.g. http://james.ahlstrom.name/alsa_names.html
Capture cards are listed by arecord -l . Read its output carefully, likely the I2S capture is device 1, i.e. hw:Slave,1
The default alsa config on your OS has defined input using some useful plugins so you don't have to.what are the Differences of and when i need to use one against the other and why???:
HW:CARD=UltraLitemk5
plugw:CARD=UltraLitemk5
sysdefault:CARD=UltraLitemk5
dmix:CARD=UltraLitemk5
front:CARD=UltraLitemk5
surroundxx:CARD=UltraLitemk5
The card name is the string before the parenthesis in aplay/arecord -l. I.e. "hw:Slave", not "hw:Generic I2S Output - Slave" https://www.audiosciencereview.com/...easier-and-cheaper.48233/page-10#post-1912318yes , you are right: CD and other signals into ADAU1763 and then from there I2S into the CDSP-Filter for the roomodes and back I2S to the ADAU 1463 and crossover FIR filters to the 2 dacs U use (bass and mid/high). Thank you for the link. So corrected, without the ALSA-Loop, I forgot to cut in the example,
devices:
samplerate: 48000
chunksize: 1024
playback:
type: Alsa
channels: 2
format: S32LE
device: "hw:Generic I2S Output - Slave,2,0"
and if I am finding the next days a driver with i2S Input and i2s output o or be able to build it, may be named "Generic I2S -Slave handling"
there must be something as description additional like
capture:
type: Alsa
channels: 2
format: S32LE
device: "hw:Generic I2S Handling - Slave,2,1" (depending arecord will tell me)
So if i dont know what format comes from input i better use plugw: instead of hw: for input Device on CDSPThe default alsa config on your OS has defined input using some useful plugins so you don't have to.
hw: hardware - direct access, only one thing playing to it at a time, and only allows formats directly supported by the underlying hardware.
plughw: Uses a plugin to auto-convert formats if the underlying hardware doesn't support what you're trying to play. Still only one thing playing at a time.
sysdefault: the one that will be used by default if you don't specify something else.
dmix: Mix playback from multiple programs - may be useful if you aren't using a sound daemon like pulseaudio, pipewire or JACK. Most desktop distros use a sound daemon though.
front, surroundXX - different channel groupings if you have multichannel hardware.
Asoundrc - AlsaProject
www.alsa-project.org
That's a separate issue from formats. If you have different clock domains you need AsyncResampling otherwise sooner or later they will drift out of sync by more than the available buffer. This is because the data input and output are running at slightly different rates. An example would be input and output on different sound cards without a master clock to keep them in sync. If you only have one clock domain then you don't need it. That would cover input and output on the same interface, or a software player sending data to an output.So i dont need to use the AsyncResempling stuff on CDSP, right.
Did you get this sorted? I believe vc4-kms-v3d is the recommended (and default) HDMI driver for RPi5 so you should be using that. From your aplay output on a later post, it looked like vc4hdmi1 was card #2, so you would need to put the number 2 in your /etc/asound.conf (I had 1 in my example).
So if i dont know what format comes from input i better use plugw: instead of hw: for input Device on CDSP
Ok thats fine.
So i dont need to use the AsyncResempling stuff on CDSP, right.
Thank you.
The Picoreplayer at the moment sampling all to 96kHz 32bit and it works great so far, but you right if i use any other Device, let say my Blueray i need Async or plugw i guess or i need to switch the input Frequenz every time manualy on CDSP but this is not realy what i want to doFrom your screenshots, you are opening the I2S input and grabbing at 96kHz in S32_LE format. So it seems like you do know what samplerate and format is coming in - otherwise using hw: wouldn't work.
I can't see your playback samplerate - it seems to be cut off. You should probably enable AsyncResampling as the two devices (I2S and ULMK5) are almost certainly using different clocks and will drift apart (as mentioned by @somebodyelse). This was happening to me previously in my similar setup - every 45 mins I would get a buffer under-run and a small pause in playback. AsyncResampling has no measurable impact on sound.
Just a note ( as @somebodyelse already explained) - plughw is basically equvalent to CDSP Sync resampler (with CDSP being most likely much more CPU efficient unless you have some tweaked setup). CDSP async resampler is used to merge two clock domains which requires continually adjusting the resampling ratio and which the rate plugin called by the plug plugin cannot do.but you right if i use any other Device, let say my Blueray i need Async or plugw
Thx for that advice, i will do so than the Picoreplayer dont need to upsampling all because cdsp will do the job on Output to Motu already.Just a note ( as @somebodyelse already explained) - plughw is basically equvalent to CDSP Sync resampler (with CDSP being most likely much more CPU efficient unless you have some tweaked setup). CDSP async resampler is used to merge two clock domains which requires continually adjusting the resampling ratio and which the rate plugin called by the plug plugin cannot do.
Hmm i tried it right now but it didnt work like you say.Yes, that's IMO the best way. Running only one resampler (asynchronous or synchronous, as needed for the given input) in the whole chain.