1 SUMMARY = "AGL configuration file for wireplumber"
2 HOMEPAGE = "https://gitlab.freedesktop.org/gkiagia/wireplumber"
3 BUGTRACKER = "https://jira.automotivelinux.org"
4 AUTHOR = "George Kiagiadakis <george.kiagiadakis@collabora.com>"
8 LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
10 SRC_URI = "file://wireplumber.conf.in"
12 PACKAGE_ARCH = "${MACHINE_ARCH}"
14 do_configure[noexec] = "1"
15 do_compile[noexec] = "1"
18 # For device names, any unique substring of the "endpoint" name is valid.
19 # To list all endpoints:
20 # export XDG_RUNTIME_DIR=/run/user/1001
22 # > connect pipewire-0
24 # ... and look for objects of type "PipeWire:Interface:Endpoint/0"
27 # id 269, parent 40, type PipeWire:Interface:Endpoint/0
28 # media.name = "USB Audio on WD15 Dock (hw:1,0 / node 5)"
29 # media.class = "Audio/Sink"
30 # id 270, parent 40, type PipeWire:Interface:Endpoint/0
31 # media.name = "USB Audio on WD15 Dock (hw:1,0 / node 7)"
32 # media.class = "Audio/Source"
34 # Audio/Sink endpoints are valid for playback
35 # Audio/Source endpoints are valid for capture
37 # Wireplumber will first filter endpoints based on the media.class, depending
38 # on whether the client is doing playback or capture and then it will look
39 # for a sub-string match in the media.name
41 DEV_PLAYBACK = "hw:0,0"
42 DEV_CAPTURE = "hw:0,0"
44 DEV_PLAYBACK_dra7xx-evm = "DRA7xx-EVM"
45 DEV_CAPTURE_dra7xx-evm = "DRA7xx-EVM"
47 DEV_PLAYBACK_m3ulcb = "ak4613"
48 DEV_CAPTURE_m3ulcb = "ak4613"
50 DEV_PLAYBACK_h3ulcb = "ak4613"
51 DEV_CAPTURE_h3ulcb = "ak4613"
53 DEV_PLAYBACK_raspberrypi3 = "bcm2835 ALSA on bcm2835 ALSA"
54 DEV_CAPTURE_raspberrypi3 = "hw:0,0"
57 sed -e "s/PLAYBACK/${DEV_PLAYBACK}/" -e "s/CAPTURE/${DEV_CAPTURE}/" ${WORKDIR}/wireplumber.conf.in > ${WORKDIR}/wireplumber.conf
58 install -d ${D}/${sysconfdir}/wireplumber/
59 install -m 644 ${WORKDIR}/wireplumber.conf ${D}/${sysconfdir}/wireplumber/wireplumber.conf
63 ${sysconfdir}/wireplumber/* \
66 ${sysconfdir}/wireplumber/* \
69 RPROVIDES_${PN} += "virtual/wireplumber-config"