Skip to content

lemmyg/t2-apple-audio-dsp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testing Asahi Linux userspace audio configuration on MacBook Pro 16 2019 T2.

Thanks to chadmed and Asahi Linux.

The project has been adjusted to test Asahi Linux audio workflow on a MacBook Pro 16 2019 with T2 audio driver.

New FIRs were created measuring the MacBook Pro 16 with UMIK-1 mic and manually created FIRs of EQ filters using REW.

For more information about Asahi audio, please visit the original project at asahi-audio

Installation instructions

First follow t2-audio instructions and install pipewire.

Once the audio is working, you can install the FIRs config in your system. Note that this configuration has been tested on Ubuntu 22.04 and 22.10. For Ubuntu user, 22.10 is recommended as Pipewire is properly integrated.

1a - Ubuntu

Install the following dependecies:

sudo add-apt-repository ppa:pipewire-debian/pipewire-upstream
sudo apt update
sudo apt upgrade
sudo apt install pipewire pipewire-audio-client-libraries libpipewire-0.3-modules libspa-0.2-{bluetooth,jack,modules} pipewire{,-{audio-client-libraries,pulse,bin,tests}}
sudo apt install wireplumber lsp-plugins calf-plugins swh-plugins

Clone the git branch and install the FIRs config:

git clone -b speakers_161 https://github.com/lemmyg/t2-apple-audio-dsp.git
cd t2-apple-audio-dsp
bash install.sh

1b - NixOS

Copy pipewire_sink_conf.nix to /etc/nixos/ and import it in configuration.nix.

Add ladspaPlugins, calf and lsp-plugins to environment.systemPackages in configuration.nix.'

To make the LADSPA + LV2 plugins available for PipeWire we also need to add these ENVs:

systemd.user.services.pipewire.environment = {
    LADSPA_PATH = "${pkgs.ladspaPlugins}/lib/ladspa";
    LV2_PATH = "${config.system.path}/lib/lv2";
};

Rebuid:

sudo nixos-rebuild switch   

2

To restart pipewire:

systemctl --user restart pipewire pipewire-pulse wireplumber

3

Reboot and open the audio settings. "Apple Audio Driver Speakers" should be at 100% and "MacBook Pro T2 DSP Speakers" selected as main volumen control. Usually at 75% max. Do not select "Apple Audio Driver Speakers" directly as the audio will be send directly to the speakers without any adjustment.

Uninstall

Ubuntu

bash uninstall.sh

NixOS

Reverse installation steps and rebuild.

Disclaimer

This project has been create to share the settings with T2 kernel team. Note that the project is still under working in progress and may not be safe for general usage. Misconfigured settings in userspace could damage speakers permanently.

Thanks