mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-07 01:52:46 +08:00
[vpu]: compatible for vpu-service node
Change-Id: Ia32c6c075e928dd932726885d76146e7f0a3b768 Signed-off-by: Xingwen Fang <fxw@rock-chips.com>
This commit is contained in:

committed by
Herman Chen

parent
c7cdadb5a9
commit
11876f0465
@@ -234,6 +234,9 @@ RK_U32 VPUCheckSupportWidth()
|
||||
VPUHwDecConfig_t hwCfg;
|
||||
int fd = -1;
|
||||
fd = open("/dev/vpu_service", O_RDWR);
|
||||
if (fd < 0) {
|
||||
fd = open("/dev/vpu-service", O_RDWR);
|
||||
}
|
||||
memset(&hwCfg, 0, sizeof(VPUHwDecConfig_t));
|
||||
if (fd >= 0) {
|
||||
if (VPUClientGetHwCfg(fd, (RK_U32*)&hwCfg, sizeof(hwCfg))) {
|
||||
|
Reference in New Issue
Block a user