[BOUNTY] USB Dock Music & Phone Audio - AOSP - Bounty: $711 - WORKS ON LIQUID 4.2.2

Search This thread

CZ Eddie

Senior Member
Sep 27, 2011
6,397
2,442
Austin, TX
[BOUNTY] USB Dock Music & Phone Audio - AOSP - Bounty: $711 - WORKS ON LIQUID 4.2.2

EDIT AS OF 5/5/2012: Hahah, just as soon as I finally update the thread, it's now working again. AS OF 5/5/2013, ANALOG USB AUDIO IS WORKING ON 4.2.2 AOSP LiquidSmooth, release 5/5/2013 "Official", linked below:

http://xdaforums.com/showthread.php?t=2039995



EDIT AS OF 5/4/2013: THIS FEATURE IS NO LONGER WORKING ON NORTH AMERICAN 4.2.2 AOSP PHONES

EDIT AS OF 11/15/2012: THIS FEATURE IS NOW WORKING ON ALL NORTH AMERICAN MODELS. THANK YOU CYANOGENMOD TEAM!!!!

****Please make your bounty donations to the CyanogenMOD team. You'll find the donate button at the bottom of their website:

http://www.cyanogenmod.org/


--------------------------------------------------------------------------

[BOUNTY] Enable USB Dock Audio out with Call Routing for CM10/AOKP - Currently $711.00
If you want to put money into the pot, just let me know and I'll add your name/amount to this thread. You hold onto your money until it's time to donate to the dev(s).

Why we want this:

--Car Stereo buffs like to dock our phones and use the better sounding USB audio out to our car stereos.
--Home sound buffs would like to be able to do the same.

FACT #1: When working properly, the USB audio sounds WAY better/cleaner than Bluetooth.

FACT #2: CyanogenMod/AOKP may never get the APT-X codec for HD quality bluetooth. And Bluetooth is occasionally flakey anyways (for different users).

What is needed is for a Dev to enable audio output to external speakers when docked. And for the call audio to be re-directed to external also. And for the call audio ringing to be able to start at low volume and ramp up from there, so it doesn't blast anyone's ears out.


One Dev who has already accomplished part of what we want (but for a different phone):
http://xdaforums.com/showthread.php?t=1473201


I was contacted recently by the iBolt car dock engineers. This is something they would like to get going also. So if you're a dev and want to tap into their resources, I can give you their contact info. Just to clarify, they did not request that I put up this thread. This is all my own doing.

I use the iBolt Dock:
http://xdaforums.com/showthread.php?t=1806888&highlight=ibolt

And I use Car Home Ultra which works fantastic as a dock app:
https://play.google.com/store/apps/...51bGwsMSwxLDMsInNwaW5uaW5naGVhZC5jYXJob21lIl0.



If you don't care about USB audio out when docked, then please don't post in this thread. I'd like to keep it clean for just the folks who care about USB audio. :)


CURRENT BOUNTY CONTRIBUTORS:


  1. Anonymous audio lover = $500
  2. CZ Eddie = $50 ---PAID
  3. atmospher1c = $25
  4. MethodX = $20
  5. luckychef28 = $15
  6. junglizste = $15 ---PAID
  7. crash822 = $10 --PAID
  8. Raul77 = $10
  9. shanghei = $10
  10. mRahmani = $10
  11. noy-z = $10 --PAID
  12. fish3191 = $10 --PAID
  13. BlackDino = $10
  14. baublitz = $5
  15. wes008 = $5 --PAID
  16. aaronshaw = $5
  17. Quasimodem = $1

First screenshot attached = AOKP and CyanogenMOD ROM that doesn't have the audio output when docked option. Or the option is greyed out.
Second screenshot attached = Stock ROM that DOES have this option.
 

Attachments

  • Dock_audio.jpg
    Dock_audio.jpg
    12.9 KB · Views: 2,311
  • docked.jpg
    docked.jpg
    27.5 KB · Views: 2,165
Last edited:

CZ Eddie

Senior Member
Sep 27, 2011
6,397
2,442
Austin, TX
Right on, thanks guys. :)
The more people who show interest in this, the more a CyanogenMOD or AOKP or other dev may look into it for us.
 

woodydog

Senior Member
May 19, 2012
523
116
OHIO
I would love for this to happen. Its the only thing I miss about my iphone.

Sent from my SGH-I747 using xda premium
 

CZ Eddie

