FROMGIT: ALSA: hda/hdmi: fix max DP-MST dev_num for Intel TGL+ platforms

Increase the device select range to 4 on platforms supporting
4 concurrent displays.

This fixes a problem in scenario where total of 4 displays are active,
and 3 of these are audio capable DP receivers and connected to a DP-MST
hub. Due to incorrect range for device select, audio could not be played
to the 3rd monitor in DP-MST hub.

BugLink: https://github.com/thesofproject/linux/issues/2798
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Link: https://lore.kernel.org/r/20210324172337.51730-1-kai.vehmanen@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
(cherry picked from commit e839fbed26e8b8713803b8ac73da92fd2b0c7594
https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next)

Signed-off-by: Chintan Patel <chintan.m.patel@intel.com>

BUG=b:183962777
TEST=DUT connected with three MST Displays/Hub, ensure three HDMI/DP audio outputs
     are listed in Audio settings.

Change-Id: I64d5cfe10daf2c74eb3576fd0c3b4d5b5b557c8d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/2792555
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Curtis Malainey <cujomalainey@chromium.org>
Tested-by: Kevin L Derossett <kevin.l.derossett@intel.com>
Commit-Queue: Curtis Malainey <cujomalainey@chromium.org>
1 file changed