summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/video/vidconsole-uclass.c3
-rw-r--r--test/dm/video.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/video/vidconsole-uclass.c b/drivers/video/vidconsole-uclass.c
index 3145fd8d6f..4c0efd52f5 100644
--- a/drivers/video/vidconsole-uclass.c
+++ b/drivers/video/vidconsole-uclass.c
@@ -91,6 +91,9 @@ int vidconsole_put_char(struct udevice *dev, char ch)
int ret;
switch (ch) {
+ case '\a':
+ /* beep */
+ break;
case '\r':
priv->xcur_frac = 0;
break;
diff --git a/test/dm/video.c b/test/dm/video.c
index be94633f74..4e3f9d558f 100644
--- a/test/dm/video.c
+++ b/test/dm/video.c
@@ -124,7 +124,7 @@ DM_TEST(dm_test_video_text, DM_TESTF_SCAN_PDATA | DM_TESTF_SCAN_FDT);
static int dm_test_video_chars(struct unit_test_state *uts)
{
struct udevice *dev, *con;
- const char *test_string = "Well\b\b\b\bxhe is\r \n\ta very modest \bman\n\t\tand Has much to\b\bto be modest about.";
+ const char *test_string = "Well\b\b\b\bxhe is\r \n\ta very \amodest \bman\n\t\tand Has much to\b\bto be modest about.";
const char *s;
ut_assertok(uclass_get_device(UCLASS_VIDEO, 0, &dev));