summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2021-05-27 23:26:02 +0200
committerJaroslav Kysela <perex@perex.cz>2021-05-27 23:28:20 +0200
commit1e56b1031f59ab5a28cbc648e594d67de0fad90b (patch)
tree96fc9f666909b516aba73b743bda8a61e00bb98f
parentc7a939ee31a8a25253d9620ecea6620d48a028eb (diff)
downloadalsa-lib-1e56b1031f59ab5a28cbc648e594d67de0fad90b.tar.gz
pcm: hw - correct the comment in snd_pcm_hw_state()
Fixes: c7a939ee ("pcm: hw - fix again snd_pcm_hw_state() when the driver was disconnected") Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r--src/pcm/pcm_hw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pcm/pcm_hw.c b/src/pcm/pcm_hw.c
index 610e0ef3..b3f9d157 100644
--- a/src/pcm/pcm_hw.c
+++ b/src/pcm/pcm_hw.c
@@ -600,8 +600,8 @@ static int snd_pcm_hw_status(snd_pcm_t *pcm, snd_pcm_status_t * status)
static snd_pcm_state_t snd_pcm_hw_state(snd_pcm_t *pcm)
{
snd_pcm_hw_t *hw = pcm->private_data;
- /* the -ENODEV may come from the snd_disconnect_ioctl() in kernel */
- /* in this case, the mmaped state is no longer updated */
+ /* the -ENODEV may come from the snd_disconnect_ioctl() or
+ snd_power_wait() in kernel */
if (query_status_data(hw) == -ENODEV)
return SND_PCM_STATE_DISCONNECTED;
return (snd_pcm_state_t) hw->mmap_status->state;