"Speaker" button in sphone does not enable sound through the speaker in PP
When I click the "Speaker" button in sphone, it does not change the audio to the loud speakers, in the PinePhone. Audio keeps coming audio from the handset "ear" speaker.
i can confirm same used to happen on d4 , my current -devel running d4 does switch back and forth
the button wasend implemented at all untill very recently, thats why it dident work on d4, why it dosent work on pp is a different story that someone whith a pp needs to investigate
i'll try (to find where its happening, what is happening and what should be happening) soonish, need to update the pp here anyway :)
@rafael2k could do it too if they are faster ;)
Will do it. Could you remind me how to run sphone in the command line with loud debug output?
sphone -v -v (after killing the other sphone process)
https://github.com/maemo-leste/sphone/blob/63c1facd2274efc7260a84aa32eaac76c1a013db/src/modules/route-pulseaudio.c#L179
is the code in question that dose the switching, so this is probubly failing for some reason
Some debugging: (...) sphone: sphone-mce: call_mode_trigger: ringing sphone: ui-calls-manager-gtk: gui_calls_update_global_status: 1, 2 sphone: playback-gstreamer: /usr/share/sounds/Nokia_tune.aac is not a valid file sphone: ui-calls-manager-gtk: gui_calls_call_status_callback: Update call +XXXXXXXXX Incoming sphone: ui-calls-manager-gtk: gui_calls_utils_update_call: try update call +XXXXXXXXX Incoming sphone: ui-calls-manager-gtk: gui_calls_utils_update_call: found call 0x55bf4fa870 sphone: ui-calls-manager-gtk: gui_calls_select_callback sphone: ui-calls-manager-gtk: gui_calls_select_callback sphone: ui-calls-manager-gtk: gui_calls_update_global_status: 1, 1 sphone: route-pulseaudio: sucess: set ucm profile sphone: route-pulseaudio: Seting route on alsa_output.0.HiFi__hw_PinePhone_0__sink sphone: route-pulseaudio: sucess: Set sink to Speaker sphone: comm-ofono: call_properties_cb: /quectelqmi_0/voicecall01 sphone: manager: check_needed_state: call +79096274557 state Active sphone: manager: check_needed_state: incall true, incall_no_route false sphone: sphone-mce: call_mode_trigger: active sphone: ui-calls-manager-gtk: gui_calls_update_global_status: 2, 1 sphone: sphone-conf: Could not get config key ExternalExec/CallAwnserd sphone: ui-calls-manager-gtk: gui_calls_call_status_callback: Update call +79096274557 Active sphone: ui-calls-manager-gtk: gui_calls_utils_update_call: try update call +79096274557 Active sphone: ui-calls-manager-gtk: gui_calls_utils_update_call: found call 0x55bf4fa870 sphone: ui-calls-manager-gtk: gui_calls_select_callback sphone: ui-calls-manager-gtk: gui_calls_select_callback sphone: ui-calls-manager-gtk: gui_calls_update_global_status: 2, 2 sphone: comm-ofono: call_properties_cb: /quectelqmi_0/voicecall01 sphone: route-pulseaudio: sucess: set ucm profile sphone: route-pulseaudio: Seting route on alsa_output.1.stereo-fallback sphone: route-pulseaudio: failure: Set sink to Earpiece No such entity sphone: ui-calls-manager-gtk: gui_calls_update_global_status: 2, 2 sphone: ui-calls-manager-gtk: gui_calls_update_global_status: 2, 1 sphone: route-pulseaudio: Seting route on alsa_output.1.stereo-fallback sphone: route-pulseaudio: failure: Set sink to Speaker No such entity sphone: ui-calls-manager-gtk: gui_calls_update_global_status: 2, 1 sphone: ui-calls-manager-gtk: gui_calls_update_global_status: 2, 2 sphone: route-pulseaudio: Seting route on alsa_output.1.stereo-fallback sphone: route-pulseaudio: failure: Set sink to Earpiece No such entity (...)
pactl info Server String: /var/run/pulse/native Library Protocol Version: 32 Server Protocol Version: 32 Is Local: yes Client Index: 14 Tile Size: 65472 User Name: pulse Host Name: devuan-pinephone Server Name: pulseaudio Server Version: 12.2 Default Sample Specification: s16le 2ch 48000Hz Default Channel Map: front-left,front-right Default Sink: alsa_output.1.stereo-fallback Default Source: alsa_input.0.Voice_Call__hw_PinePhone_0__source Cookie: 6784:eee2
In pavucontrol, the available ports are: Headset Internal speaker Internal Earpiece
i wonder why it switched from alsa_output.0.HiFi__hw_PinePhone_0__sink to alsa_output.1.stereo-fallback
( some of the messages in output made me do this https://github.com/maemo-leste/sphone/pull/2 )