This is based on the existing libalsa-util library. Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>