From: Takashi Iwai Date: Fri, 20 Aug 2010 07:44:36 +0000 (+0200) Subject: ALSA: hda - Fix stream and channel-ids codec-bus wide X-Git-Tag: v2.6.36-rc3~50^2~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f50ac6a0ec80a83a1a033fe5004fb319ad72db7;p=pandora-kernel.git ALSA: hda - Fix stream and channel-ids codec-bus wide 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: Stephen Warren Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed