gnome-control-center/panels/sound
Hui Wang 35e15771f0 sound: update the profile list after getting the signal from gvc
In the ubuntu 20.04, we found a regression on HDMI audio. We plug a
HDMI/DP monitor, the output device is the speaker in the output device
combo box, then we select the HDMI from the combo box, the output
device is switched to HDMI audio successfully, but the configuration
box is empty. This will not happen in the ubuntu 18.04, the profile
will show hdmi-stereo in this situation. So I think this is a
regression.

When problem happens, I could see the errors from log:
Gvc:    DEBUG: Matching profile for 'output:analog-stereo' is '(null)'
Gvc:    DEBUG: Matching profile for 'output:analog-stereo' is '(null)'
Gvc:    DEBUG: Matching profile for 'output:analog-stereo' is '(null)'

Through debugging, I found the cc_profile_combo_box_set_device() is
called too early. In the ubuntu 18.04, this function is called after
pulseaudio changes the active_profile, but in the ubuntu 20.04, it is
called ahead of pulseaudio changes the active_profile.

To fix it, add a signal callback function, after pulseaudio changes
the active_profile, this callback function will be called, then call
cc_profile_combo_box_set_device().

Signed-off-by: Hui Wang <hui.wang@canonical.com>
2020-09-25 13:42:39 +12:00
..
icons sound: Add missing subwoofer icons 2020-01-07 20:49:12 +00:00
sounds sound: Rename new sound panel to replace old one 2019-02-07 09:31:18 +13:00
cc-alert-chooser.c sound: Rename new sound panel to replace old one 2019-02-07 09:31:18 +13:00
cc-alert-chooser.h sound: Rename new sound panel to replace old one 2019-02-07 09:31:18 +13:00
cc-alert-chooser.ui sound: Rename new sound panel to replace old one 2019-02-07 09:31:18 +13:00
cc-balance-slider.c sound: Rename new sound panel to replace old one 2019-02-07 09:31:18 +13:00
cc-balance-slider.h sound: Rename new sound panel to replace old one 2019-02-07 09:31:18 +13:00
cc-balance-slider.ui sound: Rename new sound panel to replace old one 2019-02-07 09:31:18 +13:00
cc-device-combo-box.c sound: Clean up labels of devices without origin 2019-05-22 17:19:26 +02:00
cc-device-combo-box.h sound: Rename new sound panel to replace old one 2019-02-07 09:31:18 +13:00
cc-device-combo-box.ui sound: Make the panel adaptive 2019-02-18 15:12:53 +01:00
cc-fade-slider.c sound: Rename new sound panel to replace old one 2019-02-07 09:31:18 +13:00
cc-fade-slider.h sound: Rename new sound panel to replace old one 2019-02-07 09:31:18 +13:00
cc-fade-slider.ui sound: Rename new sound panel to replace old one 2019-02-07 09:31:18 +13:00
cc-level-bar.c sound: Remove unused variable 2019-06-16 01:01:36 +00:00
cc-level-bar.h sounds: Use correct mute icon in the input section 2019-06-16 01:01:36 +00:00
cc-output-test-dialog.c sound: Rename new sound panel to replace old one 2019-02-07 09:31:18 +13:00
cc-output-test-dialog.h sound: Rename new sound panel to replace old one 2019-02-07 09:31:18 +13:00
cc-output-test-dialog.ui sound: Use "avatar-default-symbolic" in sound test dialog 2019-09-17 10:33:38 +02:00
cc-profile-combo-box.c sound: Stop non-interactive profile changes from triggering changed events 2020-06-17 19:29:57 +00:00
cc-profile-combo-box.h sound: Rename new sound panel to replace old one 2019-02-07 09:31:18 +13:00
cc-profile-combo-box.ui sound: Rename new sound panel to replace old one 2019-02-07 09:31:18 +13:00
cc-sound-button.c sound: Rename new sound panel to replace old one 2019-02-07 09:31:18 +13:00
cc-sound-button.h sound: Rename new sound panel to replace old one 2019-02-07 09:31:18 +13:00
cc-sound-button.ui sound: Remove icon from sound theme buttons 2019-06-16 01:01:36 +00:00
cc-sound-enums.h sounds: Use correct mute icon in the input section 2019-06-16 01:01:36 +00:00
cc-sound-panel.c sound: update the profile list after getting the signal from gvc 2020-09-25 13:42:39 +12:00
cc-sound-panel.h sound: Rename new sound panel to replace old one 2019-02-07 09:31:18 +13:00
cc-sound-panel.ui Replace HdyColumn by HdyClamp 2020-07-20 08:04:28 +02:00
cc-speaker-test-button.c sound: Rename new sound panel to replace old one 2019-02-07 09:31:18 +13:00
cc-speaker-test-button.h sound: Rename new sound panel to replace old one 2019-02-07 09:31:18 +13:00
cc-speaker-test-button.ui sound: Rename new sound panel to replace old one 2019-02-07 09:31:18 +13:00
cc-stream-list-box.c sound: Pass a GvcMixerControl to the stream volume sliders 2019-09-09 15:23:32 +00:00
cc-stream-list-box.h sounds: Use correct mute icon in the input section 2019-06-16 01:01:36 +00:00
cc-stream-row.c sound: Prefer symbolic icons for audio streams 2020-02-13 21:12:37 +00:00
cc-stream-row.h sound: Pass a GvcMixerControl to the stream volume sliders 2019-09-09 15:23:32 +00:00
cc-stream-row.ui sound: Add shadow to application icons 2019-03-13 13:46:53 +01:00
cc-subwoofer-slider.c sound: Fix volume sliders regression 2019-08-25 09:51:31 +00:00
cc-subwoofer-slider.h sound: Fix volume sliders regression 2019-08-25 09:51:31 +00:00
cc-subwoofer-slider.ui sound: Rename new sound panel to replace old one 2019-02-07 09:31:18 +13:00
cc-volume-slider.c sound: Set audio icon based on volume 2019-12-18 12:00:02 +01:00
cc-volume-slider.h sound: Fix volume sliders regression 2019-08-25 09:51:31 +00:00
cc-volume-slider.ui sounds: Use correct mute icon in the input section 2019-06-16 01:01:36 +00:00
gnome-sound-panel.desktop.in.in panel-list: Reorganize Devices section 2020-01-06 15:15:30 +00:00
gvc-mixer-stream-private.h sound: Replace ifdefs with #pragma once 2019-11-27 21:56:10 +00:00
meson.build sound: Rename new sound panel to replace old one 2019-02-07 09:31:18 +13:00
sound.gresource.xml sound: Add missing subwoofer icons 2020-01-07 20:49:12 +00:00