yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Alpha] modpunk:
Blubboror told me that carkit and BT is working for him with beta3. I guess he has semco3rd like me. You have a different chipset and it has a different bluetooth firmware. The libbt-vendor.so should load the wisol flavour of the firmware. Maybe we need to check if it does it correctly. I would send you a libbt-vendor.so with debug output next week.

Do you know which your orginal stock rom was? Was a country specifc stock ROM flashed?
[Samsung Galaxy Alpha] nuno.f.ferreira:
Thank you very much for your fantastic effort. I'll be travelling out of the country this next week but I'll do my best to try to give you feedback asap.

Sorry, I have no idea about the original ROM that came with the smartphone. The stock ROMs that were flashed were already mentioned in this thread. No CSC IIRC.

PS - This might already be fixed. Google for "hardware/broadcom/libbt/ 6e7b90c libbt-vendor: Fix wisol string comparison"
[Samsung Galaxy Alpha] modpunk:
I wrote the code for wisol support and we had a small bug cause I wanted to add semco3rd too but there is no specific firmware for that flavour.
[Samsung Galaxy Alpha] Blubberor:
I don't knw of this is helping. I activated Viper4android manually for every output but did not try without before...

can see network and battery on the car display as well as BT music streaming.

Edit:

Dont know if this should work or not but on the VW beetle forward/reverse jumping within the track does not work but works fine via the phone (using player pro for playback). Really enjoying bt streaming.

Best and thanks,

Blubberor
[Samsung Galaxy Alpha] modpunk:
Could you push this file to /system/vendor/lib, reboot and activate bluetooth after the reboot?

https://xor.cryptomilk.org/android/bt_sco_test/libbt-vendor.so
[Samsung Galaxy Alpha] nuno.f.ferreira:
Here's the report after replacing the file you requested.

Was able to semi-pair paired from smartphone perspective unifinished pairing from car perspective - which I suspect is related with audio routing over bluetooth. Did this without crashing bluetooth.

Afterwards I tried to re-connect since it was paired from the smartphone view and bluetooth crashed.

Log attached.

Note: I will not be able to perform new tests related to bt car kit until the weekend.
[Samsung Galaxy Alpha] modpunk:
Pairing is not needed, just reboot + turn bluetooth on:

I/bt_hwcfg( 4714): bt vendor lib: set UART baud 921600
D/bt_hwcfg( 4714): Chipset BCM4350C0
D/bt_hwcfg( 4714): Target name = [BCM4350C0]
D/bt_hwcfg( 4714): Target name = [BCM4350]
E/bt_hwcfg( 4714): vendor lib preload failed to locate firmware patch file
I/bt_hwcfg( 4714): Setting local bd addr to A8:7C:01:C8:23:7C
I/bt_hwcfg( 4714): vendor lib fwcfg completed

Here, you can see the issue. You should see something like that:

I/bt_hwcfg(15265): Found patchfile: /vendor/firmware//bcm4350_V0301.0634.hcd

[MENTION=6324150]nuno.f.ferreira[/MENTION] I've updated the lib, can you please retest. I think the logic they use for checking for the firmware file is simply broken ...
[Samsung Galaxy Alpha] nuno.f.ferreira:
You mean download https://xor.cryptomilk.org/android/bt_sco_test/libbt-vendor.so again and test it right?
[Samsung Galaxy Alpha] modpunk:
Yes, exactly. I think I already have a patch ...
[Samsung Galaxy Alpha] nuno.f.ferreira:
Congrats! Testing with car kit unavailable until weekend I'm afraid but if you can also fix the normal call audio I'm starting to believe that next test will also become a switch :)

:good:
[Samsung Galaxy Alpha] modpunk:
I've uploaded a new version, same location. It should load the correct firmware now. Could you please verify?
[Samsung Galaxy Alpha] nuno.f.ferreira:
Looks good to me. File was found. There are still those "StrictMode$StrictModeDiskReadViolation" that may be relevant. At the end of log file you can see errors that happen when I switch off bluetooth, don't if they are relevant. Log attached.

