[RFC PATCH 2/4] ALSA: hda: hdac_stream: reset assigned_key in stream_release()
Pierre-Louis Bossart
pierre-louis.bossart at linux.intel.com
Fri Sep 24 21:24:15 CEST 2021
The 'assigned_key' field is set in assign() and never reset. For
symmetry set to zero in release().
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart at linux.intel.com>
---
sound/hda/hdac_stream.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/hda/hdac_stream.c b/sound/hda/hdac_stream.c
index 9867555883c3..3ae23c50d505 100644
--- a/sound/hda/hdac_stream.c
+++ b/sound/hda/hdac_stream.c
@@ -333,6 +333,7 @@ void snd_hdac_stream_release(struct hdac_stream *azx_dev)
spin_lock_irq(&bus->reg_lock);
azx_dev->opened = 0;
azx_dev->running = 0;
+ azx_dev->assigned_key = 0;
azx_dev->substream = NULL;
spin_unlock_irq(&bus->reg_lock);
}
--
2.25.1
More information about the Alsa-devel
mailing list