Skip to content

Audio Porting

Sound Card Device Configuration

The corresponding sound card device is configured in the following file:

text
layers/meta-qcom-hwe/recipes-kernel/linux/linux-qcom-custom/kernel-source/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
dts
sound: sound {
    compatible = "qcom,qcm6490-idp-sndcard";
    model = "QCM6490-IDP";
};

PipeWire Audio

Audio is managed with PipeWire.

Recording

bash
wpctl status
wpctl set-default <sink/source node ID>
pw-record /tmp/record.wav -v

Set the recording volume:

bash
wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 0.8

Playback

bash
wpctl status
wpctl set-default <sink/source node ID>
pw-play /opt/test.wav -v

Set the playback volume:

bash
wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.8