yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Original Android Development] franciscofranco:
Thanks for all the feedback :) r47 will be a focus on the right earbud clipping, I don't want to ruin r46, I'm very happy with it.
[Nexus 5 Original Android Development] matesc:
The right earphone clipping appeared right after you've merged a audio quality patch. Have you tried to remove it again?
[Nexus 5 Original Android Development] fakitol:
R46 works very good. I didnt notice any bugs. I don't listen to music over earphones or etc.
[Nexus 5 Original Android Development] i860:
Hi Franco

R47 audio clipping is present.
[Nexus 5 Original Android Development] combatdeity:
I assume you've seen this franco.

So it seems like its a hardware and therefore stock problem, obviously would be awesome if you fixed it though.

I personally keep the volume at -2 and haven't noticed the clipping, not that it might not be there, others with better hearing may still notice it.
[Nexus 5 Original Android Development] i860:
There is no clipping with stock kernel or other kernels. Also r38 has no problem. Our problem is Right channel not left channel.
[Nexus 5 Original Android Development] combatdeity:
Ah, Im confusing the issues then, my bad.
[Nexus 5 Original Android Development] JokerAce:
Is the clipping about the stuttering? Because I am experiencing it after upgrading from v36
[Nexus 5 Original Android Development] Technecium:
turn your headphones around... see! same problem :P
[Nexus 5 Original Android Development] woowhee:
Sorry for replying to such an old post, but are you using Viper4Android by any chance? I was fed up with the hiccups in r46 so I'm trying r37 now, per your suggestion...

Edit: Just got a bad hiccup (sounds like a digital fart)...I guess Franco isn't for me, unless there's a way for V4A to play nice with this kernel...
[Nexus 5 Original Android Development] Akath19:
What ROM are you using?

I'm using Franco, PA and the latest V4A and I have no clipping or stuttering issues, I'm starting to think that it's a ROM problem!!
[Nexus 5 Original Android Development] woowhee:
I'm currently on Cataclysm. I experienced the same issues on Carbon.
[Nexus 5 Original Android Development] Akath19:
Try PA or Omni....something closer to stock.

I remember something similar happened on the N4 and ROM developers needed to merge a patch to fix it but I can't remember exactly what it was.
[Nexus 5 Original Android Development] woowhee:
Hm, I'll consider that...though I thought Cataclysm was the custom ROM that is closest to stock!

Also, when I'm using another go-to custom kernel, I have no issues with audio/V4A.
[Nexus 5 Original Android Development] franciscofranco:
Thats what Im reverting next.
[Nexus 5 Original Android Development] Tzfardaya:
Are you two undervolting?

---------- Post added at 09:57 AM ---------- Previous post was at 09:50 AM ----------

Couple question for the audios out there... When you say the audio is "clipping", what is happening to the audio stream? And do you understand why amplifiers clip?
[Nexus 5 Original Android Development] i860:
Try r38. I am on cataclysm v4 and franco r38.
[Nexus 5 Original Android Development] importraverxx:
So much better than stock!
[Nexus 5 Original Android Development] bigknowz:
Audio stutter

FWIW, I jumped ship after r37 due to audio, ran faux and ElementalX. Neither had audio issues but I prefer the overall franco experience and flashed r46. Initial audio test was successful, no stutter, hoping things stay that way. Has anyone tried negative gain to see if that has an effect in clipping/stutter? Also, anyone having stutter on higher min cpu like TGM uses? Wouldn't think there would be a battery issue since latest music patch causes minimal drain, noticeably less than before.
[Nexus 5 Original Android Development] matesc:
To answer all your questions:

I run other kernels like Elementalx and faux and stock to compare. Nowhere else seems to be the issue.

My tests where always with negative headphone gain. I've tried also to raise min CPU clock.

The issue appears only after making or receiving a call without headphones. The clipping starts also on lower volume. Raising volume results in stopping music from the right channel. Only a reboot fixes it. As a temporary workaround you can have the headphones plugged in all the time, especially when making calls. I didn't notice that issue when receiving a text message.

[MENTION=3292224]franciscofranco[/MENTION]: I am looking forward to your next test build! Thank you again for your hard work! (This is not an ETA)
[Nexus 5 Original Android Development] psp9000333:
not for me, I'm getting audio clippings that are very rare, like once today. use the latest version (2.3.3.0).
[Nexus 5 Original Android Development] Dungeon47:
Similarly, I only get audio stutter at specific times and under specific conditions. When I'm using my bluetooth speaker in my car driving down a specific stretch of road. Hard to attribute that to kernel.
[Nexus 5 Original Android Development] aarondandy:
i got crazy audio clipping while playing music through my phone in my car and i had to keep the screen on to not get any stutters.
[Nexus 5 Original Android Development] Tzfardaya:
Can someone explain what you all mean by "clipping"?

