• Takashi Iwai's avatar
    ALSA: hda - Distinguish each substream for better sticky assignment · d5cf9911
    Takashi Iwai authored
    The commit ef18bede 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: default avatarTakashi Iwai <tiwai@suse.de>
    d5cf9911
hda_intel.c 84.5 KB