ALSA Proxy: Update for the libtinyalsav2
1. In the "old" libtinyalsa, pcm_get_htimestamp could
not return a zero timestamp, this was considered
an error. The "new" libtinyalsav2 returns zero
timestamps. In this case, obtain the timestamp
in the proxy.
2. Replace direct calculation of the kernel buffer size
with a call to `pcm_get_buffer_size`.
3. Consider the case when tinyALSA returns "avail" value
which is bigger than the buffer size to be an overrun.
Bug: 286914845
Bug: 294615452
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I73e53e3077ec314fc62269dc0002ad58774ee9bf
1 file changed