while COMPILE_TEST is y and MAILBOX is n, build fails:
ERROR: modpost: "mbox_request_channel_byname" [drivers/media/platform/amphion/amphion-vpu.ko] undefined!
ERROR: modpost: "mbox_free_channel" [drivers/media/platform/amphion/amphion-vpu.ko] undefined!
ERROR: modpost: "mbox_send_message" [drivers/media/platform/amphion/amphion-vpu.ko] undefined!
Adding a MAILBOX dependency in VIDEO_AMPHION_VPU to fix this.
Link: https://lore.kernel.org/linux-media/20220318030305.39120-1-yuehaibing@huawei.com
Fixes: 52b3a219dd
("media: platform: amphion: move config to its own file")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
22 lines
769 B
Text
22 lines
769 B
Text
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
comment "Amphion drivers"
|
|
|
|
config VIDEO_AMPHION_VPU
|
|
tristate "Amphion VPU (Video Processing Unit) Codec IP"
|
|
depends on V4L_MEM2MEM_DRIVERS
|
|
depends on ARCH_MXC || COMPILE_TEST
|
|
depends on MEDIA_SUPPORT
|
|
depends on VIDEO_DEV && MAILBOX
|
|
select MEDIA_CONTROLLER
|
|
select V4L2_MEM2MEM_DEV
|
|
select VIDEOBUF2_DMA_CONTIG
|
|
select VIDEOBUF2_VMALLOC
|
|
help
|
|
Amphion VPU Codec IP contains two parts: Windsor and Malone.
|
|
Windsor is encoder that supports H.264, and Malone is decoder
|
|
that supports H.264, HEVC, and other video formats.
|
|
This is a V4L2 driver for NXP MXC 8Q video accelerator hardware.
|
|
It accelerates encoding and decoding operations on
|
|
various NXP SoCs.
|
|
To compile this driver as a module choose m here.
|