Currently stream numbers are assigned in reverse order.
7546abfb8e ("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.
Reported-by: Christian Güdel <firstname.lastname@example.org>
Signed-off-by: Anssi Hannula <email@example.com>
Tested-by: Christian Güdel <firstname.lastname@example.org> # 3.14
Cc: Alex Deucher <email@example.com>
Signed-off-by: Takashi Iwai <firstname.lastname@example.org>