Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Speaker" button in sphone does not enable sound through the speaker in PP #637

Open
rafael2k opened this issue Sep 19, 2022 · 9 comments
Open

Comments

@rafael2k
Copy link

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.

@buzztiaan
Copy link

buzztiaan commented Sep 19, 2022

i can confirm same used to happen on d4 , my current -devel running d4 does switch back and forth

@IMbackK
Copy link
Collaborator

IMbackK commented Sep 20, 2022

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

@buzztiaan
Copy link

buzztiaan commented Sep 20, 2022

i'll try (to find where its happening, what is happening and what should be happening) soonish, need to update the pp here anyway :)

@buzztiaan
Copy link

@rafael2k could do it too if they are faster ;)

@rafael2k
Copy link
Author

Will do it. Could you remind me how to run sphone in the command line with loud debug output?

@IMbackK
Copy link
Collaborator

IMbackK commented Sep 22, 2022

sphone -v -v
(after killing the other sphone process)

@IMbackK
Copy link
Collaborator

IMbackK commented Sep 22, 2022

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

@rafael2k
Copy link
Author

rafael2k commented Sep 26, 2022

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

@buzztiaan
Copy link

buzztiaan commented Sep 26, 2022

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 maemo-leste/sphone#2 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants