artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bcd3da
)
drm/amdgpu: Fix uninitialized variable warning in amdgpu_afmt_acr
author
jsg
<jsg@openbsd.org>
Mon, 9 Sep 2024 08:22:35 +0000
(08:22 +0000)
committer
jsg
<jsg@openbsd.org>
Mon, 9 Sep 2024 08:22:35 +0000
(08:22 +0000)
From Ma Jun
761964b756c6e760e8af25e383b7f0a8cc473ac0
in linux-6.6.y/6.6.50
c0d6bd3cd209419cc46ac49562bef1db65d90e70
in mainline linux
sys/dev/pci/drm/amd/amdgpu/amdgpu_afmt.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/amd/amdgpu/amdgpu_afmt.c
b/sys/dev/pci/drm/amd/amdgpu/amdgpu_afmt.c
index
a4d6597
..
80771b1
100644
(file)
--- a/
sys/dev/pci/drm/amd/amdgpu/amdgpu_afmt.c
+++ b/
sys/dev/pci/drm/amd/amdgpu/amdgpu_afmt.c
@@
-100,6
+100,7
@@
struct amdgpu_afmt_acr amdgpu_afmt_acr(uint32_t clock)
amdgpu_afmt_calc_cts(clock, &res.cts_32khz, &res.n_32khz, 32000);
amdgpu_afmt_calc_cts(clock, &res.cts_44_1khz, &res.n_44_1khz, 44100);
amdgpu_afmt_calc_cts(clock, &res.cts_48khz, &res.n_48khz, 48000);
+ res.clock = clock;
return res;
}