Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions recipes-multimedia/audio/wireplumber_%.bbappend
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
do_install:append:qcom () {
install -v -m 0644 \
${S}/src/config/wireplumber.conf.d.examples/bluetooth.conf \
${D}${datadir}/wireplumber/wireplumber.conf.d/
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems this is already getting installed in /usr/share/doc/wireplumber/examples and the contents are commented out. So, what does this achieve?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This bluetooth.conf file is not seen on target and this we have added for user to choose bluetooth configurations for connection and to set sampling rate etc.,

user has to uncomment and use the preferred settings.
one example: this is required for switch between native and ofono for hfp client usecase
bluez5.hfphsp-backend = "native"

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This goes in wireplumber-doc which I think is correct since this is essentially an example and not doing anything.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is required, without this we can't test ofono usecase and hfp client will be considered as depored.
and this needs to be in /usr/share/wireplumber/wireplumber.conf.d/ folder to pick the configuration

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't look like there is anything defined in that file, most of the lines are commented out. Please either fix it via the patch or provide an actual config file in the repo and then install it to the target. In the latter case, I'd recomment installing it via a separate package instead of hijacking the wireplumber recipe.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to enable a runtime-based configuration, then have the fragment you want in a separated package, which the user can then install based on the desired default behavior.

}

# Enable wireplumber as a system-wide service
SYSTEMD_SERVICE:${PN} = "wireplumber.service"
SYSTEMD_AUTO_ENABLE:${PN} = "enable"