[PATCH v2 07/12] [RESEND] ASoC: SOF: add two helper lookup functions