tinyalsasink: Fix missing const and deprecations with tinyalsa v2
Hi,
This is a MR to fix some deprecations and warnings found when using tinyalsa 2.0.0.
- One function returns a pointer-to-const explicitly, which triggers
discarded-qualifiers
(GCC) andincompatible-pointer-types-discards-qualifiers
(Clang). -
pcm_write
is now deprecated, expecting the conversion from bytes to frames to be done explicitly.
This is needed for cerbero!1401 (closed).