[Q] Hack to adjust car dock media volume? - Motorola Droid 4

I have the OEM Motorola car dock which allows for audio output via USB. When connected this way, the media volume is locked (at ~80%, if I had to guess) and the phone's volume buttons won't do anything; I have to control the volume using my car stereo's volume knob. Unfortunately when the media volume on the phone is higher than ~70%, my car speakers experience a lot of distortion.
Is there any way to lower the media volume on the phone when audio is being output via USB?
Thanks

Questions go into the Q&A, not the development thread.

SGMD1 said:
I have the OEM Motorola car dock which allows for audio output via USB. When connected this way, the media volume is locked (at ~80%, if I had to guess) and the phone's volume buttons won't do anything; I have to control the volume using my car stereo's volume knob. Unfortunately when the media volume on the phone is higher than ~70%, my car speakers experience a lot of distortion.
Is there any way to lower the media volume on the phone when audio is being output via USB?
Thanks
Click to expand...
Click to collapse
There might be a hackish way to do this.
Googlage tells me that this is a known Android bug (or feature) stemming back to Froyo. The bug report even includes a snippet of the code responsible, in an AudioPolicy system library:
Code:
hardware/msm7k/libaudio-qsd8k/AudioPolicyManager.cpp:258
// in car dock: when using the 3.5mm jack to play media, set a fixed volume as access to the
// physical volume keys is blocked by the car dock frame.
if ((mForceUse[AudioSystem::FOR_DOCK] == AudioSystem::FORCE_BT_CAR_DOCK) &&
(stream == AudioSystem::MUSIC) &&
(device & (AudioSystem::DEVICE_OUT_WIRED_HEADPHONE |
AudioSystem::DEVICE_OUT_WIRED_HEADSET))) {
volume = CAR_DOCK_MUSIC_MINI_JACK_VOLUME_MIN;
}
If that same logic is tied to the car dock USB audio, that would explain your observed phenomenon. Certainly, the comment "set a fixed volume as access to the physical volume keys is blocked by the car dock frame" is a little bit short-sighted. I guess car docks would always come in a form factor that blocks all manner of volume control mechanisms.
If someone who's on a more friendly basis than I with the Gingerbread codebase can verify that the same code is in the 2.3 version of the same AudioPolicyManager.cpp, we might be able to patch the code and compile a more dock-friendly version of the system library.
Short of recompiling the source, you might try the pre-compiled version of libaudiopolicy.so at this page, but since that's two years old I'd be skeptical. Maybe someone else has a more modern version. But I, paranoid as I am, would probably prefer to go the source code route. (I don't take candy OR pre-compiled system libraries from strangers.)

Related

HTC HD2 Stereo Headset with Music Controls RC E160

HTC HD2 Stereo Headset with Music Controls RC E160 (3.5mm,Black)
Product Code: 188898
Our Price: £12.99 (11.30 exc.) Expansys
Availability: Normally less than 5 days
We have no confirmed lead time for this item - call for more details.
Add to basket
Description
Keep your HD2 in your pocket with the HTC RC E160 Music Remote Control. The Music Remote Control lets you easily answer and make calls and play back your music by simply pressing a button. Clip the stylish Remote Control to your clothing and you have music playback and phone controls at your fingertips. Also, with the built-in FM antenna giving a signal boost, listening to FM radio stations is crystal clear (see note below).
Key Features
- The RC E160 includes 3.5mm stereo earphones or use your own!
- Voice dial support
- Last number redial support
- Volume buttons
- Music control buttons
- Play/Pause button
- Forward/Backward buttons for music playback or FM channel selection
- Phone buttons
- Send button to answer calls, call waiting switch or redial last number
- End button to end a call or use voice dial
- Mute button to silence ringtone when an incoming call comes or mute the microphone during an ongoing call
- Hold switch to lock/unlock the remote control
- Two colours: Black or white
Note: Only applies to devices with integrated FM Radio function
Technical Details
Support FM antenna function (it's compatible with HTC devices which have FM radio function)
3 switch buttons for listening to miusic and answering calls
Standard 3.5mm audio jack
Built-in Microphone featured noise reduction
Shipping Weight: 0.12kg
This is misleading as you cannot use the remote with your own head phones as stated in the key features
wonsanim said:
HTC HD2 Stereo Headset with Music Controls RC E160 (3.5mm,Black)
Product Code: 188898
Our Price: £12.99 (11.30 exc.) Expansys
Availability: Normally less than 5 days
We have no confirmed lead time for this item - call for more details.
Add to basket
Description
Keep your HD2 in your pocket with the HTC RC E160 Music Remote Control. The Music Remote Control lets you easily answer and make calls and play back your music by simply pressing a button. Clip the stylish Remote Control to your clothing and you have music playback and phone controls at your fingertips. Also, with the built-in FM antenna giving a signal boost, listening to FM radio stations is crystal clear (see note below).
Key Features
- The RC E160 includes 3.5mm stereo earphones or use your own!
- Voice dial support
- Last number redial support
- Volume buttons
- Music control buttons
- Play/Pause button
- Forward/Backward buttons for music playback or FM channel selection
- Phone buttons
- Send button to answer calls, call waiting switch or redial last number
- End button to end a call or use voice dial
- Mute button to silence ringtone when an incoming call comes or mute the microphone during an ongoing call
- Hold switch to lock/unlock the remote control
- Two colours: Black or white
Note: Only applies to devices with integrated FM Radio function
Technical Details
Support FM antenna function (it's compatible with HTC devices which have FM radio function)
3 switch buttons for listening to miusic and answering calls
Standard 3.5mm audio jack
Built-in Microphone featured noise reduction
Shipping Weight: 0.12kg
Click to expand...
Click to collapse
Hi,
I finaly created my own headphones withsome old headphones from Sony and the RC E160
Watch the picture
chrcad said:
Hi,
I finaly created my own headphones withsome old headphones from Sony and the RC E160
Watch the picture
Click to expand...
Click to collapse
so did you dismantle the control unit and solder into there, or cut the cable and splice it?
I dismantled the control unit...
chrcad said:
I dismantled the control unit...
Click to expand...
Click to collapse
Ok.. and much neater than mine
I managed to rip one of the buds off mine this morning (don't ask) so was forced to solder some other buds on, my soldering skills aren't as good as yours (and I don't have a fine tip on the iron)
workman<>tools etc
Does work a treat though, and now the earpieces don't fall out of my ears while riding to work ..
duplicate post
Here a bigger / better picture....
Isn't this the original headset that comes with the device ? If so how do control the volume with it ? I think i missed something there ...
Nheryvra said:
Isn't this the original headset that comes with the device ? If so how do control the volume with it ? I think i missed something there ...
Click to expand...
Click to collapse
Yes that is already in the package.
The fine thing is that you can put any standard 3.5mm Audio Cable in it as antena if you want to use your phone as radio without headset
scilor said:
Yes that is already in the package.
Click to expand...
Click to collapse
How do you set the volume with it then ? The specs say it's possible ...
Volume controle
hay all
Is the RC E160 the headset that comes with the phone?
If it is then I can't find the key feature: "volume butten". can I turn the volume up and down somewhere on the remote?
Are there any headset where I can turn the volume up and down while I hear radio whithout having to take the phone out of my pocket?
thanks for any replies
ckraft
chrcad said:
Here a bigger / better picture....
Click to expand...
Click to collapse
Thanks for the picture, this looks doable, even for me. Can you please explain what you have done? I can see one wire soldered to the left and two to the right?
Connection diagram
Can you explain which cable does what? I want to modify the earphones to make them an Aux cable with controls to install in my car.
Regards
for alternatives without hassle, but lesser control
audio-technica.com/ cms/ accessories/ 14657fdf36269d0c/ index.html
Sander said:
Thanks for the picture, this looks doable, even for me. Can you please explain what you have done? I can see one wire soldered to the left and two to the right?
Click to expand...
Click to collapse
Hi,
some weeks ago I wrote a Wiki entry for it. See
http://forum.xda-developers.com/showthread.php?t=613732
Works verry nice...
I havent found a description how to use the headset though...
Regards
I got one of these for about £17:
http://www.amazon.co.uk/Altec-Lansing-T515-Portable-Bluetooth/dp/B000R6QAHO/ref=sr_1_1?ie=UTF8&s=electronics&qid=1264894776&sr=8-1
Rechargeable bluetooth headphones + handsfree with media and phone controls to save me getting the HD2 out my pocket, the recharging station doubles as speakers, so I can walk home from work with my tunes on, plug the portable bit in, and listen through the speakers. Genius.
Chris
Are there also wired remote controls with a mic. and a 3.5mm output for some earbuds?
Cause i the ones from HTC are rubish, but I do have a set sennheisers (with a short cord), but no remote control or mic..
Hi chrcad,
I tried your modification and it worked like a charm...though I must say soldering was not easy and I had to do it 3 times till I got it right. I put a pair of Koss inearphones...much better!
Thanks
Italo
"- Hold switch to lock/unlock the remote control"
What switch? seems like ive locked my remote control since i cant use handsfree buttons anymore. Ive tried to hold all the buttons in different combinations and nothing seems to activate them again. Srsly Im pretty pissed by now since theres no user guide at all even pointing out that u can deactivate/activate and Im pretty sure I didnt broke it.

[Q] Good audio quality in dock?

I have a google car dock for my nexus one and I hook the audio through the car stereo with a 3.5mm audio cable. When it is plugged into the dock the sound is very low and the quality is terrible. If I just pull it out of the dock everything is back to normal -- this happens with all apps.
What do I have to do in order to prevent the phone from doing this while docked?
you have the exact same setup as i do and ive seen this as well, i think there is something that makes the audio play at a different volume specifically for when it is docked for some reason. im on cm6.1.1 and it seems a little better because i believe they tweaked something with it, i saw a checkin on cmsrc on twitter that modified some line with dock volume.
what ive found is if i set the media volume to about 5/8 or 7/8 then dock it the volume will make its "dock adjustment" and its up to where my car volume is from there, usually a little less distortion if the phones volume is a little lower than max. from there if i forget to set the media volume i will use the preamp slider in the poweramp music players equalizer to adjust.
i just wish the volume wouldnt change at all and the volume button on the side of the dock would change the media volume :\
side note: have you noticed that the voice search when docked doesnt pick up your voice very well? almost like the noise canceling mic is cancelling you out or something and other times it can pick up your voice great?
Actually the sound volume was solved by some user that re-compiled libaudio with the code that lowers the sound by 10db commented out. The problem I have is that the sound quality is so poor that it seems to be mono without bass.
It turns out that the crappy audio quality comes from Bluetooth being on. When I disable Bluetooth in car mode, everything is great. Unfortunately I can't figure how to make it disabled by default so I have to disable it everytime.
Sent from my Nexus One using XDA App

Headphone jack output

I bought this phone coming from an HTC Rezound. First thing I noticed, when using the aux headphone output to any device, car stereo, home theater, mini radio etc. The volume seems way quieter and I have to turn the volume of my stereo way high to compensate. Is this something anyone else has noticed? Perhaps the output voltage is cut back for battery life?
Sent from my XT1060 using XDA Free mobile app
did u see a "volume limiter" message pop up when u try increasing volume while plugged in?
another thing that affects the sound is default settings for EQ (Wired stereo tab),
make sure it's at Effects: Custom, Surround: Off, Eq: Off (or whatever u like).
Compared to my older phones, its volume output is normal.
DiNoise said:
did u see a "volume limiter" message pop up when u try increasing volume while plugged in?
another thing that affects the sound is default settings for EQ (Wired stereo tab),
make sure it's at Effects: Custom, Surround: Off, Eq: Off (or whatever u like).
Compared to my older phones, its volume output is normal.
Click to expand...
Click to collapse
Yeah, I'm rooted so I've turned off that notice, volume all the way up. I keep my eq off altogether. Maybe the volume is normal, maybe there was something to the beats audio in the Rezound after all.
Sent from my XT1060 using XDA Free mobile app
If you're rooted and have system write protection off, you can edit the file /system/etc/snd_soc_msm/snd_soc_msm_2x to suit your needs. There's various options for different speakers and line output volumes/levels.
carlz28 said:
If you're rooted and have system write protection off, you can edit the file /system/etc/snd_soc_msm/snd_soc_msm_2x to suit your needs. There's various options for different speakers and line output volumes/levels.
Click to expand...
Click to collapse
I have rooted my phone with mofo and I'm wondering if this fix can help fix the low output on my headphone jack as well. Do you just edit this file with a text editor only or do you have to push it back onto the phone with adb or whatever?
Sorry I'm kinda new

Bluetooth aptX with external speaker

Hi,
When pairing up with a Loewe Speaker2Go Bluetooth speaker using aptX my Sony Z3 compact defaults to max volume and the volume control is not configurable from the phone (I am aware this is a KitKat "feature"). The main problem is that this only allows a small scale on the speaker between no sound and very loud sound (3-4 volume presses). Has anyone experienced this kind of problem with other speakers and is there a solution? Thanks,
rimutituki said:
Hi,
When pairing up with a Loewe Speaker2Go Bluetooth speaker using aptX my Sony Z3 compact defaults to max volume and the volume control is not configurable from the phone (I am aware this is a KitKat "feature"). The main problem is that this only allows a small scale on the speaker between no sound and very loud sound (3-4 volume presses). Has anyone experienced this kind of problem with other speakers and is there a solution? Thanks,
Click to expand...
Click to collapse
I paired a Bluetooth Stereo Headset, LG HBS-800, has aptX. When they are connected, I can press the volume rocker on the Z3C and it'll pop up a Bluetooth Volume. My headset has its volume control and works independently.
Yeah, same on my Sony Bluetooth Headphones. Volume control via volume rockers both on phone and headphones (independantly).
My SuperTooth Disco 4 Wireless Portable Bluetooth and NFC Speaker when connected, I get a Bluetooth Volume slider. Apparently it uses the aptX protocol too.
No issue here with the Definitive Technology Cube. NFC, Throw, AptX, and Bluetooth all works together in harmony.
It's a bit of a shame for the OP as that item is pretty expensive that it does that, when much cheaper speakers don't. Odd.
It is a shame as the speaker is very good and worked perfectly with earlier versions of android. Based on the compatibility list it has not been tested with 4.4+ though... Based on the previous replies I guess it is not a sony problem as other Bluetooth aptx devices can still be controlled from the phone. For the devices this works with is the volume in sync on the phone and speaker?
My speaker is controlled entirely by the phone, it has no volume controls itself.
Ok, this seems to be an issue with the Loewe speaker and not the Z3C. I've just been to an hi fi store and tried pairing the phone with a number of Bluetooth aptX speakers, including AudioPro T9, AudioPro T10, Marshall Stanmore and the Sony SRS-X9 and with all these devices I could control the volume from the phone as well. Will check one more thing on the Loewe when I get back home - it had phone and media pairing on (not just media like the other speakers) so maybe this is the problem. If not, looks like the firmware on the Loewe does not support Android 4.4+.
I am having a similar issue but it presents itself when going above the 4th notch on the Bluetooth volume on my XZ3C. Volume goes from 0% to %15 to 30% to 80% to 60% and 70%. When my computer connects to the same bluetooth audio dongle it has a smooth range. I suspect it is a problem with the XZ3C protocols that interfere with certain bluetooth devices and not a hardware problem.
I have the same issue with my JBL speaker. I can't change the volume on the speaker without the Bluetooth volume on the phone rising or reducing. It seems that there isn't any independent control using my z3 compact but if I pair it with my LG g2, it works independently.
Same here with the Jensen Scandinavia Buddy. My Z3C cannot control the volume but my Galaxy S2 running Cyanogenmod at 4.4.4 can.
Still an issue after upgrading to Lollipop.
the good, the bad and the funny
Xperia Z3 Compact, Android 5.0.2
I connect my phone to a Philips BTB 7150 home audio system.
- the phone does not change the volume of the audio system upon connect (good)
- i cannot control the volume of the audio system through the phone's volume rocker (bad)
- when i change the volume directly on my audio system whilst connected with my phone, the phone shows the Bluetooth Volume popup and the slider moves in sync (funny)
So there seems to be some kind of control connection, but only one way.
On the other hand: no problems with iOS devices here. When connected to an iPhone the phone controls the system's volume and system volume changes are reflected on the phone's volume setting.
wenigtelefonierer said:
Xperia Z3 Compact, Android 5.0.2
I connect my phone to a Philips BTB 7150 home audio system.
- the phone does not change the volume of the audio system upon connect (good)
- i cannot control the volume of the audio system through the phone's volume rocker (bad)
- when i change the volume directly on my audio system whilst connected with my phone, the phone shows the Bluetooth Volume popup and the slider moves in sync (funny)
So there seems to be some kind of control connection, but only one way.
On the other hand: no problems with iOS devices here. When connected to an iPhone the phone controls the system's volume and system volume changes are reflected on the phone's volume setting.
Click to expand...
Click to collapse
Xperia Z3 Compact D5803, Android 5.0.2 (Nordic stock ROM, no hacks)
Home hi-fi system with Philips BT adaptor: phone can control the BT audio volume output (as expected)
Home mini hi-fi system: phone can control the BT audio volume output (as expected)
Car BT audio system: phone can control the BT audio volume output (as expected)
JBL Charge BT speaker: phone cannot control the BT audio volume output (oops) ; I need to use the speaker's volume control
So, quite a few gadgets work well, but in fact my JBL speaker suffers from the same problem, which I never realised before.
Is it a speaker BT standards problem ?
Or is there something in the phone's BT implementation that needs refining ?
Same Problem here
I have the following problem:
I use the Z3 compact with a Sony BM-10 BT audio receiver. When a make a call with my BT headset which is not set to maximum volume the volume of the music is set to maximum from time to time afterwards. Also the volume slider shows the BT symbol or loudspeaker or the throw symbol randomly. I tried many things to solve this as pairing the BT devices again. Anyone any idea?

Automatic volume down issue when headset connected

Hello all,
I have seen this bug in many motorola phones. Pls find bug explanation below.
Everytime when i connect headset in 3.5mm jack, audio volume and ringtone volume goes down automatically and even goes to DND mode.
I found temporary fix by playing some audio while connect headset jack, which avoids this issue.
Anyone knows permanent fix, please reply.
It happens only when I connect headset of samsung with other head set it works great
So I thik it is just compatibility problem
I was also having problems with a Sony headphones. What I did was to remap the volume down button for headphone.
I think it's not a bug but feature. The phone maintains the status of volume level differently for the case when headphone is inserted and when the headphone is not inserted.
I don't have evidence for this, though but as much as I've observed, that's how it works.
The issue is due to the difference in architecture of 3.5mm headphone pin the inner architecture of the Moto phone is built according to it's headsets.
When you connect other headset eg. Boat it hits the inner plate which is responsible to lower down the volume as in some headsets there is option to decrease and increase the volume.
Power button will also not work by the time as the phone senses that lower volume rocker is being pressed simultaneously.
Solution : Screen off your phone plug in the headphones screen on and use it.

Categories

Resources