One other thing, I think this was different before but I really cannot be sure. I received a call just now when using this ROM and I answered it expecting the no-audio behaviour but I could hear the other side just fine and vice-versa. Then I made a call and the problem was there again. So I guess at least now the behaviour is:

- incoming calls are fine

- outgoing calls have no audio
[Samsung Galaxy Alpha] modpunk:
Call over bluetooth or the phone earpiece and mic?
[Samsung Galaxy Alpha] nuno.f.ferreira:
standard earpiece and mic

---------- Post added at 06:04 PM ---------- Previous post was at 05:55 PM ----------

More info: I have a bt headset with me. I just paired it, worked fine.

Tested outgoing and incoming call with it. There is sound and it's not continuous, it's silence when no one speaks and sound when someone speaks but what one can hear when someone is speaking is just noise. Incoming and outgoing is the same in this case.
[Samsung Galaxy Alpha] modpunk:
I guess the voice issues people have are either caused by some Google Apps, like Google voice (OK Google). I use the OpenGApps Nano package and do not have issues ...
[Samsung Galaxy Alpha] nuno.f.ferreira:
I also have opengapps but micro in my case. I will try nano later but perhaps this can still be investigated since I'm currently using a ROM that was a fork from yours that doesn't have this problem.
[Samsung Galaxy Alpha] sunsettrack4:
EDIT

The general problem with voice/audio quality seems to be related to the configs in mixer_paths.xml file. Maybe the BT connectivity is unstable due to the GApps packages, but the audio quality (on voice calls) is still bad for many users who use the CM-based custom ROMs...
[Samsung Galaxy Alpha] nuno.f.ferreira:
Just did the following:

- wipe device;

- install your beta3, no gapps;

- shutdown and remove battery for 30 seconds (clean modem state);

- start fresh;

Same behaviour:

- incoming call ok;

- outgoing call no audio;
[Samsung Galaxy Alpha] nuno.f.ferreira:
Adding to this info, I already tried RR 5.5.6 which is also based on your work and normal voice calls work fine as do the one over bt headset. Bluetooth pairing and media audio also work fine on car kit, phone is not enabled on car kit on that ROM.
[Samsung Galaxy Alpha] The Suspect:
I really like this ROM ! Nice Work Guys! But:

I have been used an ealier version of CM, but i had problems with MMS and mobiledata. When i got a MMS, it would crash my mobiledata, and where the 4G/3G/H icon were, is replaced with an " ! ".

I have tested this many times, and everytime i got an MMS, the Network crashed and i needed to disable og enable mobiledata to get it up and running Again. Is this fixed or is it a known bug? I have exactly the same problem on RR.

Im running LL 5.0.2 now

//The Suspect
[Samsung Galaxy Alpha] modpunk:
Can you test with the attached mixer_paths.xml and post logcat if it still does not work ...
[Samsung Galaxy Alpha] nuno.f.ferreira:
Sure, thanks. I'm travelling today but I'll be able to do it tomorrow.
[Samsung Galaxy Alpha] modpunk:
I think I have a fix for it.
[Samsung Galaxy Alpha] Blubberor:
I tried while travelling and did not get any voice. Neither directly via phone nor via BT headset. Cannot post logcat a I dont have a computer with me... Sorry for the bad news.

Best blubberor
[Samsung Galaxy Alpha] nuno.f.ferreira:
Not good. Even worst than before.

Test made with your beta3 + libbt-vendor.so (wisol support) + this mixer_paths.xml

Behaviour:

