alsa: fix duplicate mapping detection