Skip to content

Commit

Permalink
ASoC: Intel: soc-acpi-byt: Fix "WM510205" match no longer working
Browse files Browse the repository at this point in the history
[ Upstream commit c963e2e ]

Commit 7e1d728 ("ASoC: Intel: soc-acpi-byt: Add new WM5102 ACPI HID")
added an extra HID to wm5102_comp_ids.codecs, but it forgot to bump
wm5102_comp_ids.num_codecs, causing the last codec HID in the codecs list
to no longer work.

Bump wm5102_comp_ids.num_codecs to fix this.

Fixes: 7e1d728 ("ASoC: Intel: soc-acpi-byt: Add new WM5102 ACPI HID")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20230421183714.35186-1-hdegoede@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
jwrdegoede authored and gregkh committed May 17, 2023
1 parent 1193a36 commit e60e5d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/intel/common/soc-acpi-intel-byt-match.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ static const struct snd_soc_acpi_codecs rt5640_comp_ids = {
};

static const struct snd_soc_acpi_codecs wm5102_comp_ids = {
.num_codecs = 2,
.num_codecs = 3,
.codecs = { "10WM5102", "WM510204", "WM510205"},
};

Expand Down

0 comments on commit e60e5d6

Please sign in to comment.