[PATCH 6.18 105/312] ASoC: qcom: q6asm-dai: perform correct state check before closing