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>
This commit is contained in:
Matt DeVillier 2023-09-22 11:47:22 -05:00 committed by Felix Held
parent 9f01005da0
commit 7f53e11425
2 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,7 @@ enum _spkr_tplg {
rt1011, rt1011,
rt1015, rt1015,
rt1019, rt1019,
rt5650_sp,
}; };
/* Jack topology */ /* Jack topology */
@ -24,6 +25,7 @@ enum _jack_tplg {
cs42l42 = 1, cs42l42 = 1,
da7219, da7219,
nau8825, nau8825,
rt5650_hp,
rt5682, rt5682,
}; };

View File

@ -20,6 +20,7 @@ static const char *get_spkr_tplg_str(enum _spkr_tplg tplg)
case rt1011: return "rt1011"; case rt1011: return "rt1011";
case rt1015: return "rt1015"; case rt1015: return "rt1015";
case rt1019: return "rt1019"; case rt1019: return "rt1019";
case rt5650_sp: return "rt5650";
default: return "default"; default: return "default";
} }
} }
@ -30,6 +31,7 @@ static const char *get_jack_tplg_str(enum _jack_tplg tplg)
case cs42l42: return "cs42l42"; case cs42l42: return "cs42l42";
case da7219: return "da7219"; case da7219: return "da7219";
case nau8825: return "nau8825"; case nau8825: return "nau8825";
case rt5650_hp: return "rt5650";
case rt5682: return "rt5682"; case rt5682: return "rt5682";
default: return "default"; default: return "default";
} }