[Xperia Z3 Original Android Development] Mr.Tom_Tom:
Right now I am compiling a build without that patch. If everything works well, I'll compile it again with the patch being applied.

Great to hear that LineageOS 17 for MSM8974 will become official one day!:D

I just tested your lineage-16.0-20191031-UNOFFICIAL-z3.zip build and it is not working for me.:( Sorry. Here's what happens on my devices:

When I start the app without headset connected, it shows the default screen with the remainder to connect a headset. When I then connect a headset, the screen does not change.

When I start the app with headset connected, I can use the forward/back buttons, but no frequency gets locked.

When I start a frequency scan this seems to take forever.

Also, when I disconnect the headset again the app stays at the main frequency screen (although the default behavior should be to go back to the "connect headset" screen I guess)

Some logcat excerpts on what's happening:

a) Headset connected, looks fine

10-31 02:50:05.166 2097 2097 V MediaRouter: Audio routes updated: AudioRoutesInfo{ type=HEADSET }, a2dp=false

10-31 02:50:05.166 5597 5597 D FmService: onReceive, action = android.intent.action.HEADSET_PLUG / command = null

b) Endless scanning

10-31 02:50:08.280 5597 5622 I V4l2_handler_Fm: final rate 304 > 500

10-31 02:50:08.380 5597 5622 I V4l2_handler_Fm: final rate 296 > 500

10-31 02:50:08.491 5597 5622 I V4l2_handler_Fm: final rate 343 > 500

10-31 02:50:08.601 5597 5622 I V4l2_handler_Fm: final rate 296 > 500

10-31 02:50:08.703 5597 5622 I V4l2_handler_Fm: final rate 288 > 500

10-31 02:50:08.813 5597 5622 I V4l2_handler_Fm: final rate 272 > 500

10-31 02:50:08.916 5597 5622 I V4l2_handler_Fm: final rate 280 > 500

10-31 02:50:09.016 5597 5622 I V4l2_handler_Fm: final rate 265 > 500

10-31 02:50:09.118 5597 5622 I V4l2_handler_Fm: final rate 421 > 500

10-31 02:50:09.220 5597 5622 I V4l2_handler_Fm: final rate 475 > 500

10-31 02:50:09.321 5597 5622 I V4l2_handler_Fm: final rate 428 > 500

10-31 02:50:09.468 5597 5622 I V4l2_handler_Fm: final rate 272 > 500

10-31 02:50:09.582 5597 5622 I V4l2_handler_Fm: final rate 257 > 500

10-31 02:50:09.696 5597 5622 I V4l2_handler_Fm: final rate 272 > 500

10-31 02:50:09.806 5597 5622 I chatty : uid=1000(system) FmRadioServiceT identical 1 line

10-31 02:50:09.908 5597 5622 I V4l2_handler_Fm: final rate 272 > 500

10-31 02:50:10.017 5597 5622 I V4l2_handler_Fm: final rate 280 > 500

10-31 02:50:10.118 5597 5622 I chatty : uid=1000(system) FmRadioServiceT identical 1 line

10-31 02:50:10.274 5597 5622 I V4l2_handler_Fm: final rate 280 > 500

10-31 02:50:10.373 5597 5622 I V4l2_handler_Fm: final rate 350 > 500

10-31 02:50:10.474 5597 5622 I V4l2_handler_Fm: final rate 405 > 500

10-31 02:50:10.575 5597 5622 I V4l2_handler_Fm: final rate 366 > 500

10-31 02:50:10.686 5597 5622 I V4l2_handler_Fm: final rate 288 > 500

10-31 02:50:10.798 5597 5622 I V4l2_handler_Fm: final rate 288 > 500

10-31 02:50:10.954 5597 5622 I V4l2_handler_Fm: final rate 280 > 500

10-31 02:50:11.056 5597 5622 I V4l2_handler_Fm: final rate 296 > 500

10-31 02:50:11.157 5597 5622 I V4l2_handler_Fm: final rate 327 > 500

10-31 02:50:11.257 5597 5622 I V4l2_handler_Fm: final rate 304 > 500

10-31 02:50:11.366 5597 5622 I V4l2_handler_Fm: final rate 311 > 500

10-31 02:50:11.476 5597 5622 I V4l2_handler_Fm: final rate 358 > 500

10-31 02:50:11.633 5597 5622 I V4l2_handler_Fm: final rate 311 > 500

...

...

...

These V4l2_handler_Fm messages keep appearing until I force stop the app manually.

BTW I tested FMRadio on two different Z3c devices with your latest LineageOS 17 builds and it is also not working, but the behavior is different (see my posts in these threads).

[MENTION=5507468]rethinkk[/MENTION] what build did you use exactly to test the FMRadio app?

Update:

OK with manual frequency selection I got FMRadio working after a while at least .