From 7f53e11425b59f27e2fa70bab9daa3ca0a509177 Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Fri, 22 Sep 2023 11:47:22 -0500 Subject: [PATCH] drivers/sof: Add support for rt5650 speaker/jack topology Enables correct identification of boards using rt5650 codec for either speaker or headset output (or both) by SOF Windows drivers. Change-Id: Ied9717955fcfca33bd63a34f3f6961deb045239c Signed-off-by: Matt DeVillier Reviewed-on: https://review.coreboot.org/c/coreboot/+/78092 Reviewed-by: Felix Held Tested-by: build bot (Jenkins) --- src/drivers/sof/chip.h | 2 ++ src/drivers/sof/sof.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/drivers/sof/chip.h b/src/drivers/sof/chip.h index 74e9d8880f..9ac8ad8833 100644 --- a/src/drivers/sof/chip.h +++ b/src/drivers/sof/chip.h @@ -17,6 +17,7 @@ enum _spkr_tplg { rt1011, rt1015, rt1019, + rt5650_sp, }; /* Jack topology */ @@ -24,6 +25,7 @@ enum _jack_tplg { cs42l42 = 1, da7219, nau8825, + rt5650_hp, rt5682, }; diff --git a/src/drivers/sof/sof.c b/src/drivers/sof/sof.c index ee315995bc..b3537904a4 100644 --- a/src/drivers/sof/sof.c +++ b/src/drivers/sof/sof.c @@ -20,6 +20,7 @@ static const char *get_spkr_tplg_str(enum _spkr_tplg tplg) case rt1011: return "rt1011"; case rt1015: return "rt1015"; case rt1019: return "rt1019"; + case rt5650_sp: return "rt5650"; default: return "default"; } } @@ -30,6 +31,7 @@ static const char *get_jack_tplg_str(enum _jack_tplg tplg) case cs42l42: return "cs42l42"; case da7219: return "da7219"; case nau8825: return "nau8825"; + case rt5650_hp: return "rt5650"; case rt5682: return "rt5682"; default: return "default"; }