diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2022-09-19 14:10:39 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2022-09-20 08:08:14 +0200 |
commit | 53f4f6b4e56d5fb6ef95a7e14c10ec244a79b996 (patch) | |
tree | 8718d8527e7c498d94902c7218ca06bb51d5d419 /include/sound | |
parent | ALSA: hda: add snd_hdac_stop_streams() helper (diff) | |
download | linux-dev-53f4f6b4e56d5fb6ef95a7e14c10ec244a79b996.tar.xz linux-dev-53f4f6b4e56d5fb6ef95a7e14c10ec244a79b996.zip |
ALSA: hda: ext: simplify logic for stream assignment
The logic is needlessly complicated, the basic rule is:
The host streams can be found by checking the 'opened' boolean.
The link streams can be found by checking the 'link_locked' boolean.
Once a stream is found, it can be unconditionally decoupled. The
snd_hdac_ext_stream_decouple_locked() routine will make sure the
register status is modified as needed and the 'decoupled' boolean set.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20220919121041.43463-7-pierre-louis.bossart@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound')
0 files changed, 0 insertions, 0 deletions