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

FM radio only works with a special application #158

Open
JamiKettunen opened this issue Jan 14, 2023 · 3 comments
Open

FM radio only works with a special application #158

JamiKettunen opened this issue Jan 14, 2023 · 3 comments
Labels
bug Something isn't working mimameid This issue was observed on the Volla Phone 22 (2022) yggdrasil This issue was observed on the Volla Phone (2020) yggdrasilx This issue was observed on the Volla Phone X (2021)

Comments

@JamiKettunen
Copy link
Collaborator

Is this a new report?

Yes

Device model

Volla Phone 22 (2022)

OS version

20.04 (r78)

Describe the bug

FM radio apps such as https://open-store.io/app/it.mardy.fmradio (using QML Radio element anyway) don't seem to work.

Steps to reproduce the bug

  1. Install FM Radio by Alberto Mardegan
  2. Insert headphones through jack
  3. Open the app
  4. See FM radio not available

Expected behaviour

The app allows me to tune into specific FM radio frequencies to listen to.

Additional context

After further debugging (adding some prints statements) the following is seen on journalctl --user -f even with headphones connected through headphone jack:

Jan 14 18:07:04 ubuntu-phablet aa-exec[4614]: defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.radio"
Jan 14 18:07:04 ubuntu-phablet aa-exec[4614]: qml: Active focus item: NoRadioPage_QMLTYPE_17(0x1c274830)
Jan 14 18:07:04 ubuntu-phablet aa-exec[4614]: qml: Active focus control: NoRadioPage_QMLTYPE_17(0x1c274830)
Jan 14 18:07:04 ubuntu-phablet aa-exec[4614]: qml: Component.onCompleted: radio.availability 1 (Available 0, Busy 2, Unavailable 1, ResourceMissing 3)
Jan 14 18:07:04 ubuntu-phablet aa-exec[4614]: qml: Component.onCompleted: radio.antennaConnected false

It appears QMediaServiceProvider::defaultServiceProvider()->requestService(Q_MEDIASERVICE_RADIO)) (Q_MEDIASERVICE_RADIO defined here) fails as per the first line in that log, which results in the rest of the code also failing and doing nothing useful.

@JamiKettunen JamiKettunen added bug Something isn't working yggdrasil This issue was observed on the Volla Phone (2020) yggdrasilx This issue was observed on the Volla Phone X (2021) mimameid This issue was observed on the Volla Phone 22 (2022) labels Jan 14, 2023
@JamiKettunen JamiKettunen changed the title FM radio FM radio apps don't seem to work Jan 14, 2023
@JamiKettunen
Copy link
Collaborator Author

Hm ok this is interesting, I just fixed up https://github.com/Venji10/fmradio-volla locally and now have working FM radio with Volla Phone (yggdrasil) on 20.04, wonder what the best direction to go from here is

@JamiKettunen JamiKettunen changed the title FM radio apps don't seem to work FM radio only works with a special application Jan 14, 2023
@JamiKettunen
Copy link
Collaborator Author

Pushed my 20.04 fixes on https://github.com/JamiKettunen/fmradio-volla/tree/focal for the time being at least so those aren't lost if someone wants to use the app ^^

@JamiKettunen
Copy link
Collaborator Author

Seems the typical FM radio apps on Ubuntu Touch use fm-radio-service with the main control logic being in: https://gitlab.com/ubports/development/core/fm-radio-service/-/blob/main/src/service/mediatek/radio_control.cpp

Seems it already supports some MediaTek devices but clearly it's missing something for the Volla Phones to take advantage of it.. needs investigation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mimameid This issue was observed on the Volla Phone 22 (2022) yggdrasil This issue was observed on the Volla Phone (2020) yggdrasilx This issue was observed on the Volla Phone X (2021)
Projects
None yet
Development

No branches or pull requests

1 participant