Calls always play through speakerphone, not internal speaker

This is essentially the same issue as was reported in 2020:

However, I am seeing this ever since clean installing to “R” on my fairphone 3+.
I am currently on 1.2, specifically: e_FP3-userdebug 11 RQ3A.211001.001 eng.root.20220727.223629 dev-keys