yashsingh1/xdaforums huggingface dataset:
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Risingsunn:
My Friend not only is this a cross carrier issue, it's a cross ROM issue, every non-Samsung based ROM (CM, AOSP, AOKP,MIUI) is lacking this feature. AND it is also a cross phone issue! I had this feature on my GS2 until I changed from Samsung to AOKP ROMs. I lived without it, and was so hoping to get it back when I upgraded to the GS3, but to my dismay when I got the GS3 and installed the AOKP ROM I loved I discoverred that it was missing on it too!! So spread awareness that there are lots of people on all these phones, that would LOVE to have this feature back! Just look through any of the threads on these ROMs and you will see people asking if this is working yet.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] luckychef28:
Oddly enough, I remember in early AOSP builds (I think jellybro?) that Sound Dock Redirector worked. Then it just stopped for some unknown reason.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] CZ Eddie:
Part of what we want (usb music audio when docked) has already been done for some phones:

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

I'd be happy to at least get that. :D

Icing on the top would be phone audio also of course.

If anyone wants me to get involved in developing for the GSIII, just let me know and I'll be happy to risk my phone for testing. And even send you a dock to keep!
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] ktoonsez:
Remember not to get side tracked on the kernel code, as we discussed, my kernel already does this stuff on my Touchwiz version and all that same code from TW is in my AOSP kernels too. The key here is to make the AOSP ROMs use this kenrel capability :good:
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] mRahmani:
I'm in for $10, currently running CodefireX/CM10 and would LOVE to have this feature back in my car.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] atmospher1c:
https://play.google.com/store/apps/details?id=net.muteheadlight.dockredir&hl=en

http://wetc.muteheadlight.net/android/dockRedirCM.html

"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."
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] luckychef28:
So the kernel is sound which is great. I remember some time ago a Dev or two mentioning that every time they tried to implement this it broke something more important in their ROM, eventually falling to a "we'll try and get to that once EVERYTHING ELSE is set". As I said before, very early versions were able to get it working if you used the redirector app,but that capability disappeared along the way. Phone audio, in my opinion, is a long shot as they phone has never been capable. Why, Samsung? Why?

Does anyone know what gets messed up when trying to implement this?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] wes008:
I don't know if this would be easier to do, but if we could have this not in docked mode as well as docked, having a portable hi-fi audio setup would be easier, rather than carrying a dock around.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] MethodX:
Is this what they are working on at the moment?

http://review.cyanogenmod.com/#/c/25274/
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] atmospher1c:
looks like so! hard to tell though.

can anyone clarify whether "dock USB audio" includes just a normal USB DAC?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] CZ Eddie:
I don't know, I have not yet researched DAC's.

I'm giggity. Thank you.

Looks like we may owe some $$$ to Araemo if he's able to get this added to CM10!!! He's working on it, it looks like. Waiting for approval. This means they need to make sure it doesn't break anything else.

Does anyone know if this WOULD go into the ATT CM10 nightlies if it's approved? Or is this for a different phone build?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] atmospher1c:
Yes. MSM8690 = qualcomm s4 snapdragon. however, it isn't looking like these patches will be merged.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] noy-z:
Araemo just got it working on JB for the Infuse, a phone that's already over a year old which ATT never even officially updated to Gingerbread. I'm glad he has both phones that I also have. LOL. Count me in for $10.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] CZ Eddie:
Well, that's encouraging news (Infuse).

I just flashed the 10/24 CM10 nightly and there were no USB Dock Audio fixes in it.

None were expected, but I was hoping for a nice surprise. :)
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] CZ Eddie:
Looks like some patches were abandoned and some are still in "open" status, under review.

Nothing but some Dock Bluetooth audio fixes have been merged yet though.

Which isn't saying much since some patches have been in "open" status for over a year. :fingers-crossed:

I'm just glad the CM10 has shown an interest in this feature. :good:
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] araemo:
No, samsung includes a feature that remaps the data pins in the USB connector to audio r/l channels at proper levels to be passed through to a 3.5mm TRS jack.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Phalangees:
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:
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] luckychef28:
Thank you, I've been following the work for a bit more and I'm optimistic. Phone audio would be great, but if you can only get media I'm sure most here would be extremely happy. Either way, one or both, you can have my money if you get it working.

Thanks again.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Wired_In:
I don't know about other systems but my car puts phone calls over Bluetooth , so just dock audio out would work in my situation.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] junglizste:
Same here.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] fimbulvetr:
Same for me. I just want audio over USB, not phone. I don't think you should have to worry about phone audio, let android handle that. If there's a bluetooth connection and a BT device capable of handling phone and android has been configured to use said BT device as a phone speaker/mic, then it should use it.

This is the way it worked for my Atrix 4G with my stock car dock. Those were the days...:)

You can give those other boys phone over USB, I don't care, but please don't prevent BT from being able to do phone in the aforementioned scenario. Add $10 to the bounty from me for this condition.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Raul77:
just Audio over USB is what i like as well, phone can go over Bluetooth.

Thanks for all the help guys.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Polymira:
I just got my dock today and am dying to use it (installing it in my car, to replace the iPhone dock I used previously). Audio out is a must, but phone calls can go through speaker/bluetooth. I just need my podcasts/music to go through the dock audio.

AOKP JB5 here, dying to get this working...
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] phlepper:
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
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] fish3191:
I know a lot of people just want the media audio over USB, but I thought the bounty is for both phone call audio and media audio over USB. What about people who don't have bluetooth capabilities(I am one of them)? If I am not mistaken, don't the CM10 devs already have both working? Why not let them finish the toggle and then we get the best of both worlds. This is just my opinion, but If both work, I'll gladly put in $10.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] CZ Eddie:
EDIT: Seems I'm kinda or mostly or 100% wrong. lol.

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

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). 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.

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.

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.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Raul77:
this is not true, on my car, when i get a call it shows on display if i answer the stereo switched to BT. I can be listening to FM/ XM Radio or CD whatever and if i answer the call it switches to that.

Cheers.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] atmospher1c:
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?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] araemo:
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.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] noy-z:
Araemo, I've become acquainted with your work since you and Entropy were tackling the Bluetooth issue on CM9 for the Infuse. Then you were able to get dock audio working for CM10 (for the Infuse). Although I've upgraded to a GS3, I still use my Infuse as a PMP because of the Wolfson DAC and Voodoo. Your work has allowed me keep the phone's software at the latest and greatest.

I'd like to show my appreciation by a small donation... not much, just something to say thanks. However, I can't seem to find a way to do that. I've already promised some pot money in this bounty which I hope will go to you and your comrades but I'd like to at least pay for the work I've been using on my Infuse. Thanks again!

Oh, sorry for the off-topic. I feel like a groupie! LOL!
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] atmospher1c:
it didn't use to work, but i'll give it a go!

edit: just tested with 10/29 nightly. doesn't work. i'd be happy to send you a USB-OTG cable for developing/personal use, they're dirt cheap
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] crash822:
USB-OTG works on aokp.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] atmospher1c:
USB-OTG w/ external DAC?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] crash822:
No idea.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] atmospher1c:
Just tested USB-OTG w/ external DAC on AOKP, doesn't work. Shame it works in TouchWiz but not in CM10.

edit: just a note, CM10/AOKP/AOSP don't even recognize external DACs as a USB device like TouchWiz does.. They simply don't configure or interact with them at all currently.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] araemo:
Honestly, most of the work for dock audio on the infuse was entropy's, I just forward-ported it to CM10. I had REALLY hoped that that experience would help here, but the audio libraries are so completely different between the infuse (exynos, with a wolfson codec) and sgs3 (krait, with the built-in snapdragon codec) that it really wasn't any help at all. ;P
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] :
I'll donate $5 if this gets off the ground.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] luckychef28:
Bump
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] CZ Eddie:
There has been activity on this "development" as recently as yesterday. :good:

http://review.cyanogenmod.com/#/c/25279/

We all just have to be patient and not ask for ETA's or ask anyone to hurry up.

Just because we've decided to donate, doesn't mean these guys are actually working for money. They do it to have fun and share their smarts with others. :cool:
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] luckychef28:
I didn't bump it to say "hurry up" or anything of the like. I bumped it to 1. help keep the thread fresh and 2. perhaps there are others interested who haven't seen this. I would never ask a dev for an ETA. It seems we'll have approval in a relatively short time.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] baublitz:
Yeah that's the impression I got. Just trying to raise awareness and keep it current. We all know etiquette here, no "hurry ups".
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] noy-z:
So I just noticed the dock option after upgrading my ROM (ParanoidAndroid 2.53) but it really doesn't do anything. Audio is still routed through phone speakers. I'm guessing its just a placeholder for what's to come?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] CZ Eddie:
Aww, snap. Check out what just got "merged". :good:

Btw, here is the CM10 "nightly" thread where you can find info about where to download and how to install the latest CyanogenMOD nightlies.

I'm hoping we'll see this USB Audio audio option show up in the 11/6 CM10 nightly. It's probably too soon for that. But I'm crossing my fingers!
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] CZ Eddie:
Sorry guys, I just flashed the 11/6 CM10 nightly and if the option for USB audio when docked is in it, then it's either not working for me or I can't find it.

I tried both the stock CM10 kernel and also the 10/31 Ktoonsez kernel. With and without Car Home installed. And with my iBolt dock.

Weird thing is though, I do see the call-gain option which was merged at the same time as the dock audio.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] woodydog:
It will be so nice when this happens. Its the only thing I miss about iPhone
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] afitchguy07:
I agree. I have the Samsung media dock that has aux out port here at the office. I've been patiently waiting for this to roll out so i can stop using aux through top earphone port. I'm excited.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Phalangees:
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
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] mrjoshzombie:
I just got linked to this from the Drivelink thread. This is basically the missing link between Samsungs DriveLink working with CM10. I have my fingers crossed hoping it comes through!
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] s'pht:
Is this going to be available on all GS3 models or just the AT&T one?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] CZ Eddie:
Kyle, thanks for the update!!! :)

Since the patch submitted to CyanogemMOD github is "msm8960-common", I believe this means all S3's currently supported by CyanogenMOD team.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] araemo:
Yeah... the 3 patches required were all linked above in this thread. msm8960-common, d2-common, and hardware/qcom/audio.. all 3 of those are used by all msm8960 Galaxy S 3 variants that I know of. This obviously doesn't apply to the international one (though I have no idea if they ever needed this fixed, or if theirs never broke). So, given that Cyanogen went ahead and merged two of the three, and requested we change the 3rd based on another commit that was got merged, and we've done so, I have high hopes of getting it into CM10.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Raul77:
is this CM10 only? I just flashed AOKP by Task and Ktoonsez and even-though those changes were included i did not get USB audio

http://xdaforums.com/showpost.php?p=33810295&postcount=13495
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] woodydog:
I'm on 11-7 and its not working for me either
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Raul77:
ignore my post, looks like Task later on took it out since it was breaking compile

http://xdaforums.com/showpost.php?p=33853426&postcount=13684
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] BlackDino:
I'll put $10 in as well,

Looks like we are really close guys!
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] CZ Eddie:
It looks like the last piece of the puzzle that needs to be added, has just gotten the fifth (of six) "stamps of approval" from various members of the CyanogenMOD team.

Just waiting for that last approval! Then I'm "guessing" it will be merged at that point and we would see it available in the next CyanogenMOD 10 nightly for the Galaxy S3 (north american models). :)
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] luckychef28:
Merged! The final piece 25274 has been merged this morning. I can't wait to test the next nightly.

http://review.cyanogenmod.org/#/c/25274/
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] fish3191:
I have been checking everyday several times. Now the new nightly can't come soon enough.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] CZ Eddie:
Nice!!!

I just checked and the 2012-11-11 nightly doesn't have the options.

So I'll check for another nightly tomorrow. They don't do nightlies every single night and the "M" edition is coming out. So CyanogenMOD may have their hands full (more than usual) for a day or two or more?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] djthread:
I've come to understand that this thread is about getting ANALOG audio output via USB for use with particular docks.

Does anyone have any information on if anyone is working on enabling DIGITAL audio output via USB for use with a USB DAC? It seems that Samsung's Touchwiz roms as used with the S3 and Note 2 include this functionality, but as far as I know, it is nowhere else. I would go batty seeing this functionality added to CM...

Any thoughts on that?

Cheers!
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] fish3191:
Just checked the nightlies changelog for the VZW version and it says that the final change has been added.

http://cm10log.appspot.com/?device=d2vzw

Going to try out now and see if it works.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] CZ Eddie:
Aaraemo & Phalangees (Kyle), could you please let us know what paypal address we should be sending our bounty donations to?

Awesome, and thanks for the link. I didn't have that one.

I checked it for AT&T and it says the update that YOUR nightly got today, will be applied to the next nightly for AT&T! :)

TMO got theirs today and Sprint will get theirs in the next nightly like AT&T.

http://cm10log.appspot.com/?device=d2att

Sounds like it's almost time for me to start backing up all my apps, texts, personal settings for email/launcher/etc and wifi password and get ready to do a fresh wipe/install!!!! :good:
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] BlackDino:
Yes please post the PayPal info!
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] crash822:
Awesome. Hopefully task will be able to get the changes into his aokp ROM soon
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] fish3191:
I tried out the latest VZW nightly (11/11) and was unable to get usb audio out working. :( I do have the new dock tab in settings, but audio still routes through speakers instead. The phone does show that my dock is connected though. Hopefully it is just that the nightly didn't have everything merged yet (or I'm missing some toggle). I'll try out the next nightly that comes out to see if there are any differences.

Here is a screenshot of the dock tab showing that my dock cable is connected, though still no usb audio:
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] BlackDino:
Try the advanced device options
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] araemo:
You're looking in the wrong place. That menu was where the option was in ICS, but in JB, CM moved it.

Settings->advanced->sound.

The menu you're looking at is for bluetooth 'docks' which are different.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] fish3191:
That was the second place I checked after the docks tab. The vzw 11/11 nightly I have does not include the usb audio option in advanced->audio etiher. It only has the extra gain option. I guess I can assume that it wasn't actually included in 11/11 although the changelog said so. Looks like I will be looking forward to the next nightly like the rest of us.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Dx9:
Just to clarify, will this now work when I hook up the S3 with the supplied USB cable and plug it into the USB jack in the front of my Yamaha receiver?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] AsmodeusLore:
Same issue here. Using the 11-11 Nightly build for VZW, there is no dock option in the Settings>Advanced>Sound menu.

Edit: Doesn't seem to matter. The dock audio is working without needing to change any settings. That seems odd.

Edit2: It worked all morning, then I took my phone out of the dock to go to lunch. When I came back, it no longer worked. I can't explain it. Will try again with tomorrow's vzw nightly build.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] araemo:
No. This is for the samsung OEM car docks, or DIY car docks built as per this:

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

As for the setting in advanced settings.. if you previously cherry-picked our commits and installed your own build with the settings, the previous state of the checkbox is probably still saved behind the scenes, which could explain why it's working for the person who posted above.

Otherwise, it's possible someone derped the check again in frameworks/base, I'll check after lunch when I'm back in my car, but it worked properly as of saturday night.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] bstock:
FYI just tried the 11-11 nightly on my AT&T SGS3, didn't seem to have dock audio. Went to settings -> advanced -> sound and only have the extra gain option. Device was fully docked to my iBOLT vehicle dock (the one sold in the Verizon stores, as it was for my Verizon SGS3 before work switched to AT&T), it comes up and says Car Mode active, but no audio through that usb port :(
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] BlackDino:
Its in the 11-12 nightly