-
Notifications
You must be signed in to change notification settings - Fork 0
/
exynos-fix-edid-log-printing.patch
49 lines (43 loc) · 1.81 KB
/
exynos-fix-edid-log-printing.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
From 5b9c9dd57b0c41851ea7cd0e8694b85228cca01a Mon Sep 17 00:00:00 2001
From: Valentin Manea <[email protected]>
Date: Sat, 7 Mar 2015 11:26:55 +0200
Subject: [PATCH] Fix edid log printing
---
drivers/media/video/exynos/tv/hdmi_edid.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/media/video/exynos/tv/hdmi_edid.c b/drivers/media/video/exynos/tv/hdmi_edid.c
index 18a31f6..ba33f4f 100644
--- a/drivers/media/video/exynos/tv/hdmi_edid.c
+++ b/drivers/media/video/exynos/tv/hdmi_edid.c
@@ -110,6 +110,7 @@ static u32 preferred_preset = HDMI_DEFAULT_PRESET;
static u32 edid_misc;
static int max_audio_channels;
static u32 source_phy_addr = 0;
+module_param_named(source_phy_addr, source_phy_addr, uint, 0644);
static int edid_i2c_read(struct hdmi_device *hdev, u8 segment, u8 offset,
u8 *buf, size_t len)
@@ -424,7 +425,7 @@ int edid_update(struct hdmi_device *hdev)
preset = edid_find_preset(&specs.modedb[i]);
if (preset) {
if (preset->supported == false) {
- pr_info("EDID: found %s", preset->name);
+ pr_info("EDID: found %s\n", preset->name);
preset->supported = true;
}
if (first) {
@@ -439,7 +440,7 @@ int edid_update(struct hdmi_device *hdev)
edid_extension_update(&specs);
edid_misc = specs.misc;
- pr_info("EDID: misc flags %08x", edid_misc);
+ pr_info("EDID: misc flags %08x\n", edid_misc);
for (i = 0; i < specs.audiodb_len; i++) {
if (specs.audiodb[i].format != FB_AUDIO_LPCM)
@@ -456,7 +457,8 @@ int edid_update(struct hdmi_device *hdev)
} else {
max_audio_channels = 0;
}
- pr_info("EDID: Audio channels %d", max_audio_channels);
+ pr_info("EDID: Audio channels %d\n", max_audio_channels);
+ pr_info("EDID: HDMI phys address = %u\n", source_phy_addr);
fb_destroy_modedb(specs.modedb);
fb_destroy_audiodb(specs.audiodb);