incoming-call (I don't hear, the other side hears me)

outgoing-call (silence / noise)

incoming-bt-call and outgoing-bt-call (silence / noise)

All logs attached.
[Samsung Galaxy Alpha] modpunk:
I've fixed some audio issues yesterday. So BETA4 is out ...
[Samsung Galaxy Alpha] nuno.f.ferreira:
Does it contain more effort than the mixer_paths.xml you sent a few days a go that I already tried and sent you logs? I mean should I try beta4?
[Samsung Galaxy Alpha] modpunk:
Yes ...
[Samsung Galaxy Alpha] nuno.f.ferreira:
Here's my report.

Standard outgoing calls sometimes work, most of the times don't (no audio).

Bluetooth calls (headset, didn't try car kit) have noise problems on my side but I still hear other side most of the times. The other side doesn't hear me.

All logs attached.

So, in the end there is change and in this case change is a very good thing :)

Thanks again for your work!
[Samsung Galaxy Alpha] modpunk:
This is something I do not understand. It works without any problems here.
[Samsung Galaxy Alpha] nuno.f.ferreira:
I wiped the device. Installed just beta4 and sudo, no gapps at all.

I believe it's possible to see a difference between OK and NOK logs.

---------- Post added at 02:05 PM ---------- Previous post was at 01:29 PM ----------

In the std-out-call-ok.log we can see some instances of adev_set_call_audio_path: ril_set_call_audio_path(2) while in std-out-call-nok.log it's all adev_set_call_audio_path: ril_set_call_audio_path(0), does this mean something to you?

If I'm the only one seeing this problem please let me know and I may try to flash the modem again. It would be painless if only I could use heimdall... sigh.
[Samsung Galaxy Alpha] Blubberor:
For me at least outgoing call did not work.incoming untested. May be.logs and more on the weekend.
[Samsung Galaxy Alpha] rex020390:
Will this ROM can be installed in G850Y it?
[Samsung Galaxy Alpha] :
Metalic sound on incoming call. [ I'm back on stock Nordic Generic version ]

Good luck.
[Samsung Galaxy Alpha] modpunk:
Which probably means that your modem version is not up2date and you do not get WB AMR ...
[Samsung Galaxy Alpha] modpunk:
Can someone with a STOCK ROM Android 5.0 and root the following for me:

Get https://xor.cryptomilk.org/android/tinymix

Push it to /tmp and get a shell

$ chmod +x /tmp/tinymix

Do a normal phone call and while in the call do:

$ tinymix > /sdcard/incall_mixer.txt

Then do a phone call with a bluetooth headset and while in the call do:

$ tinymix > /sdcard/incall_bt_sco_mixer.txt

Then upload the two txt files here. Thanks ....
[Samsung Galaxy Alpha] :
Don't get me wrong man. I want and like to use CM, you are doing great progress.

I'll wait for a stable release.

Now I am building a Paranoid Android version for Samsung Galaxy Alpha SM-G850F 32GB LTE.

I will upload an alpha state test version soon, until then: Good Luck.
[Samsung Galaxy Alpha] modpunk:
It is not an issue of my ROM. Samsung changed the ID of the WB_AMR_STATE RIL respone. Newer modem versions have a different one than older modem version. If you do not get Wideband mode means that your modem version is not up to date. You will see it in the radio log ...
[Samsung Galaxy Alpha] :
I will check. Thanks.
[Samsung Galaxy Alpha] Blubberor:
I was just wondering if "g850fxxu2cod4" as the first LL rom (XEF, France) is already fine or if modem needs to be updated seperately...

Best & thanks,

Blubberor
[Samsung Galaxy Alpha] modpunk:
That's the modem version I'm using ...
[Samsung Galaxy Alpha] Blubberor:
Perfect.

Thats good to know, so we are using same blobs.
[Samsung Galaxy Alpha] Darkbepo:
God... took me a while to get to those 10 posts so I can post here >.<

Just wanted to say that I found a weird fix to the "no audio" thing.

If you spam the speaker button and the mute microphone button, it picks up the audio at some point.. It's kinda weird, but if I wanna call somebody, I just start spamming those two and at some point I can hear the other side :D
[Samsung Galaxy Alpha] nuno.f.ferreira:
Shoot, like I said in http://xdaforums.com/showpost.php?p=62905637&postcount=64 that is not the baseband I got after applying the ROM modpunk told to apply. I'm downloading again, will apply just modem with heimdall and will let you know how it goes.

[MENTION=3254452]Blubberor[/MENTION] IIUC you have right modem but also have no-audio problem with outgoing calls, right?

JFYI, I've been using beta4 as my daily ROM because there's an easy trick that always work for me: when placing calls I turn loudspeaker on for ~2 seconds and then off again and everything just works...
[Samsung Galaxy Alpha] Blubberor:
I did not get outgoing calls working and did not try incoming as I was traveling.

but I might start trying your trick. ;) thx for this!
[Samsung Galaxy Alpha] modpunk:
Can someone with a STOCK ROM Android 5.0 and root do the following for me:

Get https://xor.cryptomilk.org/android/tinymix

Push it to /tmp and get a shell

$ chmod +x /tmp/tinymix

Do a normal phone call and while in the call do:

$ tinymix > /sdcard/incall_mixer.txt

Then do a phone call with a bluetooth headset and while in the call do:

$ tinymix > /sdcard/incall_bt_sco_mixer.txt

Then upload the two txt files here. Thanks ....
[Samsung Galaxy Alpha] modpunk:
Audio is fixed now, I swear!!!
[Samsung Galaxy Alpha] Blubberor:
Ready for flashing ;)
[Samsung Galaxy Alpha] modpunk:
And I've just fixed bluetooth headsets too. woohooo
[Samsung Galaxy Alpha] nuno.f.ferreira:
Curious, what was that problem with the bt mic?

Anyway, beta5 will be a party :)

Those security updates will also be included right?
[Samsung Galaxy Alpha] modpunk:
If in the mixer_path.xml are duplicates, then audio_route can't apply them, cause it doesn't know which one is the correct one. So I fixed all duplicates ....
[Samsung Galaxy Alpha] tileeq:
Just a question, does the download link gives the updated version or just the first release?

Sent from my SM-G850F
[Samsung Galaxy Alpha] modpunk:
I do not know what link you're talking about ...
[Samsung Galaxy Alpha] :
He asked for V5. The one with the audio fixed.
[Samsung Galaxy Alpha] modpunk:
There is not beta5 out yet ...
[Samsung Galaxy Alpha] :
Obviously.
[Samsung Galaxy Alpha] nuno.f.ferreira:
Carkit also works. Only pet peeve is that incoming calls trigger both car and phone ringtones. That's what I call a party :)
[Samsung Galaxy Alpha] Olangu:
Maybe you don't need these anymore, but here they come anyway.
[Samsung Galaxy Alpha] modpunk:
Thanks for the help!
[Samsung Galaxy Alpha] modpunk:
BETA 5 is out now!
[Samsung Galaxy Alpha] :
Good job. Fixing camera issue and incoming call delay, next.
[Samsung Galaxy Alpha] modpunk:
Oh, great that you will fix those bugs, thanks!
[Samsung Galaxy Alpha] Blubberor:
outgoing call working - very nice!! I had to do a complete reset and install from a fully wiped phone but then it worked (maybe important for others) testing bt and incoming call later. now configuring the phone.

very nice work!!

BTW in terms of donations - are you still looking for other development tools? or another beer? ;)

EDIT: anyone else just have very weak vibration in silent mode? (could not find an option to increase this)
[Samsung Galaxy Alpha] Killbom:
How bad is the incoming call bug? Can i just wake the phone to answer or what is the problem?
[Samsung Galaxy Alpha] Blubberor:
Not at all. For me both ways working very snappy.

to accept a call it takes for me 2sec until I get the calling screen..
[Samsung Galaxy Alpha] :
Call not working via bluetooth. Incoming and outgoing : MUTE.
[Samsung Galaxy Alpha] Olangu:
Anyone know minimum installation of (Open)Gapps, needed for swipe-typing?
[Samsung Galaxy Alpha] Killbom:
Okay! Then i might try it out! Currently stuck trying to install TWRP, i cannot flash the .img file. Is there a guide somwhere?
[Samsung Galaxy Alpha] :
Via ODIN .tar file.
[Samsung Galaxy Alpha] Killbom:
It does not seem like i have this file. I only have the Odin3 exe and the twrp-2.8.7.0-slte-1.1.img
[Samsung Galaxy Alpha] Blubberor:
just download google keyboard apk.

thats much easier. not sure if this is even included in gapps??
[Samsung Galaxy Alpha] :
Install TWRP Manager from Play Store.
[Samsung Galaxy Alpha] Olangu:
The dd-method worked fine for me.

https://twrp.me/devices/samsunggalaxyalpha.html

You need to root the phone first.

https://autoroot.chainfire.eu/

---------- Post added at 03:47 PM ---------- Previous post was at 03:46 PM ----------

Pico install of OpenGapps fixed swiping in the AOSP keyboard.
[Samsung Galaxy Alpha] :
Back to stock.

Keep up the good work.

[Going back to stock reason : Incoming and outgoing calls via Bluetooth Headset : MUTE]
[Samsung Galaxy Alpha] modpunk:
"It doesn't work."

Give the programmer some credit for basic intelligence: if the program really didn't work at all, they would probably have noticed. Since they haven't noticed, it must be working for them. Therefore, either you are doing something differently from them, or your environment is different from theirs. They need information; providing this information is the purpose of a bug report. More information is almost always better than less.

How to Report Bugs Effectively
[Samsung Galaxy Alpha] Blubberor:
Here is what worked for me at least for outgoing call.

Just edit Volumen one up one down or vice versa and BT works. Habe not tried mic but assume it to work, too. Just in my way home..

Best,

blubberor
[Samsung Galaxy Alpha] :
Of course it doesn't. Please stop say it works then. Do not brag about bluetooth working.

These are your words "Effectively" : http://xdaforums.com/showthread.php?p=63167840
[Samsung Galaxy Alpha] Blubberor:
Just check the post above yours. Maybe this solves the problem for you. I would bet with this everything is working very good.

Now at this point my daily driver.

In thr beginning everybody was crying for any working cm now some people cry because there are some bugs...sometimes to me installing cm Firmware got too easy so everybody can use it...

Keep up the work and thanks!!
[Samsung Galaxy Alpha] Killbom:
Got it working yesterday. No problem using it as a daily driver.

You might want to replace the camera app with some third party app as the default one seems to hang sometimes.
[Samsung Galaxy Alpha] surfin-bobby:
Hi,

Thanks a lot for the good work, switched from kyasus to your ROM, donation on the way!;)

Following things are working for me:

-Screen goes on after only 2 seconds on incoming call

-Bluetooth calls over headset working

-Bluetooth Carkit working (Ford Audio):good::good:

-Earpiece calls working, good quality on both incoming and outgoing calls

Following points need to be optimized:

-Strong echo, I edited the mixer_paths.xml to a volume-builtin-mic-incall value of 12 instead of 24, which is a good workaround until noise suppression works

-Device sounds (speaker) fully muted after phone call. Workaround: take a picture with the stock camera app and the sound is back on (reboot also does it). Audio routing seems to be the problem here

-Bad quality on media audio bluetooth streaming, streaming is beeing interrupted and has hiccups: probably some necessary bluetooth media buffering not activated (hiccups are stronger on higher CPU load)

-Camera: Still/Video switch kills app

-Vibration bug, almost no vibration sometimes, has to do with screen locking i guess

Beta5 is good enough for me as a daily driver, please tell if I can help on anything!:)
[Samsung Galaxy Alpha] modpunk:
The noise suppression is working, check logcat and you will probably see that two mic control is turned on! There are two libs doing noise suppression, if you build the audio policy manager you should notice that ns is turned on and the libs are processing the audio. It could be that you need a newer modem version, check the suggest modem version in the description (first post).

I found and fixed that yesterday. -> https://xor.cryptomilk.org/android/mixer_paths.xml

That fixes it at least for me, if not read my last post in the CM 12.1 sources thread!

I have the same and no idea what causes this ...

See well known bugs ...

No idea, might be powerhal ... or something else
[Samsung Galaxy Alpha] Blubberor:
Regarding BT music stream.

