[alsa-devel] PATCH: Cleanup duplicate code