summaryrefslogtreecommitdiff
path: root/src/drivers/sof
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2023-05-13 14:46:51 -0500
committerFelix Held <felix-coreboot@felixheld.de>2023-05-15 16:35:34 +0000
commite1ff8756cfeade8ea30e6b78581b5c1328ef8aca (patch)
tree94c1a72b2e7e0514b43347c4823f8f49abc721ea /src/drivers/sof
parent33f9170dae59116f74a8189f2516cc12c8f90c15 (diff)
drivers/sof: Add support for max98357a with 4-ch output
Will allow boards using this speaker configuration to correctly specify their output type. TEST=tested with rest of patch train Change-Id: Iefcfc928e2611f533af1a2962ec2761ec1b7bf3a Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/75210 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: CoolStar <coolstarorganization@gmail.com> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/drivers/sof')
-rw-r--r--src/drivers/sof/chip.h1
-rw-r--r--src/drivers/sof/sof.c7
2 files changed, 5 insertions, 3 deletions
diff --git a/src/drivers/sof/chip.h b/src/drivers/sof/chip.h
index 134c0deadc..518e06c3bd 100644
--- a/src/drivers/sof/chip.h
+++ b/src/drivers/sof/chip.h
@@ -11,6 +11,7 @@ enum _spkr_tplg {
max98373 = 1,
max98360a,
max98357a,
+ max98357a_tdm,
max98390,
rt1011,
rt1015,
diff --git a/src/drivers/sof/sof.c b/src/drivers/sof/sof.c
index d11f7300c0..a8fc3cee0d 100644
--- a/src/drivers/sof/sof.c
+++ b/src/drivers/sof/sof.c
@@ -14,9 +14,10 @@ static const char *get_spkr_tplg_str(unsigned int index)
case 1: return "max98373";
case 2: return "max98360a";
case 3: return "max98357a";
- case 4: return "max98390";
- case 5: return "rt1011";
- case 6: return "rt1015";
+ case 4: return "max98357a-tdm";
+ case 5: return "max98390";
+ case 6: return "rt1011";
+ case 7: return "rt1015";
default: return "default";
}
}