CM11 Sound Recorder and Media Profiles Fix - Xperia Z1 Compact General

Tested only on cm11 nightlies and fxp builds. For stock rom, it must be tested (i don't use it !). Works also on Z1 device.
There was some errors on stereo speaker and mic recorder ! now fixed (There is no stereo speaker on Z1 C or Z1 device)
Some values increased : speaker, mic => 90 / call samplerate => 16000
Video Recorder very smooth => 60 fps
If you don't like it, just delete it ! (Always make a backup before)

May i ask what kind of error that was? I'm on CM11 nightly (Z1C) too and my mic level in calls (especially on speakerphone) got very low for some reason. almost to the point where the other end wasn't able to understand anything. I have yet to test if it might have been fixed already or if it is a hw-fault on my device. From the changelogs I can't see anything related.
Also: is this a fix that is about to be merged into the nightlies?
Thanks so far,
Greetz, Unr3aL67

Unr3aL67 said:
May i ask what kind of error that was? I'm on CM11 nightly (Z1C) too and my mic level in calls (especially on speakerphone) got very low for some reason. almost to the point where the other end wasn't able to understand anything. I have yet to test if it might have been fixed already or if it is a hw-fault on my device. From the changelogs I can't see anything related.
Also: is this a fix that is about to be merged into the nightlies?
Thanks so far,
Greetz, Unr3aL67
Click to expand...
Click to collapse
this is my own fix. you can try it if u want !

Related

[Q] CM10.2 Low Headphone Volume

I'm running the latest CM10.2 Nightly of the MicroSD on my Nook Color. I'm really liking it over CM9(what I had before) but I've run into one major issue, Headphone Volume. I opened up DSP Manager and and cranked the equalizer up in the Speaker category and my speaker got nice and loud, but when I try to do the same for the headphones nothing works. Changing the Headset category's equalizer has zero effect on anything, and changing the other categories didn't help either. I can't apply any audio affects to the headphone jack. I found this thread on the CM forums, but couldn't find any of the mentioned files or directories. I suspect things have been changed and moved around in Android 4.3. The only volume boosting method I've found that works is by playing the video/audio file in MX Player and use it to boost the volume, but that only helps marginally and is zero help in any other app.
Is there any way I can get this to work?
There is a thread over at http://forum.cyanogenmod.com/topic/73393-low-headphone-volume-using-nightlies/ about your issue.
I couldn't get mine to work because I did not find the file mentioned in the post.
andtron said:
There is a thread over at http://forum.cyanogenmod.com/topic/73393-low-headphone-volume-using-nightlies/ about your issue.
I couldn't get mine to work because I did not find the file mentioned in the post.
Click to expand...
Click to collapse
I already linked to that thread in my post and said that it didn't contain any answers for CM10.2. All the files mentioned in it don't exist in the latest 10.2 nightlies.
japzone said:
I already linked to that thread in my post and said that it didn't contain any answers for CM10.2. All the files mentioned in it don't exist in the latest 10.2 nightlies.
Click to expand...
Click to collapse
I'm running 10.2.1 stable on nook color and have the same problem but it also affects my internal speaker too. Only thing I've found that works is Volume+ 2.0. I had same problem with CM7 and their original version was the only fix that worked on that as well.
I really don't understand why we're not given direct access to set the max volume settings since this is a problem for some users in EVERY version of android. I get why but it should be available in the hidden dev settings with a warning that you can blow your speakers/headset up if not careful.
Anyway...you can get VolumePlus v2.0 from their website free. androidaudiohacks.com (first post, can't post links) Its a beta version and I've seen some bugs but it works to fix low volume on my NC running CM10.2.1. I know his original vol+ is in the app store but I'm not sure about v2. You need v2 for jellybean.
Just so you're aware, sometimes the boost and or EQ switches don't stay in the on position but they still seem to be working fine. Also the speaker boost settings seem to work on both my speaker and headset. So if you just try setting the HS settings and nothing happens try the speaker settings. Hope this helps some.
110100100 said:
I'm running 10.2.1 stable on nook color and have the same problem but it also affects my internal speaker too. Only thing I've found that works is Volume+ 2.0. I had same problem with CM7 and their original version was the only fix that worked on that as well.
I really don't understand why we're not given direct access to set the max volume settings since this is a problem for some users in EVERY version of android. I get why but it should be available in the hidden dev settings with a warning that you can blow your speakers/headset up if not careful.
Anyway...you can get VolumePlus v2.0 from their website free. androidaudiohacks.com (first post, can't post links) Its a beta version and I've seen some bugs but it works to fix low volume on my NC running CM10.2.1. I know his original vol+ is in the app store but I'm not sure about v2. You need v2 for jellybean.
Just so you're aware, sometimes the boost and or EQ switches don't stay in the on position but they still seem to be working fine. Also the speaker boost settings seem to work on both my speaker and headset. So if you just try setting the HS settings and nothing happens try the speaker settings. Hope this helps some.
Click to expand...
Click to collapse
Sorry for the late reply. Thanks for the info. I had known about Volume+ but ignored it in this case because last I checked they couldn't get it working past Android 4.1. I'll try it later. Thanks for the help.

Camcorder sound qualiy, hiss sound, etc

Yesterday I went to theconcert of Keep Floyding (local Pink Floyd tribute band. btw, they're very, very good) and recorded few songs. Luckily I've tested sound quality during brake and it was terrible!
When I discovered solution for hiss sound, I thought that is going to happen in loud environment as concerts. During the concert I tried to tweak snd_soc_msm_2x and found that deleting 'DEC3 Volume':1:85 and 'DEC4 Volume':1:85 gave me acceptable sound quality. But without deleting 'ADC3 Volume':1:0 and 'ADC4 Volume':1:0, every next records was without sound at all. Of course that make sense.
Today, I continued my investigation and figured out that with deleted four lines mentioned above camcorder will not record sound after phone call. Reboot was only solution. Further investigation showed me that 'DEC3 Volume' or 'DEC4 Volume' doesn't exist in JB snd_soc_msm_2x at all. So I tried to delete those lines completely from snd_soc_msm_2x in CM11. Tested video recording, phone call (even I'm in roaming) and looks like that everything works. Not sure, but even hiss sound during call is gone. Obviously xt92x handles sound differently than other moto_msm8960 devices and we cannot use the same settings.
Looking forward for concert next week with several snd_soc_msm_2x prepared.
Video recorded with 'DEC3 Volume':1:85 and 'DEC4 Volume':1:85
Video recorded without 'DEC3 Volume':1:85 and 'DEC4 Volume':1:85
snd_soc_msm_2x without 'DEC3 Volume'and 'DEC4 Volume'
Disadvantage is that recorded sound is not that loud as with deleted lines. Original snd_soc_msm_2x has several setting for different environment. Maybe devs can add ability to change that in settings.
Please test it. Just replace snd_soc_msm_2x in /system/etc/snd_soc_msm/. Any suggestions or better solutions are welcome
Zeljko1234 said:
Obviously xt92x handles sound differently than other moto_msm8960 devices and we cannot use the same settings.
Click to expand...
Click to collapse
No, not at all. DECx volumes are not changed from the default 67 value on any stock moto_msm8960 device, xt92x is nothing special in this regard.
The decimator volume handling was introduced in CM so we could somehow compensate a missing post-processing done for camcorder recordings by the proprietary stock audio HAL.
The goal was to increase the volume of recordings to be closer to stock while using the open source qcom audio HAL.
It just gives us another level of flexibility, so we can use the increased or decreased volume levels for different cases, as needed.
If you'd change the camcorder DECx volumes to 67 from the currently used 85, the effect for the camcorder case would be the same as the removal of all the decimator volume handling from snd_soc_msm_2x that you've done.
The currently used 85 value is indeed open for discussion and can be changed to fit our goals best.
Yesterday I spent a lot of time changing, rebooting, testing, etc. Are you sure that effect would be the same with 67 as with deleting? Maybe no value means microphone auto sensitivity. How do you explain that DECx value doesn't exist in JB snd_soc_msm_2x for xt926 at all? Probably because of the proprietary stock audio HAL.
I have just looked into kk snd_soc_msm_2x and DEC3 Volume shows up only once under Camcorder Tx section with value 76. In CM11 shows up 6 times under several sections, some not related to camcorder. That's why I've got silent record after phone call.
I would really appreciate contribution and testing on xt92x devices instead of claiming that xt92x is nothing special in this regard when MICBIAS confirmed that is
Zeljko1234 said:
Are you sure that effect would be the same with 67 as with deleting?
Click to expand...
Click to collapse
Yes. (Well, the default may actually be 68, not 67, but the difference is negligible.)
Zeljko1234 said:
Maybe no value means microphone auto sensitivity.
Click to expand...
Click to collapse
No. The microphone sensitivity is controlled by the ADCx Volume directive. The decimator volume changes happen further down in the chain, in the digital domain already.
Zeljko1234 said:
How do you explain that DECx value doesn't exist in JB snd_soc_msm_2x for xt926 at all? Probably because of the proprietary stock audio HAL.
Click to expand...
Click to collapse
I've already tried to explain that.
The decimator volumes are not changed from the default (67) in JB stock snd_soc_msm_2x for any moto msm8960 2012 device. Not for xt926, xt925, xt897, xt907, xt905, xt901 nor for mb886.
We've introduced it in CM to be able to increase the recording volume for specific use cases, e.g. camcorder.
Zeljko1234 said:
I have just looked into kk snd_soc_msm_2x and DEC3 Volume shows up only once under Camcorder Tx section with value 76. In CM11 shows up 6 times under several sections, some not related to camcorder. That's why I've got silent record after phone call.
Click to expand...
Click to collapse
The decimator volume handling we've introduced in CM means that DEC3/4 Volume is set to a custom level in every enable sequence of all use cases that make use of decimator 3 or 4 and set to zero in every disable sequence of those use cases.
If you remove the decimator volume initialization in enable sequence for just one specific use case, it's not surprising that you'll get a mute recording when it follows a use case that ended its session by setting DEC3/DEC4 volume to zero in its disable sequence.
What else would you expect?
Zeljko1234 said:
I would really appreciate contribution and testing on xt92x devices instead of claiming that xt92x is nothing special in this regard when MICBIAS confirmed that is
Click to expand...
Click to collapse
How has the MICBIAS issue (a Motorola hack in audio HAL to use different use case definitions on different devices - CAP vs. non-CAP - that has been missed by us till you stepped in with your observations) confirmed that xt92x devices are special in regard to a simple decimator volume setting?
You still don't seem to understand how the micbias issue happened. The main reason why we've missed it was the fact that the snd_soc_msm_2x files in stock JB releases by Motorola were identical for all moto-msm8960 devices. It was a hacky unification of builds done by Motorola. Btw., in KitKat release, Motorola removed the hack and snd_soc_msm_2x of xt926 and xt907 KitKat builds now differs in the micbias settings...
As I described in the first post, I know that without deleting settings in disable sequence will give mute recordings. I was editing file in the middle of the concert.
First you claim that DECx volumes are not changed from the default (67) in JB stock for any moto devices although I gave you a link to stock file without that at all. Then you wrote that the decimator volume handling is introduced in CM. What's then correct at the end?
When I suggested MICBIAS solution it was so hard to convince you that really removes hiss noise although I gave samples the same as now. As far as I know, you don't have xt92x device and you cannot test it and be completely sure.
I really appreciate your and everyone's work and contribution and would be nice if you can appreciate mine.
Zeljko1234 said:
First you claim that DECx volumes are not changed from the default (67) in JB stock for any moto devices although I gave you a link to stock file without that at all. Then you wrote that the decimator volume handling is introduced in CM. What's then correct at the end?
Click to expand...
Click to collapse
There's no contradiction.
You are putting sentences that are in agreement to opposition, using the "although" word.
Sorry, I'm lost. I don't understand why you don't understand.
I'm pretty sure, you understand my point but looks like that is pointless for me to continue. Like before, you're pushing settings which work for your kind of the device without testing on another. The same as volumes for different (loud) environment. Now when finally someone (me), trying to contribute and improve settings for xt92x (which I have and can test), is getting to be underestimated and rejected. Completely opposite of the open source community.
Anyway, please don't answer me here anymore.
For others, still interested to test (maybe CWGSM3VO can create flashable zip again?). Please test it and post your suggestions so we can ask maintainers (probably the same guy above ) of unified rom to incorporate into the next build. There is snd_soc_msm_2x xt92x already, so hopefully shouldn't be big problem.
If no one is interested, well, I'll find optimal solution for myself and enjoy in clear camcorder sound without hiss or distortion
P.S.
Of course, I'll share that as I always do.

Very Low Mic Volume On Custom ROMs

So the problem is that no matter what custom ROM I use the mic volume is incredibly low. Talking on the phone I cannot be heard at all, if I put it on loudspeaker I can be heard faintly. Same problem for any app that uses the microphone, like sound recorder, recording a video, it barely picks up any sound.
But what's strange is that everything works perfectly on on Stock. I've installed custom ROMs on this before and last used cm10 before I upgraded way back. But now the problem also exists on that CM10 ROM. Any ideas how to fix it?
Additionally I've tried disabling the google now search listening (which fixed the same problem on my OPO) but does not work here. I've tried the following ROMs: CM10, CM11, CM12 all official nightlies and Crdroid 5.1.1.
Very frustrating as otherwise CM12 works perfectly and I intend to give this phone to someone!
So testing it further I found out that it works fine using google now and search. So either the internal microphone is disabled or maybe noise cancelling is messed up.

Low mic-volume crDroid, CM13, Marshmallow

Hello xda,
I hope someone can help me with this problem. I am creating this thread in the QA forum since I do not have 10 posts yet (this will be my 10th) to post in the ROM thread.
General information first:
Device: LG G2 D802
ROM name: crDroid (12th dec build)
Build number: mmb29M
kernel version: [email protected]
Description of my problem:
Recording sound with built-in microphone and microphone of my In-Ears give me an extreme low and distorted type of sound.
To make clear what I mean, I recorded a few seconds to show you: http://www29.zippyshare.com/v/iq9bYg7s/file.html
(You will probably not understand a single word without headphones lol)
@sys01 had the same problem but @firebird11 needed more users with the same problem.
Installed mods (which could possibly be a problem?): Viper4Android
EDIT: I just noticed that recording videos gives normal sound, but using apps like WhatsApp or the VoiceRecorder gives distorted sound.
Anyone got an idea to what leads to that problem?
darkawake said:
Hello xda,
I hope someone can help me with this problem. I am creating this thread in the QA forum since I do not have 10 posts yet (this will be my 10th) to post in the ROM thread.
General information first:
Device: LG G2 D802
ROM name: crDroid (12th dec build)
Build number: mmb29M
kernel version: [email protected]
Description of my problem:
Recording sound with built-in microphone and microphone of my In-Ears give me an extreme low and distorted type of sound.
To make clear what I mean, I recorded a few seconds to show you: http://www29.zippyshare.com/v/iq9bYg7s/file.html
(You will probably not understand a single word without headphones lol)
@sys01 had the same problem but @firebird11 needed more users with the same problem.
Installed mods (which could possibly be a problem?): Viper4Android
EDIT: I just noticed that recording videos gives normal sound, but using apps like WhatsApp or the VoiceRecorder gives distorted sound.
Anyone got an idea to what leads to that problem?
Click to expand...
Click to collapse
I have LG G2 T-Mo with crDroid 6.0.0
All volumes are extremely low. I flashed Viper4Android but no change. Desperate for help!
CiscoKydd said:
I have LG G2 T-Mo with crDroid 6.0.0
All volumes are extremely low. I flashed Viper4Android but no change. Desperate for help!
Click to expand...
Click to collapse
theres a poll from a member that did bootstacks asking for feedback in the general section. why not post it there he needs feedback.
http://forum.xda-developers.com/lg-g2/general/poll-facing-low-audio-aosp-one-variant-t3268875
darkawake said:
Hello xda,
I hope someone can help me with this problem. I am creating this thread in the QA forum since I do not have 10 posts yet (this will be my 10th) to post in the ROM thread.
General information first:
Device: LG G2 D802
ROM name: crDroid (12th dec build)
Build number: mmb29M
kernel version: [email protected]
Description of my problem:
Recording sound with built-in microphone and microphone of my In-Ears give me an extreme low and distorted type of sound.
To make clear what I mean, I recorded a few seconds to show you: http://www29.zippyshare.com/v/iq9bYg7s/file.html
(You will probably not understand a single word without headphones lol)
@sys01 had the same problem but @firebird11 needed more users with the same problem.
Installed mods (which could possibly be a problem?): Viper4Android
EDIT: I just noticed that recording videos gives normal sound, but using apps like WhatsApp or the VoiceRecorder gives distorted sound.
Anyone got an idea to what leads to that problem?
Click to expand...
Click to collapse
Darkawake... Did you find a fix for the low mic volume issue?
I have a D801 with the same issue. I have to speak loud when calling someone.
As for speaker volume, I found 2 fixes for that. But nothing to fix the Low Mic issue.
CiscoKydd said:
Darkawake... Did you find a fix for the low mic volume issue?
I have a D801 with the same issue. I have to speak loud when calling someone.
As for speaker volume, I found 2 fixes for that. But nothing to fix the Low Mic issue.
Click to expand...
Click to collapse
Unfortunately not
I tried another kernel and Kernel Adiutor, nothing helps.
In the next step I will try another CM13 rom and hope it will fix it.
darkawake said:
Unfortunately not
I tried another kernel and Kernel Adiutor, nothing helps.
In the next step I will try another CM13 rom and hope it will fix it.
Click to expand...
Click to collapse
Did you try going to...
system>etc>mixer_paths
Scroll to rx7 and increase the number.
You should not go above 90.
CiscoKydd said:
Did you try going to...
system>etc>mixer_paths
Scroll to rx7 and increase the number.
You should not go above 90.
Click to expand...
Click to collapse
If I understand the values correctly, these are for speaker volumes?
My speaker volumes are ok, just the mic does not want to work with external apps.
darkawake said:
If I understand the values correctly, these are for speaker volumes?
My speaker volumes are ok, just the mic does not want to work with external apps.
Click to expand...
Click to collapse
I slightly increased rx1 thru rx6 and my mic issue is solved. I cannot say exactly which one it was, but it worked. That's all I know.
---------- Post added at 12:39 PM ---------- Previous post was at 12:35 PM ----------
I changed mixer_paths AND slightly increased volume in Kernel Auditor. I used both methods.
CiscoKydd said:
I slightly increased rx1 thru rx6 and my mic issue is solved. I cannot say exactly which one it was, but it worked. That's all I know.
---------- Post added at 12:39 PM ---------- Previous post was at 12:35 PM ----------
I changed mixer_paths AND slightly increased volume in Kernel Auditor. I used both methods.
Click to expand...
Click to collapse
I don't notice any changes after editing mixer_paths to be honest. Kernel Auditor makes it slightly better but if you listened to my sample you know that slightly is not enough haha
Could you provide me your mixer_paths.xml if you don't mind? Maybe I edited something else lol
OK. Attached
CiscoKydd said:
OK. Attached
Click to expand...
Click to collapse
Thanks!
These settings seem to be standard in crdroid rom
darkawake said:
Thanks!
These settings seem to be standard in crdroid rom
Click to expand...
Click to collapse
Where you see 84, it was 64. I changed it to 84.
CiscoKydd said:
Did you try going to...
system>etc>mixer_paths
Scroll to rx7 and increase the number.
You should not go above 90.
Click to expand...
Click to collapse
Hey, My speaker volumes is quite low on CM13 with LG G2 VS980. It is not same as the volume that was in stock based custom rom.
Could you please tell me the way to increase volume?
Thanks
CiscoKydd said:
Darkawake... Did you find a fix for the low mic volume issue?
I have a D801 with the same issue. I have to speak loud when calling someone.
As for speaker volume, I found 2 fixes for that. But nothing to fix the Low Mic issue.
Click to expand...
Click to collapse
Please tell the fixed for speaker volume. On my phone -> system>etc>mixer_paths RX7 value is on 84 but still volume is low as compare to the stock based custom rom or stock rom.
Thanks.
CiscoKydd said:
Did you try going to...
system>etc>mixer_paths
Scroll to rx7 and increase the number.
You should not go above 90.
Click to expand...
Click to collapse
This worked for me i put all the rx from 3 to 7 to 87, thanks.

Which mata ROM has fixed mic / speaker issue?

The subject should say it all. I have two PH-1s which are in remarkable condition for their ages, but need a ROM that works well with WhatsApp and Telegram calls using the speaker.
Lineageos 18 seems to have this issue, and working through other threads, I can't identify a ROM that has it fixed. Thank you.
mervinb said:
The subject should say it all. I have two PH-1s which are in remarkable condition for their ages, but need a ROM that works well with WhatsApp and Telegram calls using the speaker.
Lineageos 18 seems to have this issue, and working through other threads, I can't identify a ROM that has it fixed. Thank you.
Click to expand...
Click to collapse
This is partially fixed on DivestOS, as mata is my personal daily driver.
The situation is:
- phone call audio is garbled until you toggle speaker for the first call after booting
- loud speaker volume cannot be adjusted
- microphone however works
I've spent many hours trying to narrow down this issue to no avail. It is a sad bug, because otherwise this is largely a great device.
Here is the upstream issue report:
Microphone issues (noisy, low volume) on speaker mode (#2209) · Issues · LineageOS / issues / android · GitLab
Expected Behavior Microphone audio should be clear when on speaker mode. Current Behavior
gitlab.com
mervinb said:
The subject should say it all. I have two PH-1s which are in remarkable condition for their ages, but need a ROM that works well with WhatsApp and Telegram calls using the speaker.
Lineageos 18 seems to have this issue, and working through other threads, I can't identify a ROM that has it fixed. Thank you.
Click to expand...
Click to collapse
Seems no derived from PHHussons' GSI ROMs, like Corvus, Octavi, DotOS have such issues. Actually the first too are nearly OEM quality.
This ROM seems to have fixed most issues that I faced in the past, including the mic bug. Unofficial LineageOS 18.1

Categories

Resources