-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MOTU 828 (28x32) ucm2 configuration #416
Conversation
Adds search for Motu 828 and points to the MOTU / D828 location for configuration files.
Motu 828 configuration file, points to D828-HiFi.conf file.
HiFi conf file for MOTU 828. Aligns to factory settings.
Fixed error in naming SplitPCM (needed to be motu828_stereo_in, not just 828_stereo_in) Removed 2x in+out Optical 8-channel ADAT,, replaced with 2-channel optical SPDIF
After some changes, I also had to apply this patch; NixOS/nixpkgs#272991 And now, it appears to go further in the chain. It appears to find the UCM profiles, sets the ucm verb to HiFi, add ports. Eventually, however, I get to this: ALSA device (null) roles: null |
Cleanup for consistency and added notes for future iterations
The above configuration seems to work as a baseline. Note the comments at the beginning of the file: there are some future features to be done, including adding missing ports--namely two banks of 8-channel ADAT ports--because the macro only appears to work with up to 2 channels of parameters. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a clean and working instance.
However, there are 16 input and 16 output channels missing
(8x Optical A in, 8x Optical A out, 8x Optical B in, 8x Optical B out).
I don't know how to do an 8-channel source or sink.
MOTU 828 has up to 32 hardware channels. Add support for this configuration to common/pcm/split.conf. Also, add support for up to 8 channels for the abstact devices (like 7.1 surround). Note that this change requires recent alsa-lib (Syntax 7). Link: alsa-project#416 Signed-off-by: Jaroslav Kysela <[email protected]>
Comments: I added support up to 32 channels / 8 logical channels to PR #417 . Note that this requires recent (not yet released) alsa-lib and To describe conflicts - use |
Thank you, @perexg . Also, a question: I noticed that in both the command line and in gnome's sound settings, the port orders are reversed (eg. Line 3-4 shows up before Line 1-2). Is this a bug, or should I define the configuration in reverse order, in order to have the devices show up in logical/intuitive order in applications? |
The sound servers should show the device list sorted according the priority value. It looks like a problem somewhere else (pipewire or pulseaudio). I suggest to check the list also using the |
In testing the results, I don't think the priority has anything to do with the order that the devices are shown. I can go into the D828-HiFi file, change the order of a device, without changing the priority. The result is that for the alsaucm command you recommended, the order is consistent with the order written in the D828-HiFi file (top to bottom, not by priority); but the spa-acp-tool and in gnome settings, the order is reversed. So, for example, in my latest D828-HiFi.conf file, in one part, I have the following consecutive order for 3 devices (top to bottom):
In alsaucm, these show up in the order listed above. However, in spa-acp-tool and in gnome settings (under sound), these show up as:
(reverse ordered) I had earlier linked a separate issue; and within it, there is this comment that seems to have the same observations as mine: alsa-project/alsa-lib#245 (comment) For now, I will reorder my devices as I add mono/stereo conflict resolution, so that they show up correctly in my GUI's settings panel. It is relatively simple to reverse the order again, should there be a future change to alsa-lib or whatever the root cause turns out to be. |
- Added alternate stereo/mono devices for line inputs - prefaced names with [mono] or [stereo] to improve UX - Adopted naming convention for line devices to make code easier to follow - Reordered devices to show up in an intuitive order to improve UX - Added comments - Cleanup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made some updates:
- Mono / stereo line sources
- Naming convention
- Reordering
- comments
|
Removed and cleaned up previous naming convention, to follow alsa-lib naming rules Reordered devices
MOTU 828 has up to 32 hardware channels. Add support for this configuration to common/pcm/split.conf. Also, add support for up to 8 channels for the abstact devices (like 7.1 surround). Note that this change requires recent alsa-lib (Syntax 7). Closes: #417 Link: #416 Signed-off-by: Jaroslav Kysela <[email protected]>
I am trying to create a UCM for the Motu 828 (28 x 32), which was released in 2024. (Caution: there have been several versions of the 828 over the past few decades. I am referring to the 2024 model).
I am not particularly technical when it comes to code and I had to google what a Pull Request is. And I am struggling on how to do this. I had previously created an issue here: #415
I have made 2 different attempts at creating a ucm configuration: 1 with and 1 without use of the split pcm macros. I based the 'macro version' loosely on the Motu M6 ucm. And I created the one without based on a guide I found online. The version without macros seemed to get further; but for purposes here, I will attempt the Macro version.
Here are the files and changes I have created. Unfortunately, when I run the command
spa-acp-tool -c 0 -vvvv info
, the results are:`spa-acp-tool -c 0 -vvvv info
variable '${var:__Device}' is not defined in this context!
error: /USB-Audio/MOTU/D828-HiFi.conf failed to parse device
error: failed to import hw:0 use case configuration -22
variable '${var:__Device}' is not defined in this context!
error: /USB-Audio/MOTU/D828-HiFi.conf failed to parse device
error: failed to import 828 use case configuration -22
UCM not available for card 828
`
At which point the system goes into an alsa fallback / default.
What am I doing wrong?