QDSP6 supports multiple sessions operation which means that we can support playback/recording with different formats/configurations simultaneously. The default setting will allow for 4 playbacks and 4 recordings with different formats at the same time. This feature is currently only available in LE(Linux Enablement) build, not in Android.
Question:
How to increase the maximum count of audio session?
Answer:
- To change count of decoding session, refer to Q6_DEC_MAX_STREAM_COUNT.
- To change count of encoding session, refer to Q6_ENC_MAX_SESSION_COUNT.
- To change count of audio CAD session, refer to CAD_MAX_SESSION.
- CAD_MAX_SESSION > (Q6_DEC_MAX_STREAM_COUNT+Q6_ENC_MAX_SESSION_COUNT)
- These definitions are all in ARM, not Q6.
Additional information provided from Jason Hu,
Entering Q6, typical audio/video session instance is pre-defined and controlled by PM, e.g.,
#define AUD_TCM_MEMORY_PERF_4 0
#define AUD_MIPS_PERF_4 78000
#define AUD_MIN_Q6_FREQUENCY_PERF_4 115000
#define AUD_AXI_FREQUENCY_PERF_4 18000
For example, purely considering the above one "Audio Media session",
Q6 CPU max freq = 600MHz, then we can have 600,000 / 115,000 = 5.2
Q6 AXI max freq = 128MHz, then we can have 128,000 / 18,000 = 7.1
Therefore, considering some margin of other application/resource usage, 4 is a reasonable number for limiting from outside of Q6.
No comments:
Post a Comment