From: Takashi Iwai Date: Thu, 6 Oct 2011 08:07:58 +0000 (+0200) Subject: ALSA: hda - Distinguish each substream for better sticky assignment X-Git-Tag: v3.2-rc1~127^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5cf9911988287e819ce98ccd9f61ca82fbc90c6;p=pandora-kernel.git ALSA: hda - Distinguish each substream for better sticky assignment The commit ef18beded8ddbaafdf4914bab209f77e60ae3a18 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 --- Reading git-diff-tree failed