projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dccd086
)
audio: solve 32bit system hdmi in mute issue [1/1]
author
Lianlian Zhu
<lianlian.zhu@amlogic.com>
Mon, 22 Oct 2018 08:55:57 +0000
(16:55 +0800)
committer
Tao Zeng
<tao.zeng@amlogic.com>
Tue, 23 Oct 2018 08:43:05 +0000
(
01:43
-0700)
PD#SWPL-813
Problem:
audio_iomap read audin reg 2800 error
Solution:
register val read from aml_read_cbus
maybe not positive number in 32bit system,
so change *val == -1 to judge mistake.
Verify:
verified by p321
Change-Id: Ie87001fa1daa621cadc2ce329d8dd863f39dcdb6
Signed-off-by: Lianlian Zhu <lianlian.zhu@amlogic.com>
sound/soc/amlogic/meson/audio_iomap.c
patch
|
blob
|
history
diff --git
a/sound/soc/amlogic/meson/audio_iomap.c
b/sound/soc/amlogic/meson/audio_iomap.c
index
172ca07
..
a5d6f72
100644
(file)
--- a/
sound/soc/amlogic/meson/audio_iomap.c
+++ b/
sound/soc/amlogic/meson/audio_iomap.c
@@
-52,7
+52,7
@@
static int aml_snd_read(u32 base_type, unsigned int reg, int *val)
ret = -1;
} else {
*val = aml_read_cbus(reg);
- if (*val
< 0
) {
+ if (*val
== -1
) {
pr_err("read cbus reg %x error\n", reg);
return -1;
}