• Takashi Iwai's avatar
    ALSA: hda - Fix stream and channel-ids codec-bus wide · 3f50ac6a
    Takashi Iwai authored
    The new sticky PCM parameter introduced the delayed clean-ups of
    stream- and channel-id tags.  In the current implementation, this check
    (adding dirty flag) and actual clean-ups are done only for the codec
    chip.  However, with HD-audio architecture, multiple codecs can be
    on a single bus, and the controller assign stream- and channel-ids in
    the bus-wide.
    
    In this patch, the stream-id and channel-id are checked over all codecs
    connected to the corresponding bus.  Together with it, the mutex is
    moved to struct hda_bus, as this becomes also bus-wide.
    Reported-and-tested-by: default avatarStephen Warren <swarren@nvidia.com>
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    3f50ac6a
hda_codec.c 128 KB