Bug 1907300 - `pactl set-card-proifile` doesn't work
Summary: `pactl set-card-proifile` doesn't work
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: pipewire
Version: 33
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Wim Taymans
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1906086
TreeView+ depends on / blocked
 
Reported: 2020-12-14 07:55 UTC by ojab
Modified: 2021-02-20 11:19 UTC (History)
2 users (show)

Fixed In Version: pipewire-0.3.20-1.fc33
Clone Of:
Environment:
Last Closed: 2021-02-20 11:19:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
`pactl list cards` (2.88 KB, text/plain)
2020-12-14 07:55 UTC, ojab
no flags Details
pw-dump output (58.21 KB, text/plain)
2021-02-04 10:28 UTC, ojab
no flags Details

Description ojab 2020-12-14 07:55:05 UTC
Created attachment 1738871 [details]
`pactl list cards`

Created attachment 1738871 [details]
`pactl list cards`

Description of problem:

`pactl set-card-profile` does nothing after replacing pulseaudio with pipewire-pulseaudio.

Version-Release number of selected component (if applicable):

```
Installed Packages
Name         : pipewire-pulseaudio
Version      : 0.3.17
Release      : 3.fc33
Architecture : x86_64
Size         : 990
Source       : pipewire-0.3.17-3.fc33.src.rpm
Repository   : @System
From repo    : updates-testing
Summary      : PipeWire PulseAudio implementation
URL          : https://pipewire.org/
License      : MIT
Description  : This package provides a PulseAudio implementation based on PipeWire
```


How reproducible: Always


Steps to Reproduce:
1. `pactl set-card-profile alsa_card.platform-skl_n88l25_s4567 Headphone-Profile` (it should switch output to headphones)

Actual results:
HiFi profile (i. e. speakers) is still used

Expected results:
Sound should play via headphones

Additional info:
HP Chromebook 13G1 (chell) with outputs controlled via alsaucm profiles.

Comment 1 Wim Taymans 2021-01-22 11:07:06 UTC
Does it work with recent versions?

Comment 2 Fedora Update System 2021-01-22 12:50:08 UTC
FEDORA-2021-f279349372 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-f279349372

Comment 3 ojab 2021-01-22 16:22:56 UTC
Still reproducible
```
$ rpm -qa | grep pipewire
pipewire0.2-libs-0.2.7-4.fc33.x86_64
pipewire-libs-0.3.20-1.fc33.x86_64
pipewire-0.3.20-1.fc33.x86_64
pipewire-pulseaudio-0.3.20-1.fc33.x86_64
pipewire-utils-0.3.20-1.fc33.x86_64
pipewire-alsa-0.3.20-1.fc33.x86_64
pipewire-gstreamer-0.3.20-1.fc33.x86_64
```

Comment 4 Fedora Update System 2021-01-23 02:09:36 UTC
FEDORA-2021-f279349372 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-f279349372`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-f279349372

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2021-01-24 01:25:51 UTC
FEDORA-2021-f279349372 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Wim Taymans 2021-02-04 10:19:05 UTC
Can you attach the log file create when running:

pw-dump >log

Comment 7 ojab 2021-02-04 10:28:02 UTC
Created attachment 1755018 [details]
pw-dump output

`pw-dump` with pulseaudio running, hope that's ok.

Comment 8 ojab 2021-02-05 22:18:24 UTC
And I finally found time to investigate how to use `alsaucm`, `alsaucm -c sklnau8825adi set _verb Headphone-Profile` doesn't work either. The card is stuck with default/HiFi profile.

Comment 9 ojab 2021-02-05 22:44:08 UTC
Okay, I'm taking it back. `alcaucm` makes profile stuck on HiFi even with pulseaudio installed, so after single `alsaucm -c sklnau8825adi set _verb Headphone-Profile` I can't make `pactl set-card-proifile` work until reboot.
But after reboot `pactl set-card-profile alsa_card.platform-skl_n88l25_s4567 Headphone-Profile` & `pactl set-card-profile alsa_card.platform-skl_n88l25_s4567 HiFi` switch profiles as usual.

I have no idea how audio routing works this days and who pretends to be whom (it's _alsa_ucm, right?), but apparently `pactl` does something different from `alsaucm`. Hope that helps.

Comment 10 ojab 2021-02-20 11:19:28 UTC
Works fine with
```
Installed Packages
Name         : pipewire-pulseaudio
Version      : 0.3.22
Release      : 1.fc33
Architecture : x86_64
Size         : 17 k
Source       : pipewire-0.3.22-1.fc33.src.rpm
Repository   : @System
From repo    : updates-testing
Summary      : PipeWire PulseAudio implementation
URL          : https://pipewire.org/
License      : MIT
Description  : This package provides a PulseAudio implementation based on PipeWire
```


Note You need to log in before you can comment on or make changes to this bug.