[PATCH 14/23] ALSA: scarlett2: Refactor common port_count lookups