[PATCH 1/2] ALSA: core: Add snd_device_get_state() helper