summaryrefslogtreecommitdiff
path: root/src/drivers/sof
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2023-09-22 11:47:22 -0500
committerFelix Held <felix-coreboot@felixheld.de>2023-09-25 15:35:05 +0000
commit7f53e11425b59f27e2fa70bab9daa3ca0a509177 (patch)
tree05a88cf0c5621a1bc8cfccd690247d311f4e2e6f /src/drivers/sof
parent9f01005da04951e53bd14cea105606c32cac15ed (diff)
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 <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/78092 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/sof')
-rw-r--r--src/drivers/sof/chip.h2
-rw-r--r--src/drivers/sof/sof.c2
2 files changed, 4 insertions, 0 deletions
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";
}