[PATCH 6.12 351/567] ASoC: qcom: q6asm-dai: perform correct state check before closing