[PATCH 6.6 546/737] ASoC: qcom: q6asm-dai: perform correct state check before closing