Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save asd2003asd/3960637449acd7db02da8b907acdf812 to your computer and use it in GitHub Desktop.
Save asd2003asd/3960637449acd7db02da8b907acdf812 to your computer and use it in GitHub Desktop.

Revisions

  1. @famish99 famish99 revised this gist Dec 21, 2024. 1 changed file with 6 additions and 5 deletions.
    11 changes: 6 additions & 5 deletions diretta_synchro_sync_install.md
    Original file line number Diff line number Diff line change
    @@ -76,6 +76,11 @@
    ```
    ## Diretta Host Service setup
    > [!NOTE]
    > If upgrading from the old `diretta_bridge_host`, first disable it by running the following:
    > ```bash
    > $ sudo systemctl stop diretta_bridge_host
    > $ sudo systemctl disable diretta_bridge_host
    * Check your version of `gcc` using the following command:
    ```bash
    $ gcc --version
    @@ -101,17 +106,13 @@
    ```bash
    $ sudo chmod +x /usr/src/alsa_bridge-0.142.12/ssyncAlsa_gcc13_x64_v1
    ```
    * Run the following steps to run `ssyncAlsa` on boot
    ```bash
    $ sudo ln -s /usr/src/alsa_bridge-0.142.12/diretta_ssync_host.service /etc/systemd/system/
    $ sudo systemctl enable diretta_ssync_host
    $ sudo systemctl start diretta_ssync_host
    ```
    > [!NOTE]
    > If upgrading from the old `diretta_bridge_host`, be sure to disable by running the following:
    > ```bash
    > $ sudo systemctl stop diretta_bridge_host
    > $ sudo systemctl disable diretta_bridge_host
    * To check if ALSA drivers are working correctly, make sure an audio device is connected to the target and run:
    ```bash
  2. @famish99 famish99 revised this gist Dec 21, 2024. 1 changed file with 11 additions and 11 deletions.
    22 changes: 11 additions & 11 deletions diretta_synchro_sync_install.md
    Original file line number Diff line number Diff line change
    @@ -49,21 +49,21 @@
    BUILT_MODULE_LOCATION=./
    DEST_MODULE_LOCATION=/kernel/drivers/alsa/
    PACKAGE_NAME=alsa_bridge
    PACKAGE_VERSION=0.142.2
    PACKAGE_VERSION=0.142.12
    REMAKE_INITRD=yes
    AUTOINSTALL=yes
    ```
    * Copy the directory into `/usr/src` for DKMS to find it
    ```bash
    $ sudo cp -R . /usr/src/alsa_bridge-0.142.2
    $ sudo cp -R . /usr/src/alsa_bridge-0.142.12
    ```
    * Run the following commands to enable DKMS for the module:
    ```bash
    $ sudo dkms add -m alsa_bridge -v 0.142.2
    $ sudo dkms build -m alsa_bridge -v 0.142.2
    $ sudo dkms install -m alsa_bridge -v 0.142.2
    $ sudo dkms add -m alsa_bridge -v 0.142.12
    $ sudo dkms build -m alsa_bridge -v 0.142.12
    $ sudo dkms install -m alsa_bridge -v 0.142.12
    ```
    * Load the `alsa_bridge` module:
    @@ -82,15 +82,15 @@
    ```
    > [!NOTE]
    > Default `gcc` version for 24.04 is version 13, adjust accordingly for your install
    * Edit `/usr/src/alsa_bridge-0.142.2/diretta_ssync_host.service` to the following:
    * Edit `/usr/src/alsa_bridge-0.142.12/diretta_ssync_host.service` to the following:
    ```ini
    [Unit]
    Description = Diretta Synchro Alsa Host
    After=network-online.target
    ConditionPathExists=/usr/src/alsa_bridge-0.142.2
    ConditionPathExists=/usr/src/alsa_bridge-0.142.12
    [Service]
    ExecStart=/usr/src/alsa_bridge-0.142.2/ssyncAlsa_gcc13_x64_v1
    ExecStart=/usr/src/alsa_bridge-0.142.12/ssyncAlsa_gcc13_x64_v1
    Restart=always
    Type=simple
    @@ -99,11 +99,11 @@
    ```
    * Mark the selected service as executable
    ```bash
    $ sudo chmod +x /usr/src/alsa_bridge-0.142.2/ssyncAlsa_gcc13_x64_v1
    $ sudo chmod +x /usr/src/alsa_bridge-0.142.12/ssyncAlsa_gcc13_x64_v1
    ```
    * Run the following steps to run `ssyncAlsa` on boot
    ```bash
    $ sudo ln -s /usr/src/alsa_bridge-0.142.2/diretta_ssync_host.service /etc/systemd/system/
    $ sudo ln -s /usr/src/alsa_bridge-0.142.12/diretta_ssync_host.service /etc/systemd/system/
    $ sudo systemctl enable diretta_ssync_host
    $ sudo systemctl start diretta_ssync_host
    ```
    @@ -137,4 +137,4 @@
    > alsaUnderrun=enable
    > CpuSend=
    > CpuOther=
    > ```
    > ```
  3. @famish99 famish99 revised this gist Dec 21, 2024. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions diretta_synchro_sync_install.md
    Original file line number Diff line number Diff line change
    @@ -4,14 +4,14 @@
    * Ubuntu Desktop/Server 22.04 LTS or 24.04 LTS
    * Install the following packages using apt:
    ```bash
    $ sudo apt install alsa-utils build-essential dkms zstd
    $ sudo apt install alsa-utils build-essential dkms
    ```

    ## Download and unzip Diretta Host driver package
    * Download ALSA driver version 0.142.2 from [Diretta Preview](https://www.diretta.link/preview/)
    * Download ALSA driver version 0.142.12 from [Diretta Preview](https://www.diretta.link/preview/)
    * Unzip the drivers using the following command:
    ```bash
    $ tar --use-compress-program=unzstd -xvf DirettaSalsaHost_0_142_2.tar.zst
    $ tar -xvf DirettaSalsaHost_0_142_12.tar.xz
    ```

    ## Setup DKMS
  4. @famish99 famish99 revised this gist Dec 21, 2024. 1 changed file with 10 additions and 1 deletion.
    11 changes: 10 additions & 1 deletion diretta_synchro_sync_install.md
    Original file line number Diff line number Diff line change
    @@ -97,12 +97,21 @@
    [Install]
    WantedBy=multi-user.target
    ```
    * Mark the selected service as executable
    ```bash
    $ sudo chmod +x /usr/src/alsa_bridge-0.142.2/ssyncAlsa_gcc13_x64_v1
    ```
    * Run the following steps to run `ssyncAlsa` on boot
    ```bash
    $ sudo ln -s /usr/src/alsa_bridge-0.142.2/diretta_ssync_host.service /etc/systemd/system/
    $ sudo systemctl enable diretta_ssync_host
    $ sudo systemctl start diretta_bridge_host
    $ sudo systemctl start diretta_ssync_host
    ```
    > [!NOTE]
    > If upgrading from the old `diretta_bridge_host`, be sure to disable by running the following:
    > ```bash
    > $ sudo systemctl stop diretta_bridge_host
    > $ sudo systemctl disable diretta_bridge_host
    * To check if ALSA drivers are working correctly, make sure an audio device is connected to the target and run:
    ```bash
  5. @famish99 famish99 revised this gist Oct 30, 2024. 1 changed file with 62 additions and 62 deletions.
    124 changes: 62 additions & 62 deletions diretta_synchro_sync_install.md
    Original file line number Diff line number Diff line change
    @@ -3,23 +3,23 @@
    ## Prerequisites
    * Ubuntu Desktop/Server 22.04 LTS or 24.04 LTS
    * Install the following packages using apt:
    ```bash
    $ sudo apt install alsa-utils build-essential dkms zstd
    ```
    ```bash
    $ sudo apt install alsa-utils build-essential dkms zstd
    ```

    ## Download and unzip Diretta Host driver package
    * Download ALSA driver version 0.142.2 from [Diretta Preview](https://www.diretta.link/preview/)
    * Unzip the drivers using the following command:
    ```bash
    $ tar --use-compress-program=unzstd -xvf DirettaSalsaHost_0_142_2.tar.zst
    ```
    ```bash
    $ tar --use-compress-program=unzstd -xvf DirettaSalsaHost_0_142_2.tar.zst
    ```

    ## Setup DKMS
    * `cd DirettaALSAdriver/`
    * Test for build issues with your kernel by running:
    ```bash
    $ make KERNELDIR=/lib/modules/$(uname -r)/build
    ```
    ```bash
    $ make KERNELDIR=/lib/modules/$(uname -r)/build
    ```
    > [!NOTE]
    > If you're on a kernel older than 6.4.0, you'll likely run across 2 build issues that can be fixed by uncommenting (removing the `//`) from the lines in `alsa_bridge.c` that look like:
    > ```c
    @@ -38,76 +38,76 @@ $ make KERNELDIR=/lib/modules/$(uname -r)/build
    > #endif
    > ```
    * Clean up test build using:
    ```bash
    $ make clean
    ```
    ```bash
    $ make clean
    ```
    * Run `touch dkms.conf` and add the following content:
    ```ini
    MAKE="'make' KERNELDIR=/lib/modules/${kernelver}/build"
    CLEAN="'make' clean"
    BUILT_MODULE_NAME=alsa_bridge
    BUILT_MODULE_LOCATION=./
    DEST_MODULE_LOCATION=/kernel/drivers/alsa/
    PACKAGE_NAME=alsa_bridge
    PACKAGE_VERSION=0.142.2
    REMAKE_INITRD=yes
    AUTOINSTALL=yes
    ```
    ```ini
    MAKE="'make' KERNELDIR=/lib/modules/${kernelver}/build"
    CLEAN="'make' clean"
    BUILT_MODULE_NAME=alsa_bridge
    BUILT_MODULE_LOCATION=./
    DEST_MODULE_LOCATION=/kernel/drivers/alsa/
    PACKAGE_NAME=alsa_bridge
    PACKAGE_VERSION=0.142.2
    REMAKE_INITRD=yes
    AUTOINSTALL=yes
    ```
    * Copy the directory into `/usr/src` for DKMS to find it
    ```bash
    $ sudo cp -R . /usr/src/alsa_bridge-0.142.2
    ```
    ```bash
    $ sudo cp -R . /usr/src/alsa_bridge-0.142.2
    ```
    * Run the following commands to enable DKMS for the module:
    ```bash
    $ sudo dkms add -m alsa_bridge -v 0.142.2
    $ sudo dkms build -m alsa_bridge -v 0.142.2
    $ sudo dkms install -m alsa_bridge -v 0.142.2
    ```
    ```bash
    $ sudo dkms add -m alsa_bridge -v 0.142.2
    $ sudo dkms build -m alsa_bridge -v 0.142.2
    $ sudo dkms install -m alsa_bridge -v 0.142.2
    ```
    * Load the `alsa_bridge` module:
    ```bash
    $ sudo modprobe alsa_bridge
    ```
    ```bash
    $ sudo modprobe alsa_bridge
    ```
    * Add `alsa_bridge` to `/etc/modules` so the module will load on boot
    ```bash
    $ echo "alsa_bridge" | sudo tee -a /etc/modules
    ```
    ```bash
    $ echo "alsa_bridge" | sudo tee -a /etc/modules
    ```
    ## Diretta Host Service setup
    * Check your version of `gcc` using the following command:
    ```bash
    $ gcc --version
    ```
    ```bash
    $ gcc --version
    ```
    > [!NOTE]
    > Default `gcc` version for 24.04 is version 13, adjust accordingly for your install
    * Edit `/usr/src/alsa_bridge-0.142.2/diretta_ssync_host.service` to the following:
    ```ini
    [Unit]
    Description = Diretta Synchro Alsa Host
    After=network-online.target
    ConditionPathExists=/usr/src/alsa_bridge-0.142.2
    [Service]
    ExecStart=/usr/src/alsa_bridge-0.142.2/ssyncAlsa_gcc13_x64_v1
    Restart=always
    Type=simple
    [Install]
    WantedBy=multi-user.target
    ```
    ```ini
    [Unit]
    Description = Diretta Synchro Alsa Host
    After=network-online.target
    ConditionPathExists=/usr/src/alsa_bridge-0.142.2
    [Service]
    ExecStart=/usr/src/alsa_bridge-0.142.2/ssyncAlsa_gcc13_x64_v1
    Restart=always
    Type=simple
    [Install]
    WantedBy=multi-user.target
    ```
    * Run the following steps to run `ssyncAlsa` on boot
    ```bash
    $ sudo ln -s /usr/src/alsa_bridge-0.142.2/diretta_ssync_host.service /etc/systemd/system/
    $ sudo systemctl enable diretta_ssync_host
    $ sudo systemctl start diretta_bridge_host
    ```
    ```bash
    $ sudo ln -s /usr/src/alsa_bridge-0.142.2/diretta_ssync_host.service /etc/systemd/system/
    $ sudo systemctl enable diretta_ssync_host
    $ sudo systemctl start diretta_bridge_host
    ```
    * To check if ALSA drivers are working correctly, make sure an audio device is connected to the target and run:
    ```bash
    $ sudo aplay -l
    ```
    ```bash
    $ sudo aplay -l
    ```
    > [!TIP]
    > If you want to edit your `settings.inf` to unlock additional performance, try the following settings:
  6. @famish99 famish99 revised this gist Oct 29, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion diretta_synchro_sync_install.md
    Original file line number Diff line number Diff line change
    @@ -21,7 +21,7 @@ $ tar --use-compress-program=unzstd -xvf DirettaSalsaHost_0_142_2.tar.zst
    $ make KERNELDIR=/lib/modules/$(uname -r)/build
    ```
    > [!NOTE]
    > If you're on a kernel older than 6.4.0, you'll likely run across 2 build issues that can be fixed by uncommenting (removing the `//`) from the lines that look like:
    > If you're on a kernel older than 6.4.0, you'll likely run across 2 build issues that can be fixed by uncommenting (removing the `//`) from the lines in `alsa_bridge.c` that look like:
    > ```c
    > #if LINUX_VERSION_CODE < KERNEL_VERSION(6,3,0)
    > vma->vm_flags |= VM_DONTEXPAND | VM_DONTDUMP;
  7. @famish99 famish99 revised this gist Oct 29, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion diretta_synchro_sync_install.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    # Diretta Synchro Sync Host Install Instructions

    ## Prerequisites
    * Ubuntu Desktop/Server 22.04 or 24.04 LTS
    * Ubuntu Desktop/Server 22.04 LTS or 24.04 LTS
    * Install the following packages using apt:
    ```bash
    $ sudo apt install alsa-utils build-essential dkms zstd
  8. @famish99 famish99 revised this gist Oct 29, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion diretta_synchro_sync_install.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Diretta Host Install Instructions
    # Diretta Synchro Sync Host Install Instructions

    ## Prerequisites
    * Ubuntu Desktop/Server 22.04 or 24.04 LTS
  9. @famish99 famish99 revised this gist Oct 29, 2024. 1 changed file with 68 additions and 43 deletions.
    111 changes: 68 additions & 43 deletions diretta_synchro_sync_install.md
    Original file line number Diff line number Diff line change
    @@ -1,23 +1,48 @@
    # Diretta Host Install Instructions

    ## Prerequisites
    * Ubuntu Desktop/Server 24.04 LTS
    * Ubuntu Desktop/Server 22.04 or 24.04 LTS
    * Install the following packages using apt:
    ```
    # sudo apt install alsa-utils build-essential dkms zstd
    ```bash
    $ sudo apt install alsa-utils build-essential dkms zstd
    ```

    ## Download and unzip Diretta Host driver package
    * Download ALSA driver version 0.142.2 from [Diretta Preview](https://www.diretta.link/preview/)
    * Unzip the drivers using the following command:
    ```
    # tar --use-compress-program=unzstd -xvf DirettaSalsaHost_0_142_2.tar.zst
    ```bash
    $ tar --use-compress-program=unzstd -xvf DirettaSalsaHost_0_142_2.tar.zst
    ```

    ## Setup DKMS
    * `cd DirettaALSAdriver/`
    * Run `touch dkms.conf` and add the following content:
    * Test for build issues with your kernel by running:
    ```bash
    $ make KERNELDIR=/lib/modules/$(uname -r)/build
    ```
    > [!NOTE]
    > If you're on a kernel older than 6.4.0, you'll likely run across 2 build issues that can be fixed by uncommenting (removing the `//`) from the lines that look like:
    > ```c
    > #if LINUX_VERSION_CODE < KERNEL_VERSION(6,3,0)
    > vma->vm_flags |= VM_DONTEXPAND | VM_DONTDUMP;
    > #else
    > vm_flags_set(vma, VM_DONTEXPAND | VM_DONTDUMP);
    > #endif
    > ```
    > and
    > ```c
    > #if LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0)
    > diretta_alsa.class = class_create(THIS_MODULE, "diretta-alsa");
    > #else
    > diretta_alsa.class = class_create("diretta-alsa");
    > #endif
    > ```
    * Clean up test build using:
    ```bash
    $ make clean
    ```
    * Run `touch dkms.conf` and add the following content:
    ```ini
    MAKE="'make' KERNELDIR=/lib/modules/${kernelver}/build"
    CLEAN="'make' clean"
    BUILT_MODULE_NAME=alsa_bridge
    @@ -30,35 +55,35 @@ AUTOINSTALL=yes
    ```
    * Copy the directory into `/usr/src` for DKMS to find it
    ```
    # sudo cp -R . /usr/src/alsa_bridge-0.142.2
    ```bash
    $ sudo cp -R . /usr/src/alsa_bridge-0.142.2
    ```
    * Run the following commands to enable DKMS for the module:
    ```
    # sudo dkms add -m alsa_bridge -v 0.142.2
    # sudo dkms build -m alsa_bridge -v 0.142.2
    # sudo dkms install -m alsa_bridge -v 0.142.2
    ```bash
    $ sudo dkms add -m alsa_bridge -v 0.142.2
    $ sudo dkms build -m alsa_bridge -v 0.142.2
    $ sudo dkms install -m alsa_bridge -v 0.142.2
    ```
    * Load the `alsa_bridge` module:
    ```
    # sudo modprobe alsa_bridge
    ```bash
    $ sudo modprobe alsa_bridge
    ```
    * Add `alsa_bridge` to `/etc/modules` so the module will load on boot
    ```
    # echo "alsa_bridge" | sudo tee -a /etc/modules
    ```bash
    $ echo "alsa_bridge" | sudo tee -a /etc/modules
    ```
    ## Diretta Host Service setup
    * Check your version of `gcc` using the following command:
    ```
    gcc --version
    ```bash
    $ gcc --version
    ```
    > [!NOTE]
    > Default `gcc` version for 24.04 is version 13, adjust accordingly for your install
    * Edit `/usr/src/alsa_bridge-0.142.2/diretta_ssync_host.service` to the following:
    ```
    ```ini
    [Unit]
    Description = Diretta Synchro Alsa Host
    After=network-online.target
    @@ -73,34 +98,34 @@ Type=simple
    WantedBy=multi-user.target
    ```
    * Run the following steps to run `ssyncAlsa` on boot
    ```
    # sudo ln -s /usr/src/alsa_bridge-0.142.2/diretta_ssync_host.service /etc/systemd/system/
    # sudo systemctl enable diretta_ssync_host
    # sudo systemctl start diretta_bridge_host
    ```bash
    $ sudo ln -s /usr/src/alsa_bridge-0.142.2/diretta_ssync_host.service /etc/systemd/system/
    $ sudo systemctl enable diretta_ssync_host
    $ sudo systemctl start diretta_bridge_host
    ```
    * To check if ALSA drivers are working correctly, make sure an audio device is connected to the target and run:
    ```
    # sudo aplay -l
    ```bash
    $ sudo aplay -l
    ```
    > [!TIP]
    > If you want to edit your `settings.inf` to unlock additional performance, try the following settings:
    ```
    Interface=
    TargetProfileLimitTime=200
    ThredMode=2
    InfoCycle=100000
    FlexCycle=disable
    CycleTime=800
    CycleMinTime=10
    Debug=disable
    periodMax=32
    periodMin=12
    periodSizeMax=38400
    periodSizeMin=960
    syncBufferCount=8
    alsaUnderrun=enable
    CpuSend=
    CpuOther=
    ```
    > ```ini
    > Interface=
    > TargetProfileLimitTime=200
    > ThredMode=2
    > InfoCycle=100000
    > FlexCycle=disable
    > CycleTime=800
    > CycleMinTime=10
    > Debug=disable
    > periodMax=32
    > periodMin=12
    > periodSizeMax=38400
    > periodSizeMin=960
    > syncBufferCount=8
    > alsaUnderrun=enable
    > CpuSend=
    > CpuOther=
    > ```
  10. @famish99 famish99 revised this gist Oct 29, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion diretta_synchro_sync_install.md
    Original file line number Diff line number Diff line change
    @@ -60,7 +60,7 @@ gcc --version
    * Edit `/usr/src/alsa_bridge-0.142.2/diretta_ssync_host.service` to the following:
    ```
    [Unit]
    Description = Diretta Alsa Host
    Description = Diretta Synchro Alsa Host
    After=network-online.target
    ConditionPathExists=/usr/src/alsa_bridge-0.142.2
  11. @famish99 famish99 revised this gist Oct 29, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion diretta_synchro_sync_install.md
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,7 @@
    * Download ALSA driver version 0.142.2 from [Diretta Preview](https://www.diretta.link/preview/)
    * Unzip the drivers using the following command:
    ```
    # tar --use-compress-program=unzstd -xvf DirettaALSAdriver_0_142_2.tar.zst
    # tar --use-compress-program=unzstd -xvf DirettaSalsaHost_0_142_2.tar.zst
    ```

    ## Setup DKMS
  12. @famish99 famish99 revised this gist Oct 28, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion diretta_synchro_sync_install.md
    Original file line number Diff line number Diff line change
    @@ -85,7 +85,7 @@ WantedBy=multi-user.target
    ```

    > [!TIP]
    > If you want to edit your `settings.inf` to unlock additional performance, try the following settings
    > If you want to edit your `settings.inf` to unlock additional performance, try the following settings:
    ```
    Interface=
    TargetProfileLimitTime=200
  13. @famish99 famish99 revised this gist Oct 28, 2024. 1 changed file with 11 additions and 6 deletions.
    17 changes: 11 additions & 6 deletions diretta_synchro_sync_install.md
    Original file line number Diff line number Diff line change
    @@ -8,15 +8,15 @@
    ```

    ## Download and unzip Diretta Host driver package
    * Download ALSA driver version 0.142.2 from [Diretta Preview](https://www.diretta.link/preview/) or using the following command:
    * Download ALSA driver version 0.142.2 from [Diretta Preview](https://www.diretta.link/preview/)
    * Unzip the drivers using the following command:
    ```
    # tar --use-compress-program=unzstd -xvf DirettaALSAdriver_0_142_2.tar.zst
    ```

    ## Setup DKMS
    * `cd DirettaALSAdriver/`
    * `touch dkms.conf` and add the following content:
    * Run `touch dkms.conf` and add the following content:
    ```
    MAKE="'make' KERNELDIR=/lib/modules/${kernelver}/build"
    CLEAN="'make' clean"
    @@ -51,6 +51,12 @@ AUTOINSTALL=yes
    ```

    ## Diretta Host Service setup
    * Check your version of `gcc` using the following command:
    ```
    gcc --version
    ```
    > [!NOTE]
    > Default `gcc` version for 24.04 is version 13, adjust accordingly for your install
    * Edit `/usr/src/alsa_bridge-0.142.2/diretta_ssync_host.service` to the following:
    ```
    [Unit]
    @@ -66,7 +72,7 @@ Type=simple
    [Install]
    WantedBy=multi-user.target
    ```
    * Run the following steps to run `direttaHost.sh` on boot
    * Run the following steps to run `ssyncAlsa` on boot
    ```
    # sudo ln -s /usr/src/alsa_bridge-0.142.2/diretta_ssync_host.service /etc/systemd/system/
    # sudo systemctl enable diretta_ssync_host
    @@ -78,9 +84,8 @@ WantedBy=multi-user.target
    # sudo aplay -l
    ```

    ### [Optional] Settings Tweaking

    If you want to edit your `settings.inf` to unlock additional performance, try the following settings
    > [!TIP]
    > If you want to edit your `settings.inf` to unlock additional performance, try the following settings
    ```
    Interface=
    TargetProfileLimitTime=200
  14. @famish99 famish99 revised this gist Oct 28, 2024. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion diretta_synchro_sync_install.md
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,6 @@

    ## Download and unzip Diretta Host driver package
    * Download ALSA driver version 0.142.2 from [Diretta Preview](https://www.diretta.link/preview/) or using the following command:

    * Unzip the drivers using the following command:
    ```
    # tar --use-compress-program=unzstd -xvf DirettaALSAdriver_0_142_2.tar.zst
  15. @famish99 famish99 revised this gist Oct 28, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion diretta_synchro_sync_install.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    # Diretta Host Install Instructions

    ## Prerequisites
    * Ubuntu Server 24.04 LTS
    * Ubuntu Desktop/Server 24.04 LTS
    * Install the following packages using apt:
    ```
    # sudo apt install alsa-utils build-essential dkms zstd
  16. @famish99 famish99 created this gist Oct 28, 2024.
    102 changes: 102 additions & 0 deletions diretta_synchro_sync_install.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,102 @@
    # Diretta Host Install Instructions

    ## Prerequisites
    * Ubuntu Server 24.04 LTS
    * Install the following packages using apt:
    ```
    # sudo apt install alsa-utils build-essential dkms zstd
    ```

    ## Download and unzip Diretta Host driver package
    * Download ALSA driver version 0.142.2 from [Diretta Preview](https://www.diretta.link/preview/) or using the following command:

    * Unzip the drivers using the following command:
    ```
    # tar --use-compress-program=unzstd -xvf DirettaALSAdriver_0_142_2.tar.zst
    ```

    ## Setup DKMS
    * `cd DirettaALSAdriver/`
    * `touch dkms.conf` and add the following content:
    ```
    MAKE="'make' KERNELDIR=/lib/modules/${kernelver}/build"
    CLEAN="'make' clean"
    BUILT_MODULE_NAME=alsa_bridge
    BUILT_MODULE_LOCATION=./
    DEST_MODULE_LOCATION=/kernel/drivers/alsa/
    PACKAGE_NAME=alsa_bridge
    PACKAGE_VERSION=0.142.2
    REMAKE_INITRD=yes
    AUTOINSTALL=yes
    ```

    * Copy the directory into `/usr/src` for DKMS to find it
    ```
    # sudo cp -R . /usr/src/alsa_bridge-0.142.2
    ```

    * Run the following commands to enable DKMS for the module:
    ```
    # sudo dkms add -m alsa_bridge -v 0.142.2
    # sudo dkms build -m alsa_bridge -v 0.142.2
    # sudo dkms install -m alsa_bridge -v 0.142.2
    ```

    * Load the `alsa_bridge` module:
    ```
    # sudo modprobe alsa_bridge
    ```
    * Add `alsa_bridge` to `/etc/modules` so the module will load on boot
    ```
    # echo "alsa_bridge" | sudo tee -a /etc/modules
    ```

    ## Diretta Host Service setup
    * Edit `/usr/src/alsa_bridge-0.142.2/diretta_ssync_host.service` to the following:
    ```
    [Unit]
    Description = Diretta Alsa Host
    After=network-online.target
    ConditionPathExists=/usr/src/alsa_bridge-0.142.2
    [Service]
    ExecStart=/usr/src/alsa_bridge-0.142.2/ssyncAlsa_gcc13_x64_v1
    Restart=always
    Type=simple
    [Install]
    WantedBy=multi-user.target
    ```
    * Run the following steps to run `direttaHost.sh` on boot
    ```
    # sudo ln -s /usr/src/alsa_bridge-0.142.2/diretta_ssync_host.service /etc/systemd/system/
    # sudo systemctl enable diretta_ssync_host
    # sudo systemctl start diretta_bridge_host
    ```

    * To check if ALSA drivers are working correctly, make sure an audio device is connected to the target and run:
    ```
    # sudo aplay -l
    ```

    ### [Optional] Settings Tweaking

    If you want to edit your `settings.inf` to unlock additional performance, try the following settings
    ```
    Interface=
    TargetProfileLimitTime=200
    ThredMode=2
    InfoCycle=100000
    FlexCycle=disable
    CycleTime=800
    CycleMinTime=10
    Debug=disable
    periodMax=32
    periodMin=12
    periodSizeMax=38400
    periodSizeMin=960
    syncBufferCount=8
    alsaUnderrun=enable
    CpuSend=
    CpuOther=
    ```