ALSA: hda: cs35l41: Set Channel Index correctly when system is missing _DSD
authorStefan Binding <sbinding@opensource.cirrus.com>
Fri, 26 Jan 2024 16:40:02 +0000 (16:40 +0000)
committerTakashi Iwai <tiwai@suse.de>
Sun, 28 Jan 2024 12:10:57 +0000 (13:10 +0100)
commit135096ebfab656823d0037102a00776f3914fee3
tree2ec765dfc9a000809f82c6da4e8ab7f68a3556a0
parentb2d6a1fd0e3e513f5ebfc152d6fedae093df8e21
ALSA: hda: cs35l41: Set Channel Index correctly when system is missing _DSD

Current method to set Channel Index when the system is missing _DSD
assumes that the channels alternate, which is not guaranteed.
Instead use the same methodology as the main driver does when _DSD
exists.

Fixes: 8c4c216db8fb ("ALSA: hda: cs35l41: Add config table to support many laptops without _DSD")
Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20240126164005.367021-2-sbinding@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/cs35l41_hda_property.c