Was defenitely not there in beta 3 used the phone for streaming a lot music with beta 3 via BT.
[Samsung Galaxy Alpha] surfin-bobby:
I updated the modem to the suggested one, echo still very present. The echo is as strong a on kyasus ROM with no noise suppression. Anyone else having it?

I tried the file, does not fix it...

How to reproduce the error: Switch phone off and reboot, device sound working. Place one call, after that no more device sound. Open the stock camera app and shoot one picture, sound is back. Place a call again, device sound working, no more mute problem from now on.

I will try to get deeper into this reading your other post, as you suggest.
[Samsung Galaxy Alpha] :
Cyanogen Mod is known for it's sound problems.
[Samsung Galaxy Alpha] modpunk:
Please either help fixing bugs or go outside and play with the rest of the kids. You're posts are not helping at all.
[Samsung Galaxy Alpha] :
**** you, nerd boy.

You are using people as guinea pigs, telling them that you fixed the sound problems, when you know they aren't fixed, just to make them test your ROM without them even knowing it [ Shadow Testers ] and then you ask them to report logs. LOL

Now run as fast as you can and report this post.
[Samsung Galaxy Alpha] Blubberor:
Kid shows his age....

Coming back to the important things.

Here is some more weird bug that happened today twice to me.

When the phone was running some time i could not get any voice/mic working for incoming nor for outgoing calls.normal phone and Bluetooth.

Only reboot fixed it instantly.

I was using the "newer" mixer_paths config. Now checking with original one.

Cheers,

blubberor
[Samsung Galaxy Alpha] surfin-bobby:
+1, happening sporadically, but no need to reboot, works again after some time...
[Samsung Galaxy Alpha] modpunk:
This is my last reply to one of your posts. Maybe you get it, if not then I don't care. You insulted me so you do not get my respect anymore.

I'm working on this ROM since more then a year on my spare time. I'm not getting paid for this. I have a job, family and a live!

I want CM running on *my* phone. I could do that without providing a ROM to anyone. I like the challenge and hope to get people to collaborate on ROM development.

Audio works just fine for me. It doesn't work for others. I'm trying to help others to get audio working on their devices. I do not have to do that. I could leave them alone with their problems. If someone wants something fixed he needs to provide accurate information so I can try to understand and fix it. Without any information I can't fix anything, I do not have their hardware.

You are just wasting my time I could spend much better.

For all others, ask how you can provide information if you don't know. See the SOURCES thread for a lot of information. The last post tells you how audio works and how to provide information. Keep them coming ...
[Samsung Galaxy Alpha] sunsettrack4:
You can reproduce this problem by going to bluetooth settings while the Alpha is streaming music to a multimedia device. The smartphone searches for other devices even if it's already connected to my BT HiFi, that's why I get these interruptions...

Gesendet von meinem SM-G850F mit Tapatalk
[Samsung Galaxy Alpha] modpunk:
New version up!
[Samsung Galaxy Alpha] nuno.f.ferreira:
Sorry, beta5 works better for me, as in this case I have no working trick to surpass the no in-call audio. This contains, I guess, the hal and mixer_paths.xml that I tested privately. Not really sure about the audio_policy.conf.

I'll try to find out some time in the coming week to go through the process you sketched in order to try to contribute to a solution.

Thanks for your very generous work. Catch you later.
[Samsung Galaxy Alpha] hDusan:
This project (rom) is smoother, than original touchwiz (lollipop) ? :)

Tapatalk-kal küldve az én SM-G850F-el
[Samsung Galaxy Alpha] modpunk:
I need the mixer state when it is woring and when it isn't. So I can compare them and see what is wrong. I do not have any issues on my phone, so your hardware seems to be different.
[Samsung Galaxy Alpha] Ashareth:
Virtually ANYTHING is smoother than a TouchWiz rom (except maybe the early MotoBlur ones :D)....

klau : No reason for Xposed not to work IF you followed the right procedure to install it with the right version of it (the one for Lollipop 5.1.x and not for 5.0x) since it worked on early beta, and other CM based projects based on this one have it running without problem.