# Sync and compile audio components

Source: [https://docs.qualcomm.com/doc/80-70014-16/topic/compile_audio_components.html](https://docs.qualcomm.com/doc/80-70014-16/topic/compile_audio_components.html)

The audio software involves the user space and kernel space modules, which are
        available in the Linux-enabled audio software directory.

The audio user space and kernel module source trees are extracted to the
                &lt;workspace&gt;/build-qcom-wayland/workspace/sources path.
            Instructions for using [devtool Linux utility](https://docs.qualcomm.com/bundle/publicresource/topics/80-70014-27/user_customizations.html#use_of_devtool) to fetch and extract the
            audio module source code and build the user space and kernel mode modules are described
            below.

**Note:** Go to the workspace (`<workspace>/build-qcom-wayland$`) to
            access the source code trees using devtool.

## PulseAudio

1. Run the following command to extract the source
                            tree:

        devtool modify pulseaudioCopy to clipboard

    The PulseAudio
                            source tree is extracted to
                                build-qcom-wayland/workspace/sources/pulseaudio/opensource/pulseaudio.
2. Modify the following line in the pulseaudio\_15.0.bb
                        file located at
                            layers/meta-qcom-hwe/recipes-multimedia/pulseaudio:

        - install -m 0644 ${WORKDIR}/build/config.h ${D}${includedir}/pulsecore
        + #install -m 0644 ${WORKDIR}/build/config.h ${D}${includedir}/pulsecoreCopy to clipboard
3. Run the following command to build the source
                        tree:

        devtool build pulseaudioCopy to clipboard

## PAL

1. Run the following command to extract the source
                            tree:

        devtool modify palCopy to clipboard

    The pal source tree is
                            extracted to
                                build-qcom-wayland/workspace/sources/pal/opensource/arpal-lx.
2. Run the following command to build the source
                        tree:

        devtool build palCopy to clipboard

## TinyALSA

1. Run the following command to extract the source
                            tree:

        devtool modify tinyalsaCopy to clipboard

    The TinyALSA
                            source tree is extracted to
                                build-qcom-wayland/workspace/sources/tinyalsa/opensource/tinyalsa.
2. Run the following command to build the source
                        tree:

        devtool build tinyalsaCopy to clipboard

## Kernel

1. Run the following command to extract the source
                            tree:

        devtool modify linux-kernel-qcomCopy to clipboard

    The
                                linux-kernel-qcom source tree is extracted to
                                build-qcom-wayland/workspace/sources/linux-kernel-qcom.
2. Run the following command to build the source
                        tree:

        devtool build linux-kernel-qcomCopy to clipboard

**Parent Topic:** Customize

Last Published: Jul 15, 2024

Previous Topic
 
Source code of audio modules Next Topic

PAL configuration