I can't help but think that what I refer to as clipping (a HARDWARE LIMITATION) is different than what the rest of you are considering clipping...
[Nexus 5 Original Android Development] hello00:
pretty much like a form of distortion..like a fuzzy sound or something
[Nexus 5 Original Android Development] zibiksior:
I would not put it in that way. For me it was like total disappearance of sound for very short time repeated fast. Generally short interrupts in sound.
[Nexus 5 Original Android Development] Tzfardaya:
okay, that may be clipping... but again, it's a hardware limitation, you're trying to drive the amp at levels it's not capable of handling...

reduce your audio tweaks and it should go away... remember, a 9dB change is required for us to "hear" the volume increase/decrease on average, but that same 9dB change may be enough to keep the audio from being clipped

that's not clipping...

is it short interrupts where the music just drops out, (continues playing but silently) or micro pauses? where the music stops for the time there's an interrupt?

This is why we all NEED to use the same phrasing to describe issues... Clipping is a HARDWARE issue, stuttering may be a SOFTWARE issue (or firmware, or just too low a cpu freq for the bitrate of the audio)
[Nexus 5 Original Android Development] woowhee:
But while on ElementalX, for instance, I don't have these issues at all. Hard not to think it's kernel-related. It's the only thing keeping me from sticking with Franco's kernel for good.
[Nexus 5 Original Android Development] Tzfardaya:
install a cpu freq monitor and check what frequencies you're getting the stuttering on... then install elementalx and see if while in the same freq you don't get the same stutters...
[Nexus 5 Original Android Development] zibiksior:
Ok so I experienced stuttering problem. Unfortunatly it probably is kernel related. I changed to Linaro kernel with faux sound and then even with higher headphones level there is no such issue... ROM didn't changed so it must be kernel. Maybe let other tell what kind of problem are they experiencing clipping or stuttering. Maybe they also miss understood that...

EDIT. Hmm I checked now and there is also stuttering on Linaro kernel but not at stock values only on higher level stuttering appears. On francos it also happens on stock values... Maybe there actually is some problem with CPU freq but this mods are handling this differently.
[Nexus 5 Original Android Development] Tzfardaya:
yes, but is the issue because the kernel has reduces some audio limitations and reached the hardware limitations, or is it an actual software issue in the kernel...

we KNOW that if you push any amplifier too hard it cause clipping, and that a reduction in volume is the only way to reduce/remove that form of distortion..

we also know that these issues seem to appear when certain caf commits to improve audio quality is applied... what are the odds that that patch also manages to raise the output levels enough to go beyond the capabilities of the amp, while not being enough for us to actually hear a volume change...

what we don't know is what the actual issues we are all experience are caused by... and unless someone who claims to be experiencing "clipping" has an oscilloscope and properly test the kernel waveforms created we can't tell for certain.

Another thing is that almost everyone who has reported stuttering has encountered them with high quality/high bitrate audio files... (mp3 above 265kbps, aac 320kbps, etc, etc) which require more processing power to decode and play properly, as [MENTION=2918197]The Gingerbread Man[/MENTION] has determined, a higher min cpu freq is required to fix this stuttering...

---------- Post added at 01:40 PM ---------- Previous post was at 01:25 PM ----------

this also isn't the first time that a high amp usage + phone call = dropped channel either... but it is the first time someone grabbed a log and noticed that the phone is switched from headphone (stereo) to headset (mono) when the channel gets dropped...

this may be a circuit protection system, since (car audio enthusiasts will know this part) a 2 channel amp can provide more power when bridged into a mono configuration.. 2 channels input, 1 channel output.

So, the only fix I can really see, if your phone really is clipping, is to REDUCE ALL YOUR AUDIO TWEAKS, either one of them (or a combination of them) is trying to drive the phones headphone amp beyond what it is capable of. As always, you have the choice, clean, clear audio, or loud audio... without using an external amplifier system you can't have both.
[Nexus 5 Original Android Development] zibiksior:
I'm using only high bitrate mp3 320kbps but changing min CPU freq doesn't help. But probably for me its that I'm reaching hardware limitations that why there is stuttering. On lower level everything is OK so I won't dig further because for me its clear. But as I mentioned im using different kernel only based on Franco's so in his kernel must be something wrong...
[Nexus 5 Original Android Development] Tzfardaya:
this would imply to me that franco uses higher defaults than the linaro you're using...

