]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Do not assign streams in reverse order
authorAnssi Hannula <anssi.hannula@iki.fi>
Tue, 8 Apr 2014 09:36:42 +0000 (12:36 +0300)
committerTakashi Iwai <tiwai@suse.de>
Tue, 8 Apr 2014 09:44:21 +0000 (11:44 +0200)
commit7bd0087cef8753d3ef86f1a38547c2b21c85569c
treeba1cd02860eeee210fd09587c33fd4b22607f4a2
parent293de12386365e0b328aa5b14531e7d4c1fe2771
ALSA: hda - Do not assign streams in reverse order

Currently stream numbers are assigned in reverse order.

Unfortunately commit 0daf3cea1b52135b8a ("ALSA: hda - Increment
default stream numbers for AMD HDMI controllers") assumed this was not
the case (specifically, it had the "old cards had single device only"
=> "extra unused stream numbers do not matter" assumption), causing
non-working audio regressions for AMD Radeon HDMI users.

Change the stream numbers to be assigned in forward order.

The benefit is that regular audio playback will still work even if the
assumed stream count is too high, downside is that a too high stream
count may remain hidden.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=77002
Reported-by: Christian Güdel <cg@dmesg.ch>
Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi>
Tested-by: Christian Güdel <cg@dmesg.ch> # 3.14
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_controller.c