Senior Member
Sep 27, 2011
6,397
2,442
Austin, TX
Seems kinda crazy that it's this difficult.

What about galaxy sound redirector? Does it do anything on our phones? Has anyone tried editing libaudio as the author of this app recommends?

https://play.google.com/store/apps/details?id=net.muteheadlight.dockredir&hl=en

Per the webpage you linked to:

*** Call Audio redirection is not possible.
Samsung does not provide a device configuration that has both the dock and a microphone enabled.

*** Dock not working with CM

Please have the CM dev supporting your model verify the correct mapping exists between the ROM audio device and the kernel audio path (commonly set in libaudio).

Example: DEVICE_OUT_ANLG_DOCK_HEADSET in ROM should map to the path PLAYBACK_EXTRA_DOCK in the kernel.

:)
That is part of the way to what we would love to have!
 

CZ Eddie

Senior Member
Sep 27, 2011
6,397
2,442
Austin, TX
If an ESTABLISHED dev wants to work on this, let me know and I'll send you a stock OEM Samsung dock with the integrated usb/audio dock cable.

Sent from my SGH-I747 using xda premium
 
  • Like
Reactions: baublitz

CZ Eddie

Senior Member
Sep 27, 2011
6,397
2,442
Austin, TX
Big news coming soon..

Sent from my SGH-I747 using xda premium

We have an audio lover who prefers to remain anonymous for the moment. This person has requested to pitch in $500 towards the bounty effort. THANK YOU!
He seems legit to me.
I googled him and didn't see any problems with his identity or online personality. :good:

If this doesn't help to show the dev's how serious we Android Audio freaks are about our music & docking & phone concerns, then I don't know what will.

But as we all know, it's not about total dollar but about how many people are interested in this. So hopefully more folks will come forward and pitch in $5, $15, $50 or $500. Whatever you feel comfortable with. Money is not paid out until a Developer comes up with a solution for us.

On a personal note, I've given up on AOKP for the time being. I just really need a working audio solution for my car, more than I need the AOKP flexibility and power and battery savings. So I went back to a customized TouchWiz ROM. And it sucks. :(
But at least I have nice quality audio that isn't flaky with the connection like Bluetooth often is.
 
Last edited:

ktoonsez

Inactive Recognized Developer
Nov 3, 2011
16,265
43,223
Tempe
So from what I am gathering from the OP, nothing is working at this time? Meaning, no music audio thru usb and obviously I know mic audio wont come thru?
 

CZ Eddie

Senior Member
Sep 27, 2011
6,397
2,442
Austin, TX
So from what I am gathering from the OP, nothing is working at this time? Meaning, no music audio thru usb and obviously I know mic audio wont come thru?

Hi Ktoonsez,

I love your kernels! Thanks for asking about this feature.

You're correct. When you go into Android settings, then click on "Dock", you only see the option listed in my OP screenshot.
So no music (or phone) audio comes out the USB port.

I'm attaching a screenshot to this post that shows you what the option looks like in a ROM/kernel combo that supports this feature, like the OEM touch wiz does.
 

Attachments

  • docked.jpg
    docked.jpg
    27.5 KB · Views: 360
Last edited:

ktoonsez

Inactive Recognized Developer
Nov 3, 2011
16,265
43,223
Tempe
Hi Ktoonsez,

I love your kernels! Thanks for asking about this feature.

You're correct. When you go into Android settings, then click on "Dock", you only see the option listed in my OP screenshot.
So no music (or phone) audio comes out the USB port.

I'm attaching a screenshot to this post that shows you what the option looks like in a ROM/kernel combo that supports this feature, like the OEM touch wiz does.

Thanks :good:. One more question, it does work on my TW kernel right (the music stuff), so I at least know I have a good kernel base?
 
  • Like
