Sound devices (asound.conf) - ANDROID

Started by deskwizard, February 20, 2015, 10:50:08 PM

Previous topic - Next topic

deskwizard

Good afternoon,

I was wondering if anyone had a clue what the following devices concretely relates to in etc/audio_policy.conf
I can guess a little but would like more information if anyone has a clue. Also, please correct me if I'm wrong.

Long story short, I'm on the hunt for the FM_in and LINE_in, unmute, and play all of them through LINE_OUT

I managed to find the file reading this post, https://www.olimex.com/forum/index.php?topic=3645.0, not the same file, but I remember playing with this before, so at least I'll have line out working with HDMI shortly, if I can find the right dog damn file to edit... my memory is lacking atm. I remember an IF statement somewhere for HDMI switch, but the where... no clue.

Input devices:
AUDIO_DEVICE_IN_BUILTIN_MIC - Self explanatory perhaps, microphone port on Olinuxino-a20

AUDIO_DEVICE_IN_WIRED_HEADSET - Sounds like Line in to me (pun intended :P)

AUDIO_DEVICE_IN_BACK_MIC - Mic 2 ?

AUDIO_DEVICE_IN_AF - Could this be FM_IN ?

Thanks in advance.

DW

PS: anyone has any info that could help me with audio... post please


deskwizard

#1
Wow that took hours...

easy way to switch between digital out  (HDMI or spdif, spdif has priority over HDMI) and analog out:

Set analog: setprop audio.routing 2
Set digital: setprop audio.routing 1024

Tested working.

for future reference...
/device/softwinner/common/hardware/audio/audio_hw.c
around line 712


deskwizard

#2
*retracted*