---------- Post added at 01:42 PM ---------- Previous post was at 01:41 PM ----------

what's the highest min cpu freq you've tried?
[Nexus 5 Original Android Development] zibiksior:
422mhz
[Nexus 5 Original Android Development] Tzfardaya:
are the stuttering reduced as you increase the min freq? as a test can you try 1ghz min freq?
[Nexus 5 Original Android Development] zibiksior:
OK I set min freq to 1036mhz but I didn't notice any stuttering reduce.
[Nexus 5 Original Android Development] hello00:
oh no..my audio is fine..i was just letting u know what they meant by clipping
[Nexus 5 Original Android Development] Tzfardaya:
fair enough, but my statement still stands for those who ARE experiencing it...

---------- Post added at 01:54 PM ---------- Previous post was at 01:53 PM ----------

okay, try 1.5ghz then... then try performance governor... :p

and I'm not entirely sure how the phone reacts wrt min freq and screen off....
[Nexus 5 Original Android Development] gollyzila:
I'm on r45 with stock kernel settings using FKU free on a stock ROM with Xposed. I'm getting a 2-3 second lag every time I open the Recents menu. Even with GravityBox disabled, Recents is still laggy. Does anyone else have a laggy Recents menu with stock settings? Is there a kernel setting in FKU beta that decreases the lag?
[Nexus 5 Original Android Development] Tzfardaya:
this is the first I've heard of it, but could you try removing xposed and see if the lag is still there?
[Nexus 5 Original Android Development] gollyzila:
Thanks for the quick response!

Uninstalling Xposed via the app definitely decreased the lag to less than a second. I had 15 modules enabled, so I'm guessing I need to do some spring cleaning there.
[Nexus 5 Original Android Development] Tzfardaya:
and possibly a reflash of stock anyways... if you're spring cleaning, might as well do it right. :p
[Nexus 5 Original Android Development] Lowresolution:
Can i flash this kernel over Elemental x kernel ?
[Nexus 5 Original Android Development] Tylog:
Yes you can

Tapatalk Team SlimRoms
[Nexus 5 Original Android Development] iamhacked:
Music playback is just too stuttering on this kernel. Even when I'm playing 320 mp3 it stutters like crazy
[Nexus 5 Original Android Development] Tzfardaya:
and you haven't noticed that the last couple pages are talking about audio issues? complete with a few things to try to help us solve that?
[Nexus 5 Original Android Development] iamhacked:
I've noticed that on the change log. Might as well use a different kernel now.
[Nexus 5 Original Android Development] Tzfardaya:
well,. nice to see you stopped in to say goodbye then. Have fun with whatever kernel you end up on.
[Nexus 5 Original Android Development] msgfromside3:
If you happen to have xprivacy module installed, it can cause the lag.

---------- Post added at 03:12 PM ---------- Previous post was at 03:05 PM ----------

+1. Really, no one is asking you to use this kernel. If it doesn't work for you, try something else and don't make a general statement. I don't have any problem with the music playback (yes, 320k) with almost stock setting so from my perspective, you are doing something wrong. In other words, can we say there is something with stock kernel because franco kernel has much better battery life? No.

Like said many times already, test it with complete stock first before saying it is the kernel issue.
[Nexus 5 Original Android Development] occtec:
Sorry for late reply, no I'm not undervolting, running latest kernel untouched.
[Nexus 5 Original Android Development] gollyzila:
I don't have it but thanks for the tip.
[Nexus 5 Original Android Development] Tzfardaya:
Any mods/tweaks/edits to the rom?
[Nexus 5 Original Android Development] Exostenza:
Running the latest cataclysm and listen to high quality mp3 with poweramp and I have never had a single audio issue with Franco kernel. I undervolt a universal -50 and all other settings are stock. I don't know what is going on with some people here but for me audio had always been solid.

[MENTION=3292224]franciscofranco[/MENTION] have you been able to verify the audio issues on your phone or is this all from external input?
[Nexus 5 Original Android Development] occtec:
Yes, using wannam kit, GELS mainly for navbar tweaks, Xposed for YouTube adaway + adaway.
[Nexus 5 Original Android Development] Tzfardaya:
Same advice I gave someone else earlier... Try removing xposed and see if that helps...
[Nexus 5 Original Android Development] eseregin:
What player do you use?

With Neutron I have music issues as well. Last version was r39 that works no probs with this player.

With Poweramp no problems for me, though Neutron sounds much better for my ears :)
[Nexus 5 Original Android Development] iamhacked:
Poweramp, stock settings
[Nexus 5 Original Android Development] Tzfardaya:
stock app settings or stock kernel settings?

any extra mods/tweaks/tunes? xposed and the like?
[Nexus 5 Original Android Development] bigknowz:
Conf fle

Get rid of the 99elementalx file in /etc/init.d and the elementalx.conf in /etc.
[Nexus 5 Original Android Development] RobbieL811:
No. At the time, I wasn't using V4A but I am now. What do you mean when you say is there a way for V4A to play nice? Does it not work for you?

Sent from my Nexus 5
[Nexus 5 Original Android Development] occtec:
I'll give it a shot and get back to you, cheers.
[Nexus 5 Original Android Development] franciscofranco:
Test this for right earbud clipping or whatever the name is: http://kernels.franco-lnx.net/Nexus5/4.4/tests/boot.img
[Nexus 5 Original Android Development] sordna:
The bug is officially called: left-ear-audio-clipping-when-wearing-headphones-wrong-way-around :)
[Nexus 5 Original Android Development] Tzfardaya:
but it's not "clipping" when the channel drops out... :p
[Nexus 5 Original Android Development] woowhee:
Every now and then I'll get a "digital fart" -- on headphones, via Bluetooth in my car, and when listening to music on the phone speakers.

What setup for V4A are you using? What audio quality? Maybe I should be using Super Audio Quality since it uses two cores?
[Nexus 5 Original Android Development] franciscofranco:
This is super quiet today, same as G+...
[Nexus 5 Original Android Development] RobbieL811:
I think that I might just be one of the lucky ones. To answer your question, I use super audio quality & I do nothing but ad 3.5 db of bass. In FKU I use 4 for my headphone audio boost & 6 or 7 for the speaker boost.

Sent from my Nexus 5
[Nexus 5 Original Android Development] Tzfardaya:
Sorry I haven't been hamming it up as much as usual... I'm looking for a log that was posted recently but can't remember any of the terms to search so have to dig manually for it....

I promise I'll try to find time tomorrow to make a few chuckles... :P
[Nexus 5 Original Android Development] lesp4ul:
Yea super quiet, maybe because of quiet saturday for the following easter day tomorrow. Anyway... Testing.. ?
[Nexus 5 Original Android Development] woowhee:
Thanks. Giving Super Audio Quality a shot...
[Nexus 5 Original Android Development] vomer:
Guess lots of people are on the Easter egg hunt lol

Sent from my Nexus 5
[Nexus 5 Original Android Development] LibiSC:
I wasn't aware of this http://www.anandtech.com/show/7567/smartphone-audio-quality-testing/5
[Nexus 5 Original Android Development] Technecium:
I suggest we keep to industry terms, "digital fart" and "sdb digital fart".
[Nexus 5 Original Android Development] :
Is the audio clipping fixed for anyone on r46? I still get stutters.
[Nexus 5 Original Android Development] Tzfardaya:
If you're having stutters, we ask about clipping? Two separate issues...
[Nexus 5 Original Android Development] Lowresolution:
Thanks , deleted and bought the FKU app as well :)
[Nexus 5 Original Android Development] FCDHBubbles:
For me Franco R46 is the smoothest, responsive, battery friendly kernel up till now! Thank you so freaking much obrigado Franco!!
[Nexus 5 Original Android Development] exxpired:
On my way to work, before I flashed this I was getting clipping on every song, so far 5 songs in after flashing no clipping! Will try again later when my phone has had more up time as it normally gets worse the longer the up time from boot.
[Nexus 5 Original Android Development] i860:
NO MORE right earbud clipping with this. Excellent work!
[Nexus 5 Original Android Development] :
Yeah? Stutters, then. Both channels drop out.
[Nexus 5 Original Android Development] Tzfardaya:
The Gingerbread Man reported that raising the min frequency helped him with the stutters... What code and bit rate are you playing? Local or streamed?
[Nexus 5 Original Android Development] outofthisworld:
A lot of people liking both r36/r38 and r46. Anyone else think that a good version number plays an important part in people's perceptions of this kernel?

...i say you skip to r48 :)

Jokes aside, incredibly happy with r46 but very anxious about r51 haha
[Nexus 5 Original Android Development] Exostenza:
Dude. Up the read ahead buffer. No more stuttering. You can thank me later. Nothing to do with Franco kernel.

