For upstream

Same as https://github.com/tinyalsa/tinyalsa/pull/48 but the pcm_get_delay() function has been modified to follow the same return style as all other tinyalsa functions.