yashsingh1/xdaforums huggingface dataset:
[Captivate Android Development] tazman171:
You did not read what I wrote, I said "No Samsung car dock is needed to listen to music from your phone on your car stereo, rather, it was the dock making that hard to do." Samsung car dock was the main cause for us needing to get the usb driven 3.5mm jack working.

What I said if you would read the whole point of my post is that no car dock is needed to use audio out from the phone and therefore no modifying or splicing was needed if not using the Samsung car dock.

You totally mis interpreted my whole post, I was letting him know that audio out did NOT require a car dock, that is why I included the front page info, that is why I stated that no car dock was needed, that the Samsung car dock was the issue with having no audio.

And this statement here really makes me wonder if you read his post or mine;

As his post clearly asks if he needed to get the cradle;

And hence the reason I stated that no, you do not need the Samsung car dock or cradle as he called it.

I like your work GaurdianBob as a Samsung Car Dock owner I have been following this for a while hoping for a solution, I was just steering some one in the right direction with the correct info so I'm not sure at which point you decided I was saying something else.

No matter I guess but he was asking if a cradle was needed. :cool:
[Captivate Android Development] Guardian_Bob:
I think my confusion came from your reply, since the orginal question was not how do you get audio out, but instead how do you access the audio out over the usb wires. An example of this would be to create a test dock, or in the case of the orginal questioner, to only plug in 1 cable to charge and get audio.

My response was an attempt to clarify the dock situation, but since I misunderstood your intial reply, it did anything but that. As such I whole hearted apologize.

Cheers.
[Captivate Android Development] tazman171:
I understand man, sorry if I caused any confusion, I really did not mean to. I thinks we were both trying to do the same thing, clarify what the situation was.

I of course apologize too for not being more clear and like I said before GuardianBob, I do like and appreciate your work here and in other threads and would not try to waylay that in anyway due to that respect for your continued efforts in this community, and I mean that. :cool:
[Captivate Android Development] OVCArchion:
Has there been any more movement on this front? What style roms is this kernel compatible with? Is there any hope of this being compatible with say the Google car home app?
[Captivate Android Development] ihalatci:
And any limitations on the modem that we can use with this kernel?

Maybe you can post the link to the actual kernel that this fix is built on so we can read more.

Just want to get this running before I send my part of the deal ;)
[Captivate Android Development] loraque:
There is no kernel, other than the test kernel attached in this thread, that supports this yet.

I can still hear a power-whine in between songs if there is no other sound output... it fluctuates with the revving of the motor, so it appears that it is bleeding through the USB. There is no whine if I connect both AUX and USB power to the phone directly, so I do not think it is my car that is the problem.

Could it be some filtering, or other tweaks for the USB support that could filter that sound out? I dunno.
[Captivate Android Development] loserskater:
Not sure about the sound bleeding. Hasn't happened to me.

Xcal has been putting a lot of work into this. I hope he doesnt mind me saying this, but he's working on getting it to automatically route all audio, including phone calls, through USB when docked so we can use other car homes.
[Captivate Android Development] delugeofspam:
That makes me wonder if there is bad shielding in the OEM dock.

Also, I don't want to sound like a jerk saying this, but:

I hope that what we're paying for is a fix that can be applied to other kernels and not just a stock kernel that supports this and only this. I'd really like to see this float around to the other (very good) kernels here. I intend to pay the bounty when it's finished either way, I just don't want to be locked to one kernel for this functionality.
[Captivate Android Development] lanisan:
Head Unit

I'm curious what kind of head units these are being connected to? Built in, aftermarket? Designed for iPhone *but work with sd stick and technically should work with android phones* etc.
[Captivate Android Development] loraque:
Mine is built-in Toyota from 08, with BT. The only thing that it doesn't seem to do for me, is allow the listen over BT mic. I have to position the phone such that the ONE mic on the phone is directed towards me... messes me up on certain screens that don't handle 270 degree positioning.

This is AUX only input, via USB audio... not a SD external storage reader thing.

As to which kernels will have this, open source being what it is, I would presume once Xcal gets things setup perfect, it will trickle down to all the kernels. We just need to remember who was there first.
[Captivate Android Development] lanisan:
I'm running an IDA-X001. It was *designed* for iPhone but should work with memory sticks and things such as the Captivate. When I connected it on eclair it just looped on and off (mass storage or any of the other choices including media player, kies etc). Now on Froyo when connecting it the display just says No USB Device. I can of course connect to the 3.5mm and do it over rca to the back but then I have the 3.5mm, I have a seperate cord going to my cigarette lighter to charge rather than the 1 cable charging and reading audio directly to the head unit. My head unit with the iPhone (yeah I know this isnt an iphone :) ) read the music and displayed it and allowed the stereo to be the control unit rather than changing songs on the phone etc. So I'm curious if this fix is allowing my stereo to read the music (connect to usb and have it actually recognize the usb and show song lists etc) and or just play audio that way. I wouldnt even care if it just recognized audio and played back eliminating the need for as many cables.
[Captivate Android Development] xcaliburinhand:
As I have done with everything in the past (reorient, wired headset fix, phone call audio through headphones) when I am confident I will publish to my git. From there it usually only takes a few days for other devs to pick up and run with my changes.

I have always and will continue to follow the guidelines of GPL and make my source available to all.
[Captivate Android Development] OVCArchion:
This is just for analog audio via the usb port through the Samsung branded vehicle dock.
[Captivate Android Development] delugeofspam:
You = my hero.
[Captivate Android Development] xcaliburinhand:
Version 2.3.3 of my kernel has the dockfix and allows the use of the dock for all audio. No need for the Rogers Captivate dock app.

Still working on call audio using the dock.

Kernel can be found here:

http://xdaforums.com/showthread.php?t=808286
[Captivate Android Development] loraque:
That is awesome news! I want to test this out now! But daddy duty is mine tonight, so probably not until the morning commute. Maybe I will just have to head to the store for a quick trip when the wife gets home.

Yes, I think I will have to.
[Captivate Android Development] loraque:
xcaliburinhand- Do you want this dicussion in your kernel thread now that you have it incorporated in, or keep it here for now?

So I tried this out last night and this morning on the way to work. It does indeed work without any car home required. Sweet!

There are a couple issues I noted however-

It does not seem to redirect the audio on the first connect, every time. This may be something I am doing, and I am trying to isolate if it is me or my setup that is causing it, but usually I have to reconnect once to get it to put audio through the USB.

The full range of sound is not going through the USB. I do not have the ears, or the audio vocabulary to properly describe it, but at least the low end bass is not making it out of USB. I have a CD with the same MP3's on it, so can switch inputs easily... the punch of the sound is not there when through USB. When connected via AUX, the sound is fine.

If there are other ranges being filtered/missed, I can't really say. Good ears are not one of my things. Hopefully someone with some golden ears and proper vocab can confirm and describe better. But FLAT or TINNY is the best I can do.

Thanks man! This is GREAT progress!
[Captivate Android Development] OVCArchion:
First of, xcaliburinhand, awesome job, will paypal you tomorrowwhen I get paid. I flashed this last night with the latest Pheonix. It connects on the first try for me, dont know about that one. I can confirm the lack of lower end frequencies via USB, pretty much anything below mid's. maybe it is compressing it? Using the EQ in poweramp, I drive up the low end some, but nowhere near where it should be compared to other sources.
[Captivate Android Development] delugeofspam:
Bounty happily paid!

2AK057046U5841033
[Captivate Android Development] loserskater:
I can confirm the no bass issue with the latest kernel. The previous kernel (with the Rogers car home app) doesn't have this problem.
[Captivate Android Development] loraque:
Confirmation- 34C23326FX0380407

I am in for $10 as well. Thanks xcaliburinhand!
[Captivate Android Development] xcaliburinhand:
I'll take a look, Samsung EQ may be getting in the way. May be able to use some of the Voodoo sound adjustments to clean up the output.

BTW, thanks for the donations, they are being used for a purchase of a dock. Should make life a bit easier since I have been doing these adjustments blindly.
[Captivate Android Development] loserskater:
Haha. Seems kind of ironic... now that you fixed the dock you get one. Its a really good dock, the fit is great. And tasker makes it even better.

Thanks for all your work!
[Captivate Android Development] ihalatci:
Confirmation number: 6UR860330A8730238

thanks and enjoy your new car dock :)
[Captivate Android Development] loraque:
Could you explain a little for a tasker know-nothing, how you are using it regarding the dock? Now that this works, I went back to my home screen dedicated to the car... but am always looking to improve the setup.
[Captivate Android Development] loraque:
Gave the Rogers carcradle app to a buddy running the froyo leak on the Fascinate... and it allows USB audio out, but is experiencing the same bass loss. Not sure if there are any hints in that.
[Captivate Android Development] loserskater:
I just have it setup to automatically play music when docked and then stop when I undock. I could upload my backup if you want to take a look.
[Captivate Android Development] OVCArchion:
Here ya go!

2VN58277TM330004P
[Captivate Android Development] mrcoolgli:
So what exactly is the fix? I am willing to pay my portion of the bounty..
[Captivate Android Development] InsaneJester17:
I did this too, except i set it to load car dock, then load poweramp, then hit play so that the bass doesn't sound awful. Working great so far, but wish I didn't need to have car dock app on at all do get good audio.

Still, thanks so much xcalibur and loserskater!
[Captivate Android Development] xcaliburinhand:
Two fixes currently, the first switches the register used by the usb controller:

https://github.com/xcaliburinhand/I...mmit/1c5cfb76ece6fc6913b69082b9b1008d27293784

The second forces use of the dock when it is present rather than activation via the "mute" method in the app:

https://github.com/xcaliburinhand/I...mmit/b2c56b75602ba84b88e6fd9d0aca3be27c8bd1f0

Still working on audio tweaks (bass issues) and phone call audio routing. Should be able to make some better progress once my dock arrives.
[Captivate Android Development] mrcoolgli:
So how do I apply these fixes.. Forgive me I can load a ROM but I can't do any sort of compliling. If I had known you needed a dock I have an extra I bought. My wife has the EPIC and I bought one thinking it would work with hers.
[Captivate Android Development] xcaliburinhand:
Version 2.3.3 of the kernel here: http://xdaforums.com/showthread.php?t=808286 includes the current fix.

If you are using another kernel, and the dev hasn't included the fix yet, PM them and request the feature.
[Captivate Android Development] mrcoolgli:
I guess I don't understand. I clicked on that link you posted and I see a bunch of files for the different versions. I know these are not full roms, they are too small. How am I supposed to use this?
[Captivate Android Development] loserskater:
Those are kernels.

There are three main aspects of a rom. The rom itself (all of the system files/main UI) the kernel (middle man between the rom and the physical device) and the modem (how the rom interacts with the network).

The kernel is what the rom looks at when it wants to do something with the phone (turn on the screen, receive touch input, play audio from the speaker, etc.).

Most developers package all of these together when they release roms, but you can flash each one individually also. The modem and kernel are much smaller than the bare rom. Save the kernel zip to your sd card and flash using CWM.

PM me if you need more help.
[Captivate Android Development] InsaneJester17:
Anyone know where I can get the rogers car dock apk? I installed newest firefly rom and it's not on here.
[Captivate Android Development] loraque:
Has anyone tried using Galaxy Tuner?

https://market.android.com/details?id=com.dowkim.GalaxyTuner

App screenshot mentions it is hitting the HARDWARE EQUALIZER... is this the EQ that Xcal was referring to that may be getting in our way? Curious if anyone has tried this in lieu of Poweramp (and the apply on boot option) to resolve our current bass issue until a better resolution comes up?
[Captivate Android Development] OVCArchion:
http://xdaforums.com/showpost.php?p=10817279&postcount=15
[Captivate Android Development] loraque:
Tried this out at lunch, and it does appear to work. I have not verified the "apply on boot" option yet, which would be an important addition to this work-around. Also, since my ears suck, I do not have the EQ adjusted PERFECTLY either. It does bring back the bass without seeming to mess up the sound much, but I do detect things being abnormal still... I attribute this to sucking at audio.

If someone else tries it and gets a perfect EQ setup to restore the bass, post a pic for audio suckers like me.
[Captivate Android Development] Krynn!:
Awesome... I'll have to give that app a shot.

When I tested it out a day or two ago, it sounded like there was a high-pass filter running. My guess is that the system is defaulting to using the same EQ settings for the internal speaker, and that said setting intentionally cuts the lows out to avoid distortion. Obviously that's not needed for the dock... so the fix will be to have it use the same EQ settings as the headphone jack rather than the internal speaker.

Until then, this app looks like it'll help. :)
[Captivate Android Development] nlancaster:
Galaxy tuner sounds like it may have also solved the static I was getting thru my dock. I will try my dock at home with real speakers to see if that is true.
[Captivate Android Development] xcaliburinhand:
Fun fact, the dock uses the same EQ settings as every other output (including a standard pair of headphone). Looks like the missing bass comes from the sound conversion to the USB port. The Rogers Captivate app, which seems to restore the bass, isn't actually changing the EQ but rather adjusting the sound before it gets to the sound driver.

Good news is I have found a way to correct it, the EQ can be adjusted to overcome the shortcomings of the USB audio path. Just need to run some tests to find the correct EQ settings.

BTW, I would recommend Galaxy Tuner in the meantime.
[Captivate Android Development] mrcoolgli:
paid my bounty. 12C22505XF8648126
[Captivate Android Development] InsaneJester17:
Thank You!!!
[Captivate Android Development] nlancaster:
Any luck, I have been playing round with the Galaxy Tuner EQ and can make it sound better, but it still sounds much worse then thru the headphone jack. Very little base no matter what I do with the EQ settings. What EQ app are you using?
[Captivate Android Development] xcaliburinhand:
Slow going, I ran some tests against a spectrum analyzer last night to get the bast grasp on what is happening. A single test tone is registering a harmonic result when using the dock compared to the headphone jack. This harmonic looks to be more of the issue than the EQ, as the lower frequencies cascade causing the amplitude of the high frequencies to increase.

Right now I am going through some of the different settings available to see if I can eliminate the harmonic distortion.

Be out of town this weekend but plan on attacking it again on Monday night. On a happy note, I have call audio routing through dock properly.
[Captivate Android Development] smeltn:
I would love to get this to work.

I have a Sony headunit that has a USB input. It works great with my iPhone 3Gs. I plug it in, it charges and I can listen to Pandora, music saved on iPhone, etc, all by just using the usb.

I would love to have this feature working with my Captivate. Right now I have to plug in both a usb for charging and line in for sound.
[Captivate Android Development] OVCArchion:
Please go back and read the thread again... This has been addressed a few times...
[Captivate Android Development] delugeofspam:
No, I don't think he's wrong, he does want USB audio. He doesn't seem to be describing a scenario where he's using a head unit to browse his music library.

Posted from i897/Cognition 3.04/speedmod k13b/T959DTLJL3 using xda app.
[Captivate Android Development] nakedninja42:
For anyone still looking at this, I got the leaked 2.2 KB1 update this morning and installed it on my phone. I noticed that Car Dock was installed by default in this update. I did not change a single thing on my phone and plugged it into my desk cradle and was able to get FULL sound out of my speakers plugged into the dock. Ran outside and plugged it into my car dock and had FULL BASS and TREBLE!!! I still have to test out the voice calling but I assume it works as well, give an update later when I go driving listening to the tunes :D
[Captivate Android Development] nlancaster:
sweet. now we just need a good rom with this in it.
[Captivate Android Development] Ptrout:
Might be a silly question, but with the car dock, is it the rear jack just audio ?, or does the video out work on as well through 3.5 mm jack via usb.
[Captivate Android Development] OVCArchion:
Just audio
[Captivate Android Development] delugeofspam:
Has the eq thing been ironed out?

Posted from i897/Cognition 4/speedmod k13c/T959DTLJL3 using xda app.
[Captivate Android Development] xcaliburinhand:
Nope, actually looks like the ROM is getting in the way. I have a feeling Android is retuning the audio before sending it to the kernel.

I897 Froyo kernel source should be available in a day or two, so I am taking a break until I can dig into what Samsung has done recently.

Sorry, not the best news.
[Captivate Android Development] delugeofspam:
Hey, as long as whatever they've done makes it into these i9000 reorients and gets USB Audio Out working as an "xda feature," you've earned your $100 ;)

None of us could make it happen faster (if at all) so thanks again for your work.
[Captivate Android Development] shanghei:
WTF is samsungs problem, this was suppose to be enabled in stock 2.2 which came out today and guess what. IT DONT WORK
[Captivate Android Development] vunuts:
It didn't work originally with the official Rogers update, but now it does, that's why this thread is here. So calm down and give it time.
[Captivate Android Development] shanghei:
im sure this kernel fixes it, but samdung craptivate should have had it working considering all the time it took
[Captivate Android Development] foxbat121:
The official UCKB1 firmware does work without any issues. Learn how to use the feature properly. It only works when Car Home app is automatically launched and you click the speaker button on it. If you exit the Car Home app (using the Exit button on the app), it will not work.
[Captivate Android Development] vunuts:
Lol, laying down the boom stick.
[Captivate Android Development] xcaliburinhand:
Still have to use the speaker button? I misunderstood this post:

If you still have to use the speaker button in the car home app, they didn't do any changes for the dock between the roger's cappy and ATT kernel. Which means I am going to be disappointed with the ATT kernel source.

Using the speaker button basically tells the rom to redirect audio to route 9 and not use a speaker EQ (on the ROM side). I guess it is back to hacking for me, in essence I am looking to trick the ROM into not using the speaker EQ for the dock (not an easy trick from the kernel side.
[Captivate Android Development] foxbat121:
Yes. But the speaker button status is remembered. So next time you dock it, it will automatically re-direct the audio and Car Home app must be launched for this to work. But there is no bass loss issue.
[Captivate Android Development] xcaliburinhand:
I couldn't really find a good way to get the kernel to make the change, so I dipped my toe into application dev.

Created a simple service that starts on boot. When the dock is connected or removed, it automatically redirects the audio output to the dock output (the correct way). In doing so the speaker EQ isn't activated so the audio has its full glory.

Install the app, reboot your phone, good to go.

====================================

Update: App v1.1

Now has settings, allows you to select if sound is redirected when using the car and/or desk dock.

====================================

Update: App v1.2

Moved to the market

Add support for custom kernel driver in the teamhacksung CM7 kernel
[Captivate Android Development] OVCArchion:
Does this bypass the need for that craptacular samsung app altogether, I hate that thing...lol
[Captivate Android Development] bmunday:
Service works with other kernals?

Does this mean we could use this service with other kernels and get the $$PROFIT$$?
[Captivate Android Development] mipakr:
will test with cog4.0 (ugh already a new version) and get back to you
[Captivate Android Development] xcaliburinhand:
Should work with most ROMs and kernels, as long as they are in the galaxy family. Basically does what the captivate dock app does without having to use the button.

Sent from a cell tower.
[Captivate Android Development] outcastrc:
Any chance the app could have some settings? It solves the car dock issue for me but now it routes my home dock as well. Which means my alarms are silent since I didn't have speakers attached. I had to put some computer speakers on the dock to get around it. Not a big deal. Overall an awesome solution!!!
[Captivate Android Development] xcaliburinhand:
Good point, settings may be useful. I will post an update once I figure out how to add settings.
[Captivate Android Development] outcastrc:
It would be great if you could. I think it would be safer to not have to use speakers for alarms. Then if the power goes out you still get your wake up call. I plan on testing this when I get a chance to see what happens when power to the dock and speakers fails. I am a little concerned that the phone will fall silent if that happens.

Another quick question. I notice the audio out works with every app I have tried but when I made a call it still routes to the phone. Which I can't hear over the vehicle noise. Is it possible to route the call audio out through the USB as well as a selectable option?
[Captivate Android Development] InsaneJester17:
I tried this with Cog 4.1. Did not work with stock kernel. I install Xcalibur's i9000 kernel over cog 4.1 and now it works fine. I also installed an i9000 modem to keep that working.

Any chance we can get this into a more stock kernel so we can use Captivate's audio chip for calls properly?