• Disclaimer: This Vendor's Forum is a paid-for commercial area. Unlike the rest of diyAudio, the Vendor has complete control of what may or may not be posted in this forum. If you wish to discuss technical matters outside the bounds of what is permitted by the Vendor, please use the non-commercial areas of diyAudio to do so.

Support for Botic Linux driver

Member
Joined 2007
Paid Member
I apologize in advance for this general post because Miero has plenty to keep him busy. :(

BUT... I need to guess what is possible in software before I configure my Cronus/Hermes.

I have been looking at how to host LADSPA filters on my BBB system. I want simple high- and low-pass filters plus a pair of time alignment filters for bi-amping my speakers. These filters are easy to find online. However, Linux audio being what it is, there are probably 10 possible ways to get it working. I looked at hosts like ecasound and they seem so bloated relative to this simple task. Then I found this description of using pcm: in ALSA to clone channels and selectively apply LADSPA filters. That would be perfect! Is it reasonable to think that this could work if built into Botic? [I have not seen the Botic code and I'm not a Linux guy, but would be happy to try this with some hand holding.] What are the hidden pitfalls? Ideally, I would like to maintain the raw sample rates into the filters, or at worst, use integral up sampling.

I know, getting great 2 channel performance is more important, but LADSPA integration seems almost inevitable...

Any/all thoughts most appreciated. ;)

Frank
 
Aw hell, a bit more linux advice needed guys.

so I've been flashing my botic v3 to the eMMC.
BUUUTTT.... doh, didn't unplug my local hard drive music library from the BBB usb socket.

Net result is this:

An externally hosted image should be here but it was not working when we last tested it.


I think it started copying over my .wav files as well until it obviously ran out of memory and then started chucking out error messages.

How do I proceed from here?

cheers
Ced
 
do not use eMMC as data storage...

you have exhausted whole capacity by copying data there

you can delete something by entering into uboot, enable exporting media via USB and connecting then BBB into >>Linux operating system<< and then mounting USB volume.

you need Linux, because exported filesystem is ext3 which Windows probably does not support natively

use any Linux Live CD/USB you have (or download & burn)
 
Just went back into YMPD and now the REMOTE directory doesn't show up?
Did an ls -l on BBB/putty and it is all there, and mpd.conf is still correct???

But, like I said in the post above, I'm concerned as to why
card 0: BOTICAudio [TPA BOTIC-Audio], device 0: ES9018 es9018-hifi-0 []
doesn't show on botic v5.
Hi ichiban,

Why are you concerned about the name of the botic audio device? On v5 it just uses a slightly different name. In your above post you are also issuing some commands to check for the USB sound module. Do you want to use the botic driver or a USB sound device?

To verify you have actually some sound from the botic sound device do:
Code:
sudo systemctl stop mpd
speaker-test -c2 -Dhw:0,0
This should produce sound (white noise)
 
Member
Joined 2004
Paid Member
Hi ichiban,

Why are you concerned about the name of the botic audio device? On v5 it just uses a slightly different name. In your above post you are also issuing some commands to check for the USB sound module. Do you want to use the botic driver or a USB sound device?

To verify you have actually some sound from the botic sound device do:
Code:
sudo systemctl stop mpd
speaker-test -c2 -Dhw:0,0
This should produce sound (white noise)

Ok, much thanks for a reply :), I was just about to revert back to v3 to check it out.

So, this is the result running the commands you suggest ......

root@botic:~# sudo systemctl stop mpd
root@botic:~# speaker-test -c2 -Dhw:0,0

speaker-test 1.0.27.2

Playback device is hw:0,0
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Ra[ 9875.400023] helper=
te set to 48000Hz (requested 48000Hz)
Buffer size range from 128 to 32768
Period size range from 8 to 2048
Using max buffer size 32768
Periods = 4
was set period_size = 2048
was set buffer_size = 32768
0 - Front Left
Write error: -5,Input/output error
xrun_recovery failed: -5,Input/output error
Transfer failed: Input/output error
 
Ok, much thanks for a reply :), I was just about to revert back to v3 to check it out.

So, this is the result running the commands you suggest ......

root@botic:~# sudo systemctl stop mpd
root@botic:~# speaker-test -c2 -Dhw:0,0

speaker-test 1.0.27.2

Playback device is hw:0,0
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Ra[ 9875.400023] helper=
te set to 48000Hz (requested 48000Hz)
Buffer size range from 128 to 32768
Period size range from 8 to 2048
Using max buffer size 32768
Periods = 4
was set period_size = 2048
was set buffer_size = 32768
0 - Front Left
Write error: -5,Input/output error
xrun_recovery failed: -5,Input/output error
Transfer failed: Input/output error
The last lines do not look good. Maybe Miero can help out here. Can you attach the output of 'dmesg'?
 
Code:
root@botic:~# lsof /usr/lib/*/libasound*
COMMAND    PID USER  FD   TYPE DEVICE SIZE/OFF NODE NAME
mpd        999  mpd mem    REG  179,2   627384 3632 /usr/lib/arm-linux-gnueabihf/libasound.so.2.0.0
squeezeli 1163 root mem    REG  179,2   627384 3632 /usr/lib/arm-linux-gnueabihf/libasound.so.2.0.0
root@botic:~# speaker-test -c 2

speaker-test 1.0.27.2

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Playback open error: -16,Device or resource busy

I have running mpd and squeezelite that might have open sound card (exclusively).

Let's terminate them and retry...
Code:
root@botic:~# pkill -f squeze
root@botic:~# pkill -f mpd
root@botic:~# speaker-test -c 2

speaker-test 1.0.27.2

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 16384
Period size range from 3 to 1025
Using max buffer size 16384
Periods = 4
was set period_size = 1024
was set buffer_size = 16384
 0 - Front Left

Also botic v4/v5 has different audio output name:
Code:
root@botic:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Botic [Botic], device 0: external dac-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
 
Member
Joined 2004
Paid Member
I have to reassemble BBB/Hermes/Cronus/BII

You are meaning voltage on MCLK output on Cronus?


Reconnected every thing and tried speaker test, get output of hiss only, should be different frequencies? I have the clock pin in position 1 on the hermes.

Hiss is in both channels...


root@botic:~# speaker-test 1.0.27.2

speaker-test 1.0.27.2

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 16384
Period size range from 3 to 1025
Using max buffer size 16384
Periods = 4
was set period_size = 1024
was set buffer_size = 16384
0 - Front Left
Time per period = 1.329224
0 - Front Left
Time per period = 1.492888
0 - Front Left
^CWrite error: -4,Interrupted system call
xrun_recovery failed: -4,Interrupted system call
Transfer failed: Interrupted system call
 
Last edited:
Member
Joined 2004
Paid Member
ichiban...



Does your clock work? Please measure DC voltage on MCLK output. It should be non zero.

I measure varying DC volts about 160mV .... at these points.......
 

Attachments

  • Cronus Voltage Msmnt.jpg
    Cronus Voltage Msmnt.jpg
    66.4 KB · Views: 206