HDMI bitstream or LPCM
#1
I'm trying to make an omap4 phone (motorola droid 4) with cyanogenmod 11 bitstream multichannel sound.
The kernel has support for bitstream and full hdmi lpcm (except 24bit, it has static noise), I tested it with tinyplay playing some ac3,dts and multichannel lpcm files.
if I let the sound in audio_policy.conf to be stereo and without direct flag it would play stereo and if I add the direct flag xbmc would crash, I added some code from omapzoom and other hacks to the AudioFlinger (libstrageflight) and I got it working with direct flag, but it would still play stereo. In sound options I can't select the sound device, I only have android:audiotrack, enabling/disabling passthrough would not have any effect

where should I investigate is this possible ?

Code:
tinypcminfo  -D 1
Info for card 1, device 0:

PCM out:
            Rate:   min=8000Hz       max=192000Hz
     Channels:   min=1               max=8
Sample bits:   min=8               max=32
  Period size:   min=4               max=65472
Period count:   min=2               max=255

xbmc with flags AUDIO_OUTPUT_FLAG_DIRECT :

Code:
V/XBMC    ( 6073): 21:20:06 T:1567682800    INFO: CActiveAESink::OpenSink - initialize sink
V/XBMC    ( 6073): 21:20:06 T:1567682800   DEBUG: CActiveAESink::OpenSink - trying to open device AUDIOTRACK:AudioTrack
W/AudioPolicyManagerBase( 6026): getOutput() could not find output for stream 3, samplingRate 0,format 0, channels 3, flags 0
E/AudioTrack-JNI( 6073): AudioSystem::getOutputSamplingRate() for stream type 3 failed in AudioTrack JNI
W/AudioPolicyManagerBase( 6026): getOutput() could not find output for stream 3, samplingRate 0,format 0, channels 3, flags 0
E/android.media.AudioTrack( 6073): getMinBufferSize(): error querying hardware
W/dalvikvm( 6073): Exception thrown (Ljava/lang/IllegalArgumentException;) while throwing internal exception (Ljava/lang/OutOfMemoryError;)
V/XBMC    ( 6073): CXBMCApp::SetSystemVolume: Could not get Audio Manager
V/XBMC    ( 6073): CXBMCApp::SetSystemVolume: Could not get Audio Manager
V/XBMC    ( 6073): CXBMCApp::SetSystemVolume: Could not get Audio Manager

full log without AUDIO_OUTPUT_FLAG_DIRECT :
pastebin

regards
Reply
#2
solved in native video player using ffdshow
Reply

Logout Mark Read Team Forum Stats Members Help
HDMI bitstream or LPCM0