Hi, I originally posted this on the Verizon Galaxy S3 section, however the entire Galaxy S3 forum seems super dead so I'm trying again here.
Here's my issue in the simplest terms I can come up with: I've created an app that detects when the impedance changes on the headphone jack (such as when the play/pause button on wired headphones is pressed). However, I need to check the status of the impedance every few milliseconds (less than 5ms preferably). Right now, my phone is not checking it often enough so very quick changes often don't get detected. I'd really appreciate some guidance on how I could go about increasing how often the impedance status is checked!
If you'd like more details on the project I'm working on, I made a post on a different forum called Cemetech. Apparently I can't include hyperlinks here yet so if you want to view that post, just copy and paste this address: cemetech.net/forum/viewtopic.php?t=16184
So, not a single person on XDA knows how the headphone jack works?
Related
I searched first, and can't find the solution to this problem: Since upgrading from 2.1 to 2.2, the audio jack in my car that leads to a cassette adapter is registering on the Eris as a headset w/mic. This becomes a problem when I want to do a hands-free call.
It used to be on 2.1 with the same hardware that while listening to music in my car, if a call came in, the music would mute and I could speak and the phone's internal mic would pick me up. Now, with 2.2., it seems to be expecting the sound to come in from an external mic.
Any help in fixing this would be appreciated! This is one that will send me back down to 2.1 unfortunately, as hands-free calling is kind of key for me being on the road a lot.
I found this similar question from 2008, unfortunately unanswered:
bdkvxd said:
Pretty simple question, theres got to be a software solution. I've searched high and low on these forums and many people have the same problem but I have yet to discover a resolution. How would one enable the internal (built-in) microphone having a 3.5mm audio adapter routing the sound through a casette adapter? Is feedback going to be an issue?
Thanks,
bdkvxd
Click to expand...
Click to collapse
Big thanks to the community -- as you can tell by my post count, most questions I have are answered here before I ever have to post.
TRAU
Which ROM? Have you tried another Froyo ROM? I know my DEris worked on Kaos just fine.
I'm on kaosfroyo 35-1
Ive seen that problem in the new builds of kaosfroyo. I think its just a problem in kaosfroyo. Check with punk.kaos about it.
Oddly enough, after continued playing around with this ROM....
-- used metamorph to apply black status bar and circle battery with links from kaosfroyo faq on github
-- flashed the htc ringtone package
-- set autokiller to "strict"
-- setcpu to 480-787 default; 192-480 sleep
.... and the problem seems to have gone away. Not sure IF or WHY any of those had an impact. I noticed with the new status bar that all the icons were a little different, and it wasn't long after that I re-tested the microphone while an audio jack was plugged into it because I noticed the icon was just headphones now instead of the headset w/mic icon.
Hmm...that's a bit strange. Try calling someone with ur headphones in and see if it still trys to use it as an input device. Your theme change just might have covered up the problem.
-TH1X
-------------------------------------
Sent from my FroyoEris
I've been searching the web for a long time, and the closest thin I've found is ScreamingBee's VoiceTwister, but that isn't what I was thinking of. My request is this: is there anyone out there willing to develop an application that will take input from a device's microphone, and amplify it? That's all, no fancy voice changing, no delays, maybe autotuning, maybe not, and send that realtime output to either the device's built-in speaker, or to a set of headphones, or external audio device plugged into the headphone jack?. You would think such a program would have been created by now, but so far, no dice. I am looking to use such a program to make my sometime job as a DJ easier. I would then be able to announce songs, and then play them all from the same device. Here's a link to the iphone version, for reference: http://download.cnet.com/Megaphone-Free/3000-2094_4-10908257.html
Anybody?
Maybe these links are usefull...
Pocket Stompbox
http://www.4pockets.com/product_info.php?p=81
Cebeans-Apps: look for category "Microphone"
http://www.cebeans.com/programs.htm
Hi,
First time posting here, but not new to rooting and flashing. All thanks to xda and it's user.
So, I want route the audio coming out from phone's speaker/headphone or w/e output device to microphone internally.
For example,
If my friend is listening to a song and he calls me and asks which song is this, I want to able to route the audio to Shazam or Soundhound without the use of another device (although that's not the reason for the problem)
Anothe example is, Whatsapp. Lets say I am listening to a song (locally on device or on a radio app in my cell), I want to able to use that quick audio message button in Whatsapp to record that song, internally, so if there bunch of people in the car, their sound doesn't get recorded.
And I can think of tonnes of situations where this could be used like when you are talking to someone on phone, use song/sounds/audio phrases direct from phone. Like a using some famous/quote but instead of you quoting them, using the actual person's sound from your local storage/youtube or any other audio app storage. Using sound effects, all internally. You can get so creative.
And this is something that is done by music producers all the time, routing audio and play it with recorded audio, but all done with hardware. It could be easily done using software or hardware on a computer.
I thought of using the 3.5 audio jack with mic to route the audio using wire by connecting them but I would require that special hardware (modded 3.5 jack wire) all the time and won't really help other people much. A software solution would be a lot more helpful.
I did try using this app, called SoundAbout to fix my problem but it didn't help much, or maybe I was doing something wrong.
ps. This is the 2nd time I am writing this lol. First time xda logged me out and I lost the whole thing. Would be nice if there was a app (for windows) that would copy any text written in any dialog box automatically (just like autofill feature but for larger text fields) and keep updating it on the fly. For example, text in the Title box gets copied in the app after each character punched with 5 histories. Same goes for Message box. In case of Firefox crash or accidental refresh or like in my case getting logged out, there is text stored in another app that can be retrieved. I am sure there are solutions used by devs. as they do tonnes of coding. Please share you thoughts.
Also please feel free to give any advice regarding right category, title, tags etc. so that this thread is organized and easily searchable.
I am searching for solution too. Some professionals are needed to check on these:
1. https://github.com/jurihock/voicesmith solving to step between the mic & audio feed processing
2. `system/ect/mixer_paths.xml` file can be hacked (maybe alter in some devices)?
3. This is just for more understanding: https://developer.android.com/guide/topics/media/sharing-audio-input
Did you figure it out? Are there not any Chinese or Russian apps that will bypass this restriction?
Credit due:
Pollito788
https://forum.xda-developers.com/ax...al-lineageos-14-1-zte-axon-7-t3545679/page184
In lineage OS, go into settings, accessibility, and check "mono audio".
Now both channels will play through the TOP AND BOTTOM speakers.
Combined with the "Eliminate Media Audio Distortion" guide, the speaker problem on LineageOS for the Axon 7 has effectively been solved. (95%)
https://forum.xda-developers.com/axon-7/how-to/guide-zte-axon-7-cm13-los14-1-eliminate-t3548598
The problem is: if you enable mono-downmixing, it is also enabled for the headphone output, isnt it? It would be necessary to automatically enable it when the speakers are used and disabled when you plug in your headphones...
Is it possible to do (without energy consumption)?
Or is there any other way?
EDIT: With V4A it's already possible: https://forum.xda-developers.com/ax...-eliminate-t3548598/post71252830#post71252830
As you can see on the poll, this method is a loose band-aid at best.
Having to listen to Mono Audio is a hotfix at best. Viper4Arise does the same. Limiting the gain does not fix the calibration issues.
Someone on the ZTE forums hooked up a scope on the AUX output and read some hefty interference and heavy distortion with LOS.
Remember that when you switch to headphones, you have to revert to stereo output. For people who bought this phone mainly for the capable DAC/Amp combo, LOS is simply not an option currently. Not to worry since you have a couple of stock alternatives.
While being a lengthy process (actually going through an official R&D associate etc.), I'm sure that LOS will be tuned eventually so we can get great sound on alternative ROMS
Just my 2 cents, this fix can be helpful for some people
I upgraded from a V35 to a V60 and an very happy with the audio quality.
However, I listen to classic rock. Now I find that either Android, LG or Verizon has limited the LG V60's volume to 75% while using plug-in headset earphones and/or plug-in earbuds.
After two months of phone calls, in person visits to Verizon and web seatching there is nothing that can be done from a user perspective, that I can find. I've tried a couple of "volume booster" apps with zero success.
I've found this limitation using LG's earbuds, every set of earbuds I own, and, with Beyerdynamic 770's (250 ohm, Note, after reading reviews, I assumed the V60 would drive those 770's w/o issue). The limitation also exists played thru a NobSound DAC.
I've seen mention of "Poweramp" in other audio related threads, used in the thread to boost output from 48khz to 192khz, which should be amazing. But there are several similarly named apps...my guess is the aforementioned app is "PowerAmp Full Version Unlocker", for $5.49. Would this help volume as well?
Is there anyway to defeat this limitation?
Even a 10% increase would be satisfactory.
What if you turn on the DAC setting in the quick-settings? I'm sure you already thought of that.
svetius said:
What if you turn on the DAC setting in the quick-settings? I'm sure you already thought of that.
Click to expand...
Click to collapse
Yes, no effect.
I'm using the Neutron Player app which has a 'use on-board device's volume control' option you could turn off & use your DAC. I did this to use my tablet with an iFi DSD nano and the next time I used the [stupid] USB C to 3.5mm dongle without the DAC, it nearly blasted my ears. So if you try it, be careful when you're not using an external DAC.
The app is a pain to setup but that's because, in part, it has so many configuration options. Think Android vs iPhone taken up several notches. Once it's setup, you'll get used to the GUI/Ux itself which I did not find intuitive. Anyway, there's a free eval. version if you wanted to check it out.
Mojo1114 said:
Yes, no effect.
Click to expand...
Click to collapse
Hmm....I know this kind of sucks, but how about an external DAC? Those usually work via USB C and can provide very loud, very clean output.
Op is using a DAC.
The limitation also exists played thru a NobSound DAC.
yep_nexus said:
I'm using the Neutron Player app which has a 'use on-board device's volume control' option you could turn off & use your DAC. I did this to use my tablet with an iFi DSD nano and the next time I used the [stupid] USB C to 3.5mm dongle without the DAC, it nearly blasted my ears. So if you try it, be careful when you're not using an external DAC.
The app is a pain to setup but that's because, in part, it has so many configuration options. Think Android vs iPhone taken up several notches. Once it's setup, you'll get used to the GUI/Ux itself which I did not find intuitive. Anyway, there's a free eval. version if you wanted to check it out.
Click to expand...
Click to collapse
Thanks. It seems an app will be the solution. And I've seen Neutron Player mentioned in other threads.
To repeat your method as I understand it: Neutron allows me to turn off the phone's volume (which will bypass the 75% limitation) and send the raw signal via Neutron to my external DAC which will ultimately control volume?
And Im a bit confused by your advice to use caution the next time I plug in my phones directly into my phone with my wired headphone's 3.5 jack? That implies the phones limits are permanently bypassed? Am I understanding you correctly?
I'm also curious over PowerAmp app as well. Not being tech savy, intuitive is a plus.
And again, many thanks for taking the time to comment!
Mojo1114 said:
To repeat your method as I understand it: Neutron allows me to turn off the phone's volume (which will bypass the 75% limitation) and send the raw signal via Neutron to my external DAC which will ultimately control volume?
Click to expand...
Click to collapse
Correct!
Mojo1114 said:
And Im a bit confused by your advice to use caution the next time I plug in my phones directly into my phone with my wired headphone's 3.5 jack? That implies the phones limits are permanently bypassed? Am I understanding you correctly?
Click to expand...
Click to collapse
Right, so Neutron has another setting (and it could be Android too, not sure), that starts the app automatically when you connect headphones. Or at least it offers to start, and you can easily accidentally tap it when it pops up. I wanted to bypass my tablet's volume when I connected my external DAC, since that has a hardwire volume control so I enabled that 'bypass device's volume' control. However, later when I went to use my tablet to watch a quick video I plugged in my every day earphones, probably tapped Neutron player unintentionally, and it started playing at max volume. On my V60 phone that probably isn't super loud, especially from what you're saying. However on my Samsung tablet it was screaming loud. It happened long enough ago that I've forgotten the exact circumstances.
Anyway, that control doesn't permanently bypass the phone's volume control. You can shut it off, and I can't say for sure if it has any affect on other apps. I only made that mistake once. Later I realized the volume in Neutron was loud enough with my DAC connected. The internal volume may well be bypassed automatically. I guess I need to listen to some music again through this rig soon to test it out. Unfortunately for both of us that won't be tonight.
Mojo1114 said:
I'm also curious over PowerAmp app as well. Not being tech savy, intuitive is a plus.
And again, many thanks for taking the time to comment!
Click to expand...
Click to collapse
I haven't used PowerAmp since it first came out in the early 2000s with the advent of MP3s. But chances are it is more intuitive than Neutron Player. I'm a professional audio engineer by trade & tech nerd, yet still get caught up in the menus and different screens all the time. If it didn't sound so good and stream DSD files right along side PCM audio, and stream my entire music collection from my NAS, I'd kick it right to the curb.
My pleasure. Hope this helps! Cheers.
Any real solution for this yet? I think it can be bypassed with root access to the build prop or the sound mixer found in system/vendor/etc.
Any rooted user care to check?
Are you saying this can be fix in build prop?? Which entry?
I'm about to root my phone. Have already BL unlock it.
hooutoo said:
Are you saying this can be fix in build prop?? Which entry?
I'm about to root my phone. Have already BL unlock it.
Click to expand...
Click to collapse
It should be in one of those two files. Most likely the sound mixer file though. I don't know exactly how the entry will look but i would guess something like "headphone volume limitations = max 75"
Change 75 to 100 save and reboot.
Again this is all just guesswork I'm not a developer and haven't rooted this particular phone yet and likely won't unless we get a custom aosp.