Advertisement
Guest User

Untitled

a guest
May 27th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.76 KB | None | 0 0
  1. A piece of the code that is debugged:
  2. https://pastebin.com/gUhaeFe2
  3.  
  4. Tests are made on OTA 47
  5.  
  6. ===========================================================
  7. Case 1A.
  8. ===========================================================
  9. a) int dolbyEncoding = AudioFormat.ENCODING_AC3;
  10. b) AC3 track is played
  11. ===========================================================
  12.  
  13. channels=2 (detected by ffmpeg):
  14.  
  15. 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
  16. 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)
  17. 05-27 15:47:34.435 5078 5476 D AudioRenderer: =-=-=: new android.media.AudioTrack(-2147483648, 48000, 12, 5, 3078, 1)
  18. 05-27 15:47:34.435 5078 5476 E AudioAttributes: Invalid stream type -2147483648 for AudioAttributes
  19. 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)
  20. 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
  21. 05-27 15:47:34.439 216 463 D audio_hw_AudioStreamOut: createAudioStreamOut() line 96: =-=-=: config.format is 0x09000000
  22. 05-27 15:47:34.439 216 463 D =-=-= : config.format is 0x09000000
  23. 05-27 15:47:34.439 216 463 E audio_hw_AudioStreamOut: createAudioStreamOut() line 100: =-=-=: bta_aud_hal: -------------------- debug hardcoding EAC3
  24. 05-27 15:47:34.439 216 463 D =-=-= : hardcoding EAC3
  25. 05-27 15:47:34.439 216 463 D audio_hw_AudioStreamOut: createAudioStreamOut() line 113: create AudioStreamNonTunnelOut
  26. 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)
  27. 05-27 15:47:34.439 216 463 D audio_hw_hdmi_util: supportsFormat() line 439: Not found
  28. 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)
  29. 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)
  30. 05-27 15:47:34.445 247 4851 I AudioFlinger: HAL output buffer size 1024 frames, normal sink buffer size 1024 frames
  31. 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)
  32. 05-27 15:47:34.447 247 5493 I AudioFlinger: AudioFlinger's thread 0xee01e000 tid=5493 ready to run
  33. 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
  34. 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
  35. 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)
  36. 05-27 15:47:34.453 215 215 I chatty : uid=1000(system) allocator@1.0-s identical 2 lines
  37. 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)
  38. 05-27 15:47:34.457 5078 5476 W AudioTrack: Use of stream types is deprecated for operations other than volume control
  39. 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
  40. 05-27 15:47:34.458 5078 5476 E AudioRenderer: =-=-=: Created audio track
  41.  
  42. channels=6 (hardcoded):
  43.  
  44. 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
  45. 05-27 16:14:29.662 9136 9610 D AudioRenderer: =-=-=: new android.media.AudioTrack(-2147483648, 48000, 252, 5, 3078, 1)
  46. 05-27 16:14:29.662 9136 9610 E AudioAttributes: Invalid stream type -2147483648 for AudioAttributes
  47. 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)
  48. 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
  49. 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
  50. 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)
  51. 05-27 16:14:29.664 9136 9610 E AudioTrack-JNI: Error -22 initializing AudioTrack
  52. 05-27 16:14:29.665 9136 9610 E android.media.AudioTrack: Error code -20 when initializing AudioTrack.
  53. 05-27 16:14:29.665 9136 9610 W AudioTrack: Use of stream types is deprecated for operations other than volume control
  54. 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
  55. 05-27 16:14:29.665 9136 9610 E AudioRenderer: =-=-=: Error initializing audio track
  56.  
  57. ===========================================================
  58. Case 1B.
  59. ===========================================================
  60. a) int dolbyEncoding = AudioFormat.ENCODING_AC3;
  61. b) EAC3 track is played
  62. ===========================================================
  63.  
  64. channels=2 (detected by ffmpeg):
  65.  
  66. 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
  67. 05-27 15:51:39.618 5659 6040 D AudioRenderer: =-=-=: new android.media.AudioTrack(-2147483648, 48000, 12, 5, 3078, 1)
  68. 05-27 15:51:39.618 5659 6040 E AudioAttributes: Invalid stream type -2147483648 for AudioAttributes
  69. 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
  70. 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)
  71. 05-27 15:51:39.622 216 4914 D audio_hw_AudioStreamOut: createAudioStreamOut() line 96: =-=-=: config.format is 0x09000000
  72. 05-27 15:51:39.622 216 4914 D =-=-= : config.format is 0x09000000
  73. 05-27 15:51:39.622 216 4914 E audio_hw_AudioStreamOut: createAudioStreamOut() line 100: =-=-=: bta_aud_hal: -------------------- debug hardcoding EAC3
  74. 05-27 15:51:39.622 216 4914 D =-=-= : hardcoding EAC3
  75. 05-27 15:51:39.622 216 4914 D audio_hw_AudioStreamOut: createAudioStreamOut() line 113: create AudioStreamNonTunnelOut
  76. 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)
  77. 05-27 15:51:39.623 216 4914 D audio_hw_hdmi_util: supportsFormat() line 439: Not found
  78. 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)
  79. 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)
  80. 05-27 15:51:39.628 247 5620 I AudioFlinger: HAL output buffer size 1024 frames, normal sink buffer size 1024 frames
  81. 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)
  82. 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
  83. 05-27 15:51:39.631 247 6057 I AudioFlinger: AudioFlinger's thread 0xed762000 tid=6057 ready to run
  84. 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
  85. 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)
  86. 05-27 15:51:39.638 215 215 I chatty : uid=1000(system) allocator@1.0-s identical 1 line
  87. 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)
  88. 05-27 15:51:39.641 5659 6040 W AudioTrack: Use of stream types is deprecated for operations other than volume control
  89. 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
  90. 05-27 15:51:39.641 5659 6040 E AudioRenderer: =-=-=: Created audio track
  91.  
  92. channels=6 (hardcoded):
  93.  
  94. 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
  95. 05-27 16:16:18.301 9136 9747 D AudioRenderer: =-=-=: new android.media.AudioTrack(-2147483648, 48000, 252, 5, 3078, 1)
  96. 05-27 16:16:18.301 9136 9747 E AudioAttributes: Invalid stream type -2147483648 for AudioAttributes
  97. 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
  98. 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
  99. 05-27 16:16:18.304 9136 9747 E AudioTrack-JNI: Error -22 initializing AudioTrack
  100. 05-27 16:16:18.304 9136 9747 E android.media.AudioTrack: Error code -20 when initializing AudioTrack.
  101. 05-27 16:16:18.304 9136 9747 W AudioTrack: Use of stream types is deprecated for operations other than volume control
  102. 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
  103. 05-27 16:16:18.304 9136 9747 E AudioRenderer: =-=-=: Error initializing audio track
  104.  
  105. ===========================================================
  106. Case 2A.
  107. ===========================================================
  108. a) int dolbyEncoding = AudioFormat.ENCODING_E_AC3;
  109. b) AC3 track is played
  110. ===========================================================
  111.  
  112. channels=2 (detected by ffmpeg):
  113.  
  114. 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
  115. 05-27 16:07:08.582 8073 8430 D AudioRenderer: =-=-=: new android.media.AudioTrack(-2147483648, 48000, 12, 5, 3078, 1)
  116. 05-27 16:07:08.582 8073 8430 E AudioAttributes: Invalid stream type -2147483648 for AudioAttributes
  117. 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)
  118. 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)
  119. 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
  120. 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
  121. 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)
  122. 05-27 16:07:08.588 8073 8430 E AudioTrack-JNI: Error -22 initializing AudioTrack
  123. 05-27 16:07:08.588 8073 8430 E android.media.AudioTrack: Error code -20 when initializing AudioTrack.
  124. 05-27 16:07:08.588 8073 8430 W AudioTrack: Use of stream types is deprecated for operations other than volume control
  125. 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
  126. 05-27 16:07:08.588 8073 8430 E AudioRenderer: =-=-=: Error initializing audio track
  127.  
  128. channels=6 (hardcoded):
  129.  
  130. 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
  131. 05-27 16:05:35.743 7569 7990 D AudioRenderer: =-=-=: new android.media.AudioTrack(-2147483648, 48000, 252, 5, 3078, 1)
  132. 05-27 16:05:35.743 7569 7990 E AudioAttributes: Invalid stream type -2147483648 for AudioAttributes
  133. 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
  134. 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
  135. 05-27 16:05:35.744 7569 7990 E AudioTrack-JNI: Error -22 initializing AudioTrack
  136. 05-27 16:05:35.744 7569 7990 E android.media.AudioTrack: Error code -20 when initializing AudioTrack.
  137. 05-27 16:05:35.744 7569 7990 W AudioTrack: Use of stream types is deprecated for operations other than volume control
  138. 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
  139. 05-27 16:05:35.744 7569 7990 E AudioRenderer: =-=-=: Error initializing audio track
  140.  
  141. ===========================================================
  142. Case 2B.
  143. ===========================================================
  144. a) int dolbyEncoding = AudioFormat.ENCODING_E_AC3;
  145. b) EAC3 track is played
  146. ===========================================================
  147.  
  148. channels=2 (detected by ffmpeg):
  149.  
  150. 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
  151. 05-27 16:10:27.520 8073 8589 D AudioRenderer: =-=-=: new android.media.AudioTrack(-2147483648, 48000, 12, 5, 3078, 1)
  152. 05-27 16:10:27.520 8073 8589 E AudioAttributes: Invalid stream type -2147483648 for AudioAttributes
  153. 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)
  154. 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
  155. 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
  156. 05-27 16:10:27.522 8073 8589 E AudioTrack-JNI: Error -22 initializing AudioTrack
  157. 05-27 16:10:27.522 8073 8589 E android.media.AudioTrack: Error code -20 when initializing AudioTrack.
  158. 05-27 16:10:27.522 8073 8589 W AudioTrack: Use of stream types is deprecated for operations other than volume control
  159. 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
  160. 05-27 16:10:27.522 8073 8589 E AudioRenderer: =-=-=: Error initializing audio track
  161.  
  162. channels=6 (hardcoded):
  163.  
  164. 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
  165. 05-27 16:04:16.218 7569 7915 D AudioRenderer: =-=-=: new android.media.AudioTrack(-2147483648, 48000, 252, 5, 3078, 1)
  166. 05-27 16:04:16.218 7569 7915 E AudioAttributes: Invalid stream type -2147483648 for AudioAttributes
  167. 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
  168. 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
  169. 05-27 16:04:16.221 7569 7915 E AudioTrack-JNI: Error -22 initializing AudioTrack
  170. 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)
  171. 05-27 16:04:16.221 7569 7915 E android.media.AudioTrack: Error code -20 when initializing AudioTrack.
  172. 05-27 16:04:16.221 7569 7915 W AudioTrack: Use of stream types is deprecated for operations other than volume control
  173. 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
  174. 05-27 16:04:16.221 7569 7915 E AudioRenderer: =-=-=: Error initializing audio track
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement