ikarso has quit [Quit: Connection closed for inactivity]
<zmatt>
Siegurd: ehh that just looks like someone's pet project
<zmatt>
unmaintained pet projec
<zmatt>
while it would be nice to have a more general-purpose mcasp driver that doesn't require alsa, using the normal alsa driver is probably still the best way to go right now
<zmatt>
let me see if I can make an example
<zmatt>
Siegurd: and I can see why you'd want to use the highest sample rate... this thing has pretty crappy decimation filtering :P
<Siegurd>
yeah)
<Siegurd>
I can do filtering later after data placed in to influxDB
<Siegurd>
I have also Debian 11 virtual machine running to compile kernel
<zmatt>
you'll need to uncomment disable_uboot_overlay_audio=1 to disable HDMI-audio (since its pinout conflicts) and then configure the path to the ad7771-mcasp0.dtbo file into any of uboot_overlay_addr4..7
<zmatt>
(those four variables are available for custom overlays, as well as the dtb_overlay variable... they're all equivalent basically. I'm actually not sure why those are even separate variables instead of just one variable containing a list of paths :P )
<Siegurd>
I do cp /home/debian/ad7771-mcasp0.dtbo /boot/dtbs/5.10.168-ti-r68/overlays/
<Siegurd>
and uboot_overlay_addr4=ad7771-mcasp0.dtbo and disable_uboot_overlay_audio=1 in uEnv.txt
<Siegurd>
also to be shore chmod +x "/boot/dtbs/5.10.168-ti-r68/overlays/ad7771-mcasp0.dtbo"
xet7 has quit [Remote host closed the connection]
<zmatt>
I'd suggest putting the overlay in /lib/firmware or really just about anywhere else (you can configure the full path into the variable) but not in a kernel-version-specific directory
<Siegurd>
ok
<zmatt>
otherwise if you update your kernel your system will no longer boot
<zmatt>
(unless the error handling in u-boot is more graceful nowadays :P )
<zmatt>
and dtbo files are not executables, it should not be chmod +x
<zmatt>
anyway, you presumably now have a /dev/snd/pcmC0D0c device and (if the ad7771 has been setup and is outputting data) should be able to receive it via alsa (including using arecord)
<zmatt>
wait is my generic tdm-audio dai driver not in rcn's kernels.... I really thought it was
<zmatt>
ummmm
<zmatt>
mmmmmhhh ok that's an issue
<zmatt>
I vaguely recall there was some other codec driver that was sometimes abused as a generic dai driver but I don't remember which, and I'm pretty sure there were good reasons I made the tdm-audio driver
<zmatt>
alsa has no built-in way to just configure an interface to hardcoded settings, it _requires_ a codec driver representing the device attached to the interface :/
<zmatt>
obnoxiously
<zmatt>
my tdm-audio driver is a such a codec driver but generic and DT-configurable
CrazyEddy has quit [Ping timeout: 256 seconds]
yCrazyEdd has joined #beagle
<zmatt>
but I guess either I never sent it to rcn for inclusion or I did but he didn't include it... I write it a long time ago so I don't really remember
<zmatt>
ugh
<Siegurd>
anything I can help you?
<zmatt>
well I can planning on just going to get some sleep tbh
<zmatt>
but basically the options are 1. forward-port my tdm-audio driver (https://github.com/dutchanddutch/bb-kernel/tree/am33x-v4.14/patches/drivers/sound patches 0001 and 0002) 2. find another codec driver that can be abused for the purpose (I think the spdif_receiver codec (compatible = "linux,spdif-dir";) may work) 3. forget about alsa and use PRU to receive the data from McASP 4. forget about McASP ...
<zmatt>
...and use PRU to receive the data directly from the AD7771
<Siegurd>
Option 1 is most promising
<zmatt>
2 is the least effort if it works
<zmatt>
how hard 1 is will depend on how much stuff has changed in alsa since kernel 4.14
<Siegurd>
its ok for me to downgrade system image to 4.14
<zmatt>
options 3 or 4 are definitely tempting, with 4 probably being easier than 3 but I've wanted to implement 3 for my own purposes for quite a while
<zmatt>
ok, you'd still need to build a custom kernel which would be a bit of an annoyance
<zmatt>
if it forward-ports cleanly maybe rcn can be convinced to adopt it into his kernels
<zmatt>
but regardless, right now I'm going for option 0: zZzZzZ
<Siegurd>
Ok) have a good sleep! And thank you!
<Siegurd>
I will solder things up to be ready for test's
yCrazyEdd is now known as CrazyEddy
ikarso has joined #beagle
Siegurd has quit [Quit: Client closed]
Siegurd has joined #beagle
Siegurd has quit [Client Quit]
zjason` has joined #beagle
zjason has quit [Ping timeout: 252 seconds]
vvn has quit [Quit: WeeChat 4.0.2]
vvn has joined #beagle
otisolsen70 has joined #beagle
otisolsen70 has quit [Remote host closed the connection]
c0dex has quit [Quit: c0dex]
lucascastro has joined #beagle
ikarso has quit [Quit: Connection closed for inactivity]
darkapex has quit [Remote host closed the connection]