Reactions: CZ Eddie

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    Hi everyone.

    I'm currently working on this along with Araemo and bbelos. None of us even realized there was a bounty for this before today. You can track our patches here:
    http://review.cyanogenmod.com/#/c/25281/
    http://review.cyanogenmod.com/#/c/25274/
    http://review.cyanogenmod.com/#/c/25279/

    Just to give you an update of where we are at. It basically works, but we are trying to decide how to handle phone call audio. I think what we are going to do is have the speakerphone toggle jump between using the dock, and using the speakerphone speaker. Currently, we can do one or the other, but only in the code. The toggle isn't doing anything yet. Once that's all done, we still have to get it verified and approved.

    So, hopefully none of you have to wait much longer. It is nice to use my car dock again. :laugh:
    5
    [BOUNTY] USB Dock Music & Phone Audio - AOSP - Bounty: $711 - WORKS ON LIQUID 4.2.2

    EDIT AS OF 5/5/2012: Hahah, just as soon as I finally update the thread, it's now working again. AS OF 5/5/2013, ANALOG USB AUDIO IS WORKING ON 4.2.2 AOSP LiquidSmooth, release 5/5/2013 "Official", linked below:

    http://xdaforums.com/showthread.php?t=2039995



    EDIT AS OF 5/4/2013: THIS FEATURE IS NO LONGER WORKING ON NORTH AMERICAN 4.2.2 AOSP PHONES

    EDIT AS OF 11/15/2012: THIS FEATURE IS NOW WORKING ON ALL NORTH AMERICAN MODELS. THANK YOU CYANOGENMOD TEAM!!!!

    ****Please make your bounty donations to the CyanogenMOD team. You'll find the donate button at the bottom of their website:

    http://www.cyanogenmod.org/


    --------------------------------------------------------------------------

    [BOUNTY] Enable USB Dock Audio out with Call Routing for CM10/AOKP - Currently $711.00
    If you want to put money into the pot, just let me know and I'll add your name/amount to this thread. You hold onto your money until it's time to donate to the dev(s).

    Why we want this:

    --Car Stereo buffs like to dock our phones and use the better sounding USB audio out to our car stereos.
    --Home sound buffs would like to be able to do the same.

    FACT #1: When working properly, the USB audio sounds WAY better/cleaner than Bluetooth.

    FACT #2: CyanogenMod/AOKP may never get the APT-X codec for HD quality bluetooth. And Bluetooth is occasionally flakey anyways (for different users).

    What is needed is for a Dev to enable audio output to external speakers when docked. And for the call audio to be re-directed to external also. And for the call audio ringing to be able to start at low volume and ramp up from there, so it doesn't blast anyone's ears out.


    One Dev who has already accomplished part of what we want (but for a different phone):
    http://xdaforums.com/showthread.php?t=1473201


    I was contacted recently by the iBolt car dock engineers. This is something they would like to get going also. So if you're a dev and want to tap into their resources, I can give you their contact info. Just to clarify, they did not request that I put up this thread. This is all my own doing.

    I use the iBolt Dock:
    http://xdaforums.com/showthread.php?t=1806888&highlight=ibolt

    And I use Car Home Ultra which works fantastic as a dock app:
    https://play.google.com/store/apps/...51bGwsMSwxLDMsInNwaW5uaW5naGVhZC5jYXJob21lIl0.



    If you don't care about USB audio out when docked, then please don't post in this thread. I'd like to keep it clean for just the folks who care about USB audio. :)


    CURRENT BOUNTY CONTRIBUTORS:


    1. Anonymous audio lover = $500
    2. CZ Eddie = $50 ---PAID
    3. atmospher1c = $25
    4. MethodX = $20
    5. luckychef28 = $15
    6. junglizste = $15 ---PAID
    7. crash822 = $10 --PAID
    8. Raul77 = $10
    9. shanghei = $10
    10. mRahmani = $10
    11. noy-z = $10 --PAID
    12. fish3191 = $10 --PAID
    13. BlackDino = $10
    14. baublitz = $5
    15. wes008 = $5 --PAID
    16. aaronshaw = $5
    17. Quasimodem = $1

    First screenshot attached = AOKP and CyanogenMOD ROM that doesn't have the audio output when docked option. Or the option is greyed out.
    Second screenshot attached = Stock ROM that DOES have this option.
    5
    Hey guys,

    Just providing an update. 2 out of the 3 patches we need for this to work have been merged. The last patch we need merged is here: http://review.cyanogenmod.org/#/c/25274/

    Once that's in, you'll have a toggle under 'Sound'' that will allow you to turn on dock audio.

    I can't really give a timeline on when that will be merged, since it is entirely out of our control. All we can do is pester people higher up to take a look and get it merged. We all appreciate your patience.

    -Kyle
    4
    Guys, you can have Bluetooth or USB. Unfortunately there is no possibility to have both work at the same time.

    1) If you are listening to USB docked music, then you cannot have bluetooth turned on also. Because then you don't get any audio out of the USB (even on stock ROM).
    Wrong..

    The moment you turn bluetooth on your phone, it will disable all audio from the USB output. Heck, it even disables the internal speaker on the phone.
    Nope. Turning bluetooth on does not do this.

    Connecting a bluetooth A2DP sink does this. Now, when you turn on bluetooth, if your car supports A2DP, it probably auto-connects, and does this to you. However, in the bluetooth menu in android, under the settings for the paired device, you can disable 'media audio' for that device in the phone. Now, if you connect a bluetooth device that supports both Headset audio and media audio.. the phone only actually connects to the headset audio profile, leaving your media audio routing as if there was nothing connected to bluetooth. (My bluetooth earpiece 'supports' a2dp - but it's poor quality and mono, why would I want to use it?)

    2) Even if you could get both USB and bluetooth to work at the same time, let's say you're listening to USB music on your phone to your car stereo and take an incoming call, then what is going to tell your car stereo to automatically switch from AUX to Bluetooth? Nothing.
    Why wouldn't it? Bluetooth media audio (A2DP) is a completely different bluetooth service from bluetooth handsfree profile or headset profile. Your car stereo probably supports both A2DP and Handsfree Profile. If it didn't support Handsfree profile, you wouldn't be able to take calls through it. Handsfree profile allows the phone to indicate that there is an incoming call, and to activate the handsfree device when the call is answered. So.. bluetooth would tell your car stereo, as it is supposed to.

    Sorry bluetooth lovers, it just won't work. :)
    Let's try to keep this thread uncluttered and on topic. Many of us are subscribing to the thread.
    Well, hope you learned something with your subscription. :)

    Excuse a newbie question here...

    So are we looking for a solution for a particular dock (the iBolt or OEM version) or should this solution work for any USB input? My car stereo only has USB input (iPod, thumb drive, or usb hard drive) and I'm looking for a solution where I can plug the micro-USB into my SGS3 and the USB into the stereo and have it seen like a usb drive (or, even better, like an iPod where I can use the audio streaming apps on my phone).

    Is that what this is intended to address?

    Appreciate the feedback,
    phlepper

    This is for the samsung OEM docks (And work-alikes) that use a 619 kOhm resistor between MicroUSB pins 4 and 5 to trigger 'car dock' mode, and have the data pins of the MicroUSB connector connected to the right/left channels of the audio jack/cable.

    This does not hook up to a USB data port - the data pins are re-purposed to carry analogue audio instead of a digital signal. So you would use an OEM dock that lets you plug an 'aux cable' from the dock to your car stereo.. or you could make yourself soemething like this and plug the usb plug into your charger, and the 3.5mm jack into your aux-in.

    Bluetooth call audio is working still - with our patches, bluetooth devices still take priority for call audio, so those of you using it that way are still fine.

    However, we're trying to get this in CM10 proper, which means we are trying not to make anything work worse than it does currently. IE, if we made it so you couldn't use speakerphone in the dock, it'd be a regression, and I bet there are those who would see that as an issue. It should be fully fixable, but you gotta give us time to figure out how. :)

    On an aside, this thread educated me about the downsides to A2DP streaming from CM10. I'm really disappointed that the quality is so bad - I thought it passed 16bit/44.1khz PCM over bt, not some horribly lossy mess. I want to start looking into that next - I don't really like having a dock in the way in my car, so I've been looking into an A2DP-capable receiver, but I don't want the quality to be horrible.. but I am curious, does anyone know if CM supports the mid-level codecs bluez supports? Apt-X is one high-quality codec, but A2DP defines MP3 or AAC coding is allowed as well, both of which it looks like BlueZ supports (Howerver, no Bluetooth A2DP device is required to support MP3, AAC, or Apt-X, just "SBC", which is the ****ty codec) - I wonder if it's really just up to what codecs your device supports?
    3
    in your opinion how difficult would it be to provide the USB audio functionality (for use with external DACs) that is present in the TouchWiz ROM?

    As far as I'm aware, that should work without issue in CM10... but I've never tested any USB-OTG functionality (I have no USB-OTG adapters), so I don't know that for sure. Are you saying that you've tested it, and it doesn't work?

    Edit: Give it a try with the latest nightly, if you could.. it looks to me like it might just work right now. in which case, I HOPE our fix for dock audio doesn't break it.. but from some quick googling, it looks like it might have some code overlap that might cause us grief.