Hi, there are several questions confusing me. First, although I use the CTAG img ctag_bone_debian_v0.1.2.img.xz, however, I can not use debian to login, instead, I can use root@192.168.7.2, which shows it almost the same as Bela img. Is there anything wrong?
How to use ALSA in BEAST system?
hmm, if you bought the beaglebone from us, you will have a Bela image on the eMMC (the internal memory of the Beaglebone). You should get rid of that:
- boot without SD card
- run
ssh root@192.168.7.2 dd if=/dev/zero of=/dev/mmcblk1 bs=1M count=50
- boot with SD card
- run
ssh debian@beaglebone.local
(use password temppwd
)
giuliomoro Oh. Thanks. It works now. Then how to build up a ALSA projects on the board now?
You will have to follow tutorials for regular Linux/ALSA applications. @henrix can hopefully provide more assistance on that.
giuliomoro There are some errors when I use scripts
sudo ./load-ctag-beast-16ch-drivers.sh
giuliomoro
./load-ctag-beast-16ch-drivers.sh: line 2: echo: write error: Device or resource busy
./load-ctag-beast-16ch-drivers.sh: line 9: echo: write error: File exists
henrix Thanks. I have checked everything and there is no error now. However, I have come across another problem. I tried to use 96kHz or even 192kHz to record 8 channels simultaneously by arecord command, however it can not work. When I use 48kHz to sample, it works well. Do you have any ideas? Thanks!
With 16 channels the maximum sample rate is 48 kHz due to the fixed master clock generated by a 24.576MHz crystal. Hence, if you want to use 96 kHz sample rate, you have to load the 8 channel face overlay.
The sample rate is the same as for the DACs due to hardware restrictions.
Hence, if you want to use 96kHz sample rate, you have to load the FACE driver as well.
- Edited
@sunwell Right, with the BEAST overlay, a max. sample rate of 48 kHz is possible. With FACE overlay, 96 kHz. 192 kHz is supported by hardware as well if you enable 4 IO channels only. However, currently there are only overlays for 8 (FACE) and 16 channels (BEAST). If you need 192 kHz, I could create a 4 IO channels overlay.
@sunwell Here is an overlay with 4 channels enabled only. The driver should compute the max. sample rate automatically. I upped the binary in my GDrive (will push it to GitHub after evaluation):
Copy the .dtbo to /lib/firmware and change the driver in a CTAG loader script to the according device tree overlay (i.e. BB-CTAG-SW-8CH to BB-CTAG-SW-4CH) and execute the script. Verify the correct driver is loaded via aplay -l (it should list CTAG Multi-Audio IO 4CH).