zynthian / zynthian-issue-tracking

Centralized Issue Tracking for Zynthian Project
https://github.com/orgs/zynthian/projects/1
11 stars 3 forks source link

Audio Levels does not support arrays of controls #1259

Open riban-bw opened 2 weeks ago

riban-bw commented 2 weeks ago

Describe the issue

Zynthian ignores amixer controls in an array. I strips off the array info and treats all controls in that array as the same control. This results in many controls being hidden and the audio levels view with controllers that adjust the wrong controls.

To Reproduce

Steps to reproduce the behavior:

  1. Add a soundcard with arrays of audio controls.
  2. Show "Mixer Controls" in webconf.

    Expected behaviour

    All controls are shown.

    Actual behaviour

    Only one of each element of an array of controls is shown.

    Screenshots

    image

    Additional context

    An example soundcard is the Tascam US-16x08 which has 16 channels inputs and 8 outputs. All the individual controls for each input and output is part of an array, e.g. has a name like, 'Line Out',0. The index of the parameter within the array is the integer after the comma, in this case, '0'.

The array index is ignored by zynthian_engine_alsa_mixer::get_mixer_zctrls but it should be monitored and if an array exists, the symbol and name should be created for each element.

This attached file is the output from amixer for the Tascam US-16x08. us16x08.txt

Configuration

Hardware

Raspberry Pi 5 Model B Rev 1.0
Audio: Tascam US-16x08
Display: MIPI DSI 800x480
Wiring: DUMMIES
I2C: Not detected
Profile: 

System

Debian GNU/Linux 12 (bookworm)
Build Date: 2024-10-02
Memory: 19% (1574M/8052M)
SD Card: 51% (14G/29G)
Temperature: 47.7ºC
Overclock: Maximum

MIDI & UI

Tuning: 440 Hz
Master Channel: 16
Preload Presets: Off
ZS3 (SubSnapShots): On
Power Save: 10 minutes
Audio Levels on Snapshots: On

Software

zyncoder: vangelis (c1b7cb1) 
zynthian-ui: vangelis (1758f77)
zynthian-sys: vangelis (91bc67e)
zynthian-data: vangelis (305b301)
zynthian-webconf: vangelis (7923636)
riban-bw commented 1 week ago

This is resolved in branch 1259_us16x08.