Audio upper half enhancement
Note: Please adhere to Contributing Guidelines.
Summary
We have enhanced the capabilities of the upper driver, mainly including the following features:
1.Support for multiple applications simultaneously using the upper driver for playback/recording; 2.Support for maintaining a ringbuffer in the upper driver for simultaneous access by multiple applications; 3.Lower driver state management and retrieval; 4.Support for poll/mmap; 5.More comprehensive information retrieval via ioctl interfaces.
Impact
playback/recording, upperhalf driver
Testing
We have conducted tests on the following platforms:
- Simulator – Playback / Recording 2. BES Platform – Playback / Recording 3. Allwinner Platform – Playback / Recording
This is too many commits for one PR, it needs to be squashed/split into multiple PRs for each functional change.
Please include detailed testing information.
I've squashed some patches that were closely related, and the remaining ones are quite independent.
@jerpelea could you please ask Takayoshi Koizumi from Sony to review this PR?
@tmedicci Since you have a great background in the Audio subsystem, could you help to review?
I've squashed some patches that were closely related, and the remaining ones are quite independent.
I think some independent commits could probably be split into separate PRs. That would make this much easier to review and less likely to introduce bugs. Also, the testing information needs to be much more detailed for this change.