Check the sound state availability before execute it.

Signed-off-by: Anders.Du <ander.dy@gmail.com>