Got you out of a jam, bro.

I've been using poweramp with Franco since r26 I believe and I are never had a single audio issue and yes I listen to 320kbps mp3s.
[Nexus 5 Original Android Development] iamhacked:
Tried that with no luck. It's kinda weird because I didn't change anything with the kernel settings
[Nexus 5 Original Android Development] :
Yeah, I tried that, didn't help. The mod I posted above helped quite a bit, but stuttering is still present. I listen to 320kbps MP3s, local.
[Nexus 5 Original Android Development] snorfu:
Hey guys i want to try a new 4 core setup...but i'm not sure if it make a difference in battery life when i use 1,6 GHz with a lower input boost time or 1,5 GHz with a higher boost time! Did you have any suggestions?

Gesendet von meinem Nexus 5 mit Tapatalk
[Nexus 5 Original Android Development] jinxfire:
Flashed r46,

Absolutely no disturbances in music(listening for last three hours) ,

Using V4A (high quality audio)

All stock settings

On PA rom(beta4)

Keep up the good work, Franco Sir [emoji106]
[Nexus 5 Original Android Development] matique:
No clipping whatsoever nor channel imbalances. Poweramp with V4A, using Westone 4. For those people with clipping, is it because you're pushing the volume too high? Or perhaps the drivers in your earphones are a little busted...

Otherwise super smooth & stable. Pretty sure the battery would be fine too.
[Nexus 5 Original Android Development] lesp4ul:
Okay, listening music, videos for 2 hours and seems no clipping at all. Good job!!!
[Nexus 5 Original Android Development] scissors_cut_paper:
+1 on that, no clipping including after trying to reproduce with a phone call. For the record (and I'm not trying to start an argument, I'm genuinely interested) if its the hardware being pushed too far, how come it works fine until a phone call is made? (Except for new one where it seems to be fine all the time).
[Nexus 5 Original Android Development] rtitusz:
The clipping begins when I adjust the headset gain boost in FKU so that the output volume increases above stock. The right earbud will clip on high volume peaks of the played song. When I leave everything stock, I do not have any issues whatsoever, although the volume is quite low in that case, especially with the apple Earpod headset I use (the volume is a bit better with the HTC RC 240).

I have not tried the test kernel yet.

------postagalambbal_küldve------
[Nexus 5 Original Android Development] scissors_cut_paper:
Are you on the latest test boot.img? I've run it up to headset volume boost 7 so far with no clipping.
[Nexus 5 Original Android Development] matique:
Use the latest test kernel. Flash it using flashify if you're lazy to use the computer.
[Nexus 5 Original Android Development] chrisch91:
Same here. Do u think it is xposed related?
[Nexus 5 Original Android Development] rtitusz:
Will try that asap, but I'm not in reaching distance of a computer right now, and I'm also running low on battery, so it'll have to wait till late afternoon. THX. ;)

------postagalambbal_küldve------
[Nexus 5 Original Android Development] aow1980:
Is the clipping and stuttering happening with dalvik and xposed installed or with art runtime as well?
[Nexus 5 Original Android Development] dastinger:
I'm pretty sure it's happening with ART as well. At least one user did a thorough report and he said he was on ART.
[Nexus 5 Original Android Development] franciscofranco:
Yeah so the problem was that patch that increased sound quality, I had no idea to be honest. That r47 boot.img is up and running on the tests folder since last night, try it and abuse it before I make it a official release.
[Nexus 5 Original Android Development] stacio88:
Or you can use the FKU app to flash as well ?
[Nexus 5 Original Android Development] i860:
Hi

Thank you for the fix.

Can you please see how your phone behaves in bright sun light. Yesterday i was out in park with my son, clean sky, the phone was playing up. It will hit 100% brightness and after 2 second back to 30% i couldn't see nothing( it will not stay to 100%). I use lux as well, i disable it but still the same problem.
[Nexus 5 Original Android Development] franciscofranco:
That's a bug on the HAL, happens on 100% stock too.
[Nexus 5 Original Android Development] gollyzila:
I was able to pinpoint most of the lag to Live Wallpaper in Recents Xposed module. But even after disabling it the Recents menu isn't as smooth as stock.

[MENTION=1007992]everyone[/MENTION] For those w/Xposed (and GravityBox), what setting in FKU did you increase to smooth up the Recents menu animation?
[Nexus 5 Original Android Development] quezpr123:
There's an xposed module that fixes this issue. It's called Nexus 5 Light Sensor Fix...I've been using it for a few days and it works well.