Webconf Audio Hardware parameters' syntax guide?

Hi @jofemodo!

I have tried to configure a custom audio hardware device, with the following commands:

Driver Config

dtoverlay=hifiberry-dac8x
force_eeprom_read=0

Jackd options:

-P 70 -s -S -d alsa -d hw:sndrpihifiberry -r 48000 -p 256 -n 2 -o 8 -X raw

Aubionotes options

-O complex -t 0.5 -s -88 -p yinfft -l 0.5

Zynthian reboots and the audio system works, but it reverts stubbornly to a sample buffer of 128, with this Jackd configuration:

-P 70 -s -S -d alsa -d hw:sndrpihifiberry -r 48000 -p 128 -n 2 -i 2 -o 2 -o 8 -X raw

The string seems to add a redundant -i 2 (there should not be any inputs, as far as I know…) and asserts uselessly two outputs (-o 2), shortly before declaring eight outputs (-o 8).

I start to suspect that the dtoverlay driver is enforcing something in the Jackd configuration…

I honestly do not know how to scale up the buffer to 256 samples (which entails a manageable latency for most applications and playing styles, exerting less CPU strain) and to expose the 8 audio levels.

In the related HifiBerry forum there seem to be passing references to audio inputs (?..) and to DAC 8X not having DAC volume controls, which would explain why Oram does not see them.

EDIT: Moreover, I discovered that the four stereo outputs (or eight mono outputs) happen to be mixed up, respective to what indicated on the physical TRS connectors, in the strange 5-6, 7-8, 1-2, 3-4 order.

Best regards :smiley:

HI @Aethermind !

I’ve added a DAC8 config to the webconf. I hope it’s OK for you. It should persist your modifications too.

Please, send me a list of mixer controls so i can add them to the config.

Thanks!

2 Likes

Hi @jofemodo :smiley:

This is amazing news!

I will try to impose the new DAC 8X audio profile on my hardware, and hopefully will be able to change the sample rate and see the mixer controls in the end!

Thank you, I will keep you updated :+1:

1 Like

Hi @jofemodo :blush:,

Here I am with updates on the new DAC 8X audio profile in webconf.

The good news is that it keeps the 256 samples buffer setup (:+1:), with a noticeable increase in audio stability when more CPU-demanding canvases are loaded in the Z. I am also seeming to detect an overall better hi-fi quality of the output, but this might be subjective and perceptually self-induced.

I will try to alter at will the buffer size, and check if the jackd config reacts accordingly, in order to obtain safe playback of larger snapshots (at 512 or 1024) or quick real-time response of patches with sharp attack transients (at 128).

The less enticing report is that still Zynthian does not list the eight DAC volume levels, nor enumerates them if asked to show mixer parameters in webconf > hardware > audio.

I wonder if this is wanted by design. We can still get individual control of the eight levels on a per-chain basis, using direct outputs, but in this way we lose a master slider to change proportionally the layered multi-channel audio image.

There aren’t obviously issues of sort working in a ā€œregularā€ stereo environment, because in that case the chains output can be sent to main mixbus, which has its own dedicated master slider.

Thanks!

This is probably a limitation of current mixer implementation.
Please, send me the output of ā€œamixerā€ from the command line.

Regards

:+1:

@jofemodo Are you also interested in configuration of specific USB devices or only hardware pin connected audio DACs?

Mixer configuration of any device is welcome. Well. Indeed a PR to webconf repository would be still better.

Regards

@jofemodo, ok. Sorry I don’t understand ā€œPR to webconf repositoryā€ ???
I’ll do it for the ES-9 from expert sleepers.

PR is a pull request with the modified code. If you don’t know how to do it, simply send the mixer control names, copy-paste from webconf. Better, include all your hardware configuration. :wink:

Thanks

1 Like

I think this is normal because the Hifiberry DAC 8X use 4 pcm5102a chips. And they do not implement any built in audio level controls.

OK! Then it’s normal. No hardware audio output level control for this card.

Hi @le51 :smiley:,

Do you maybe know if the four stereo chips can be partially made to work also as audio inputs?

I have intercepted comments on the Hifiberry DAC 8X, about possibly configuring part of the eight channels as inputs as well.

I wasn’t aware and it would be very useful, but I haven’t found any explicit reference in the (minimal) official documentation.

Hi @jofemodo,

Should we then drop the DAC 8X audio levels subject altogether?

I will check anyway what the system returns in command line, with your instructions.

Regards!

Hi @Aethermind, I’m sorry, but for sure it’s impossible to use a DAC as an ADC.

No. They are DACs, not ADCs

Indeed, that was my understanding too, and it struck me as a strange argument that four stereo Digital to Analog Converters could also work in reverse, as Analog to Digital Converters.

It makes perfect sense that they only transform numbers in uA current levels, not the other way round. Thank you for the clarification anyway!