Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- A piece of the code that is debugged:
- https://pastebin.com/gUhaeFe2
- Tests are made on OTA 47
- ===========================================================
- Case 1A.
- ===========================================================
- a) int dolbyEncoding = AudioFormat.ENCODING_AC3;
- b) AC3 track is played
- ===========================================================
- channels=2 (detected by ffmpeg):
- 05-27 15:47:34.435 5078 5476 D AudioRenderer: =-=-=: Creating audio track: channels=2 sampleRate=48000 channelConfig=12 bufferSize=3078 tunelled=false passtrough=1
- 05-27 15:47:34.435 215 215 W /system/bin/hw/android.hidl.allocator@1.0-service: ashmem_create_region(2097152) returning hidl_memory(0xf2b98860, 2097152)
- 05-27 15:47:34.435 5078 5476 D AudioRenderer: =-=-=: new android.media.AudioTrack(-2147483648, 48000, 12, 5, 3078, 1)
- 05-27 15:47:34.435 5078 5476 E AudioAttributes: Invalid stream type -2147483648 for AudioAttributes
- 05-27 15:47:34.438 215 215 W /system/bin/hw/android.hidl.allocator@1.0-service: ashmem_create_region(2097152) returning hidl_memory(0xf2b98860, 2097152)
- 05-27 15:47:34.438 247 4851 I AudioFlinger: openOutput() this 0xeecbd000, module 10 Device 80400, SamplingRate 48000, Format 0x9000000, Channels 3, flags 1
- 05-27 15:47:34.439 216 463 D audio_hw_AudioStreamOut: createAudioStreamOut() line 96: =-=-=: config.format is 0x09000000
- 05-27 15:47:34.439 216 463 D =-=-= : config.format is 0x09000000
- 05-27 15:47:34.439 216 463 E audio_hw_AudioStreamOut: createAudioStreamOut() line 100: =-=-=: bta_aud_hal: -------------------- debug hardcoding EAC3
- 05-27 15:47:34.439 216 463 D =-=-= : hardcoding EAC3
- 05-27 15:47:34.439 216 463 D audio_hw_AudioStreamOut: createAudioStreamOut() line 113: create AudioStreamNonTunnelOut
- 05-27 15:47:34.439 216 463 D audio_hw_AudioStreamBase: AudioStreamBase() line 33: AudioStream config: (48000, AUDIO_CHANNEL_OUT_STEREO, AUDIO_FORMAT_E_AC3)
- 05-27 15:47:34.439 216 463 D audio_hw_hdmi_util: supportsFormat() line 439: Not found
- 05-27 15:47:34.442 215 215 W /system/bin/hw/android.hidl.allocator@1.0-service: ashmem_create_region(2097152) returning hidl_memory(0xf2b98860, 2097152)
- 05-27 15:47:34.444 215 215 W /system/bin/hw/android.hidl.allocator@1.0-service: ashmem_create_region(2097152) returning hidl_memory(0xf2b98860, 2097152)
- 05-27 15:47:34.445 247 4851 I AudioFlinger: HAL output buffer size 1024 frames, normal sink buffer size 1024 frames
- 05-27 15:47:34.446 215 215 W /system/bin/hw/android.hidl.allocator@1.0-service: ashmem_create_region(2097152) returning hidl_memory(0xf2b98860, 2097152)
- 05-27 15:47:34.447 247 5493 I AudioFlinger: AudioFlinger's thread 0xee01e000 tid=5493 ready to run
- 05-27 15:47:34.447 216 463 W mv_audio_hw_nontunnel: getLatency() line 309: can't get audio port by stream handle 77 and return default latency value 40
- 05-27 15:47:34.447 216 463 W mv_audio_hw_nontunnel: getLatency() line 309: can't get audio port by stream handle 77 and return default latency value 40
- 05-27 15:47:34.448 215 215 W /system/bin/hw/android.hidl.allocator@1.0-service: ashmem_create_region(2097152) returning hidl_memory(0xf2b98860, 2097152)
- 05-27 15:47:34.453 215 215 I chatty : uid=1000(system) allocator@1.0-s identical 2 lines
- 05-27 15:47:34.456 215 215 W /system/bin/hw/android.hidl.allocator@1.0-service: ashmem_create_region(2097152) returning hidl_memory(0xf2b98860, 2097152)
- 05-27 15:47:34.457 5078 5476 W AudioTrack: Use of stream types is deprecated for operations other than volume control
- 05-27 15:47:34.457 5078 5476 W AudioTrack: See the documentation of AudioTrack() for what to use instead with android.media.AudioAttributes to qualify your playback use case
- 05-27 15:47:34.458 5078 5476 E AudioRenderer: =-=-=: Created audio track
- channels=6 (hardcoded):
- 05-27 16:14:29.662 9136 9610 D AudioRenderer: =-=-=: Creating audio track: channels=6 sampleRate=48000 channelConfig=252 bufferSize=3078 tunelled=false passtrough=1
- 05-27 16:14:29.662 9136 9610 D AudioRenderer: =-=-=: new android.media.AudioTrack(-2147483648, 48000, 252, 5, 3078, 1)
- 05-27 16:14:29.662 9136 9610 E AudioAttributes: Invalid stream type -2147483648 for AudioAttributes
- 05-27 16:14:29.662 215 215 W /system/bin/hw/android.hidl.allocator@1.0-service: ashmem_create_region(2097152) returning hidl_memory(0xf2b98860, 2097152)
- 05-27 16:14:29.664 247 9097 W APM_AudioPolicyManager: getOutput() could not find output for stream 3, samplingRate 48000,format 150994944, channels 3f, flags 1
- 05-27 16:14:29.664 9136 9610 E AudioTrack: Could not get audio output for session 409, stream type -1, usage 0, sample rate 48000, format 0x9000000, channel mask 0x3f, flags 0x1
- 05-27 16:14:29.664 215 215 W /system/bin/hw/android.hidl.allocator@1.0-service: ashmem_create_region(2097152) returning hidl_memory(0xf2b98860, 2097152)
- 05-27 16:14:29.664 9136 9610 E AudioTrack-JNI: Error -22 initializing AudioTrack
- 05-27 16:14:29.665 9136 9610 E android.media.AudioTrack: Error code -20 when initializing AudioTrack.
- 05-27 16:14:29.665 9136 9610 W AudioTrack: Use of stream types is deprecated for operations other than volume control
- 05-27 16:14:29.665 9136 9610 W AudioTrack: See the documentation of AudioTrack() for what to use instead with android.media.AudioAttributes to qualify your playback use case
- 05-27 16:14:29.665 9136 9610 E AudioRenderer: =-=-=: Error initializing audio track
- ===========================================================
- Case 1B.
- ===========================================================
- a) int dolbyEncoding = AudioFormat.ENCODING_AC3;
- b) EAC3 track is played
- ===========================================================
- channels=2 (detected by ffmpeg):
- 05-27 15:51:39.618 5659 6040 D AudioRenderer: =-=-=: Creating audio track: channels=2 sampleRate=48000 channelConfig=12 bufferSize=3078 tunelled=false passtrough=1
- 05-27 15:51:39.618 5659 6040 D AudioRenderer: =-=-=: new android.media.AudioTrack(-2147483648, 48000, 12, 5, 3078, 1)
- 05-27 15:51:39.618 5659 6040 E AudioAttributes: Invalid stream type -2147483648 for AudioAttributes
- 05-27 15:51:39.621 247 5620 I AudioFlinger: openOutput() this 0xeecbd000, module 10 Device 80400, SamplingRate 48000, Format 0x9000000, Channels 3, flags 1
- 05-27 15:51:39.621 215 215 W /system/bin/hw/android.hidl.allocator@1.0-service: ashmem_create_region(2097152) returning hidl_memory(0xf2b98860, 2097152)
- 05-27 15:51:39.622 216 4914 D audio_hw_AudioStreamOut: createAudioStreamOut() line 96: =-=-=: config.format is 0x09000000
- 05-27 15:51:39.622 216 4914 D =-=-= : config.format is 0x09000000
- 05-27 15:51:39.622 216 4914 E audio_hw_AudioStreamOut: createAudioStreamOut() line 100: =-=-=: bta_aud_hal: -------------------- debug hardcoding EAC3
- 05-27 15:51:39.622 216 4914 D =-=-= : hardcoding EAC3
- 05-27 15:51:39.622 216 4914 D audio_hw_AudioStreamOut: createAudioStreamOut() line 113: create AudioStreamNonTunnelOut
- 05-27 15:51:39.622 216 4914 D audio_hw_AudioStreamBase: AudioStreamBase() line 33: AudioStream config: (48000, AUDIO_CHANNEL_OUT_STEREO, AUDIO_FORMAT_E_AC3)
- 05-27 15:51:39.623 216 4914 D audio_hw_hdmi_util: supportsFormat() line 439: Not found
- 05-27 15:51:39.625 215 215 W /system/bin/hw/android.hidl.allocator@1.0-service: ashmem_create_region(2097152) returning hidl_memory(0xf2b98860, 2097152)
- 05-27 15:51:39.627 215 215 W /system/bin/hw/android.hidl.allocator@1.0-service: ashmem_create_region(2097152) returning hidl_memory(0xf2b98860, 2097152)
- 05-27 15:51:39.628 247 5620 I AudioFlinger: HAL output buffer size 1024 frames, normal sink buffer size 1024 frames
- 05-27 15:51:39.630 215 215 W /system/bin/hw/android.hidl.allocator@1.0-service: ashmem_create_region(2097152) returning hidl_memory(0xf2b98860, 2097152)
- 05-27 15:51:39.630 216 4914 W mv_audio_hw_nontunnel: getLatency() line 309: can't get audio port by stream handle 85 and return default latency value 40
- 05-27 15:51:39.631 247 6057 I AudioFlinger: AudioFlinger's thread 0xed762000 tid=6057 ready to run
- 05-27 15:51:39.631 216 4914 W mv_audio_hw_nontunnel: getLatency() line 309: can't get audio port by stream handle 85 and return default latency value 40
- 05-27 15:51:39.635 215 215 W /system/bin/hw/android.hidl.allocator@1.0-service: ashmem_create_region(2097152) returning hidl_memory(0xf2b98860, 2097152)
- 05-27 15:51:39.638 215 215 I chatty : uid=1000(system) allocator@1.0-s identical 1 line
- 05-27 15:51:39.641 215 215 W /system/bin/hw/android.hidl.allocator@1.0-service: ashmem_create_region(2097152) returning hidl_memory(0xf2b98860, 2097152)
- 05-27 15:51:39.641 5659 6040 W AudioTrack: Use of stream types is deprecated for operations other than volume control
- 05-27 15:51:39.641 5659 6040 W AudioTrack: See the documentation of AudioTrack() for what to use instead with android.media.AudioAttributes to qualify your playback use case
- 05-27 15:51:39.641 5659 6040 E AudioRenderer: =-=-=: Created audio track
- channels=6 (hardcoded):
- 05-27 16:16:18.301 9136 9747 D AudioRenderer: =-=-=: Creating audio track: channels=6 sampleRate=48000 channelConfig=252 bufferSize=3078 tunelled=false passtrough=1
- 05-27 16:16:18.301 9136 9747 D AudioRenderer: =-=-=: new android.media.AudioTrack(-2147483648, 48000, 252, 5, 3078, 1)
- 05-27 16:16:18.301 9136 9747 E AudioAttributes: Invalid stream type -2147483648 for AudioAttributes
- 05-27 16:16:18.303 247 4851 W APM_AudioPolicyManager: getOutput() could not find output for stream 3, samplingRate 48000,format 150994944, channels 3f, flags 1
- 05-27 16:16:18.303 9136 9747 E AudioTrack: Could not get audio output for session 425, stream type -1, usage 0, sample rate 48000, format 0x9000000, channel mask 0x3f, flags 0x1
- 05-27 16:16:18.304 9136 9747 E AudioTrack-JNI: Error -22 initializing AudioTrack
- 05-27 16:16:18.304 9136 9747 E android.media.AudioTrack: Error code -20 when initializing AudioTrack.
- 05-27 16:16:18.304 9136 9747 W AudioTrack: Use of stream types is deprecated for operations other than volume control
- 05-27 16:16:18.304 9136 9747 W AudioTrack: See the documentation of AudioTrack() for what to use instead with android.media.AudioAttributes to qualify your playback use case
- 05-27 16:16:18.304 9136 9747 E AudioRenderer: =-=-=: Error initializing audio track
- ===========================================================
- Case 2A.
- ===========================================================
- a) int dolbyEncoding = AudioFormat.ENCODING_E_AC3;
- b) AC3 track is played
- ===========================================================
- channels=2 (detected by ffmpeg):
- 05-27 16:07:08.582 8073 8430 D AudioRenderer: =-=-=: Creating audio track: channels=2 sampleRate=48000 channelConfig=12 bufferSize=3078 tunelled=false passtrough=1
- 05-27 16:07:08.582 8073 8430 D AudioRenderer: =-=-=: new android.media.AudioTrack(-2147483648, 48000, 12, 5, 3078, 1)
- 05-27 16:07:08.582 8073 8430 E AudioAttributes: Invalid stream type -2147483648 for AudioAttributes
- 05-27 16:07:08.582 215 215 W /system/bin/hw/android.hidl.allocator@1.0-service: ashmem_create_region(2097152) returning hidl_memory(0xf2b98860, 2097152)
- 05-27 16:07:08.585 215 215 W /system/bin/hw/android.hidl.allocator@1.0-service: ashmem_create_region(2097152) returning hidl_memory(0xf2b98860, 2097152)
- 05-27 16:07:08.586 247 5620 W APM_AudioPolicyManager: getOutput() could not find output for stream 3, samplingRate 48000,format 167772160, channels 3, flags 1
- 05-27 16:07:08.586 8073 8430 E AudioTrack: Could not get audio output for session 345, stream type -1, usage 0, sample rate 48000, format 0xa000000, channel mask 0x3, flags 0x1
- 05-27 16:07:08.587 215 215 W /system/bin/hw/android.hidl.allocator@1.0-service: ashmem_create_region(2097152) returning hidl_memory(0xf2b98860, 2097152)
- 05-27 16:07:08.588 8073 8430 E AudioTrack-JNI: Error -22 initializing AudioTrack
- 05-27 16:07:08.588 8073 8430 E android.media.AudioTrack: Error code -20 when initializing AudioTrack.
- 05-27 16:07:08.588 8073 8430 W AudioTrack: Use of stream types is deprecated for operations other than volume control
- 05-27 16:07:08.588 8073 8430 W AudioTrack: See the documentation of AudioTrack() for what to use instead with android.media.AudioAttributes to qualify your playback use case
- 05-27 16:07:08.588 8073 8430 E AudioRenderer: =-=-=: Error initializing audio track
- channels=6 (hardcoded):
- 05-27 16:05:35.743 7569 7990 D AudioRenderer: =-=-=: Creating audio track: channels=6 sampleRate=48000 channelConfig=252 bufferSize=3078 tunelled=false passtrough=1
- 05-27 16:05:35.743 7569 7990 D AudioRenderer: =-=-=: new android.media.AudioTrack(-2147483648, 48000, 252, 5, 3078, 1)
- 05-27 16:05:35.743 7569 7990 E AudioAttributes: Invalid stream type -2147483648 for AudioAttributes
- 05-27 16:05:35.744 247 5620 W APM_AudioPolicyManager: getOutput() could not find output for stream 3, samplingRate 48000,format 167772160, channels 3f, flags 1
- 05-27 16:05:35.744 7569 7990 E AudioTrack: Could not get audio output for session 329, stream type -1, usage 0, sample rate 48000, format 0xa000000, channel mask 0x3f, flags 0x1
- 05-27 16:05:35.744 7569 7990 E AudioTrack-JNI: Error -22 initializing AudioTrack
- 05-27 16:05:35.744 7569 7990 E android.media.AudioTrack: Error code -20 when initializing AudioTrack.
- 05-27 16:05:35.744 7569 7990 W AudioTrack: Use of stream types is deprecated for operations other than volume control
- 05-27 16:05:35.744 7569 7990 W AudioTrack: See the documentation of AudioTrack() for what to use instead with android.media.AudioAttributes to qualify your playback use case
- 05-27 16:05:35.744 7569 7990 E AudioRenderer: =-=-=: Error initializing audio track
- ===========================================================
- Case 2B.
- ===========================================================
- a) int dolbyEncoding = AudioFormat.ENCODING_E_AC3;
- b) EAC3 track is played
- ===========================================================
- channels=2 (detected by ffmpeg):
- 05-27 16:10:27.520 8073 8589 D AudioRenderer: =-=-=: Creating audio track: channels=2 sampleRate=48000 channelConfig=12 bufferSize=3078 tunelled=false passtrough=1
- 05-27 16:10:27.520 8073 8589 D AudioRenderer: =-=-=: new android.media.AudioTrack(-2147483648, 48000, 12, 5, 3078, 1)
- 05-27 16:10:27.520 8073 8589 E AudioAttributes: Invalid stream type -2147483648 for AudioAttributes
- 05-27 16:10:27.521 215 215 W /system/bin/hw/android.hidl.allocator@1.0-service: ashmem_create_region(2097152) returning hidl_memory(0xf2b98860, 2097152)
- 05-27 16:10:27.521 247 5620 W APM_AudioPolicyManager: getOutput() could not find output for stream 3, samplingRate 48000,format 167772160, channels 3, flags 1
- 05-27 16:10:27.521 8073 8589 E AudioTrack: Could not get audio output for session 361, stream type -1, usage 0, sample rate 48000, format 0xa000000, channel mask 0x3, flags 0x1
- 05-27 16:10:27.522 8073 8589 E AudioTrack-JNI: Error -22 initializing AudioTrack
- 05-27 16:10:27.522 8073 8589 E android.media.AudioTrack: Error code -20 when initializing AudioTrack.
- 05-27 16:10:27.522 8073 8589 W AudioTrack: Use of stream types is deprecated for operations other than volume control
- 05-27 16:10:27.522 8073 8589 W AudioTrack: See the documentation of AudioTrack() for what to use instead with android.media.AudioAttributes to qualify your playback use case
- 05-27 16:10:27.522 8073 8589 E AudioRenderer: =-=-=: Error initializing audio track
- channels=6 (hardcoded):
- 05-27 16:04:16.218 7569 7915 D AudioRenderer: =-=-=: Creating audio track: channels=6 sampleRate=48000 channelConfig=252 bufferSize=3078 tunelled=false passtrough=1
- 05-27 16:04:16.218 7569 7915 D AudioRenderer: =-=-=: new android.media.AudioTrack(-2147483648, 48000, 252, 5, 3078, 1)
- 05-27 16:04:16.218 7569 7915 E AudioAttributes: Invalid stream type -2147483648 for AudioAttributes
- 05-27 16:04:16.220 247 5620 W APM_AudioPolicyManager: getOutput() could not find output for stream 3, samplingRate 48000,format 167772160, channels 3f, flags 1
- 05-27 16:04:16.221 7569 7915 E AudioTrack: Could not get audio output for session 321, stream type -1, usage 0, sample rate 48000, format 0xa000000, channel mask 0x3f, flags 0x1
- 05-27 16:04:16.221 7569 7915 E AudioTrack-JNI: Error -22 initializing AudioTrack
- 05-27 16:04:16.221 215 215 W /system/bin/hw/android.hidl.allocator@1.0-service: ashmem_create_region(2097152) returning hidl_memory(0xf2b98860, 2097152)
- 05-27 16:04:16.221 7569 7915 E android.media.AudioTrack: Error code -20 when initializing AudioTrack.
- 05-27 16:04:16.221 7569 7915 W AudioTrack: Use of stream types is deprecated for operations other than volume control
- 05-27 16:04:16.221 7569 7915 W AudioTrack: See the documentation of AudioTrack() for what to use instead with android.media.AudioAttributes to qualify your playback use case
- 05-27 16:04:16.221 7569 7915 E AudioRenderer: =-=-=: Error initializing audio track
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement