]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Distinguish each substream for better sticky assignment
authorTakashi Iwai <tiwai@suse.de>
Thu, 6 Oct 2011 08:07:58 +0000 (10:07 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 6 Oct 2011 08:11:11 +0000 (10:11 +0200)
commitf5ba041162aa00aed62082a2e16bd924f543a17f
treef097738d1b72946aecf757d93e7b27847af6b15b
parent30bca44c467c78dedec0e6708ef7abb5b77ea853
ALSA: hda - Distinguish each substream for better sticky assignment

The commit a44caee6506b78aa4faa4d2ef567ece50c0d5980 introduced a
mechanism to assign the previously used slot for the next reopen of a
PCM stream.  But the PCM device number isn't always unique (it may
have multiple substreams), and also the code doesn't check the stream
direction, thus both playback and capture streams share the same
device number.

For avoiding this conflict, make a unique key for each substream and
store/check this value at reopening.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c