Page 1 of 2

Audio Out Headphone/Lineout For Android 4.3

PostPosted: Thu Apr 10, 2014 2:09 pm
by marshg1
I understand that by default the audio gets routed out the HDMI port and have read that using the App "Soundabout" some have used the app to route audio out the headphone jack. Even with Soundabout installed I have not been able to route audio out the headphone jack. Can you walk me through the steps to do this?

Also, what are the steps to do this as a part of the Android Build process? I think the only thing that you need to do is edit device/fsl/wandboard/audio_policy.conf and in the global_configuration section change it to the following audio to go out the headphones:
global_configuration {
attached_output_devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_WIRED_HEADSET
default_output_device AUDIO_DEVICE_OUT_WIRED_HEADPHONE
}

To get audio to go out the lineout of the codec would it be?
global_configuration {
attached_output_devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_WIRED_HEADSET
default_output_device AUDIO_DEVICE_OUT_WIRED_HEADSET
}

Thanks for your help!

Re: Audio Out Headphone/Lineout For Android 4.3

PostPosted: Mon Apr 14, 2014 4:43 am
by nokiac
Hi, I need this functionality desperately. I use my wandboard as Android media center, and now I have to turn on the TV to route the audio to my speakers, when I am just listening to Music. Please help anyone.

Re: Audio Out Headphone/Lineout For Android 4.3

PostPosted: Sat Jun 07, 2014 11:42 pm
by nokiac
Bump ?

Re: Audio Out Headphone/Lineout For Android 4.3

PostPosted: Sun Jul 20, 2014 6:32 am
by nokiac
Hi All,

I finally have success in getting analog audio out with the latest Jellybean image posted (android-4.3-wandboard-20140516.zip) .

I changed the audio policy.conf top section where attached devices and default devices are both now AUDIO_DEVICE_OUT_WIRED_HEADSET .

Also, changing the default input device, I was able to get the sound recorder app to work with a mic connected to the mic-in port.

The config looks as follows :

Code: Select all
global_configuration {
  attached_output_devices AUDIO_DEVICE_OUT_WIRED_HEADSET
  default_output_device AUDIO_DEVICE_OUT_WIRED_HEADSET
  attached_input_devices AUDIO_DEVICE_IN_WIRED_HEADSET
}

Re: Audio Out Headphone/Lineout For Android 4.3

PostPosted: Sat Aug 16, 2014 4:48 am
by jcsistemas2001
Hi,
I try this configuration in a Android 4.3, however still without output audio. Any additional suggestion?
Thanks

Re: Audio Out Headphone/Lineout For Android 4.3

PostPosted: Sat Aug 16, 2014 6:36 am
by nokiac
HI, you need the latest Android image android-4.3-wandboard-20140516.zip , I believe there are kernel updates in that one.

Re: Audio Out Headphone/Lineout For Android 4.3

PostPosted: Sat Aug 16, 2014 10:46 am
by jcsistemas2001
The problem was module the: CONFIG_SND_SOC_IMX_SGTL5000=y !! Was not included.
It's rare, I don't need to modified the audio_policy.conf to get the sound.
Thanks!

Re: Audio Out Headphone/Lineout For Android 4.3

PostPosted: Sun Aug 17, 2014 5:16 pm
by michrech
Which file did you modify to add this setting?

The problem was module the: CONFIG_SND_SOC_IMX_SGTL5000=y !! Was not included.
It's rare, I don't need to modified the audio_policy.conf to get the sound.
Thanks!

Re: Audio Out Headphone/Lineout For Android 4.3

PostPosted: Mon Aug 18, 2014 2:37 am
by jcsistemas2001
The file: "kernel_imx/arch/arm/configs/wandboard_android_defconfig"

Re: Audio Out Headphone/Lineout For Android 4.3

PostPosted: Mon Oct 09, 2017 6:03 pm
by ericfigg
Hello guys,
What are the best headphones with microphones that are Android compatible?
Thanks in advance

Buy Smartphone online