Skip to contentSkip to conversation

package/linux-firmware: add option for V4L cx231xx devices

PATCH New Corentin Labbe 2 participants 2 messages Jul 12, 2021 – Jul 19, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/linux-firmware: add option for V4L cx231xx devices

V4L cx231xx devices need a firmware to be usefull.
So this patch adds a submenu for V4L firmwares and an option for cx231xx devices.

---
 package/linux-firmware/Config.in         | 9 +++++++++
 package/linux-firmware/linux-firmware.mk | 5 +++++
 2 files changed, 14 insertions(+)
package/linux-firmware/Config.in +9 -0
index 01d43f21dd..3720be7e63 100644
@@ -518,4 +518,13 @@ config BR2_PACKAGE_LINUX_FIRMWARE_USB_SERIAL_TI
 
 endmenu
 
+menu "V4L Firmware"
+
+config BR2_PACKAGE_LINUX_FIRMWARE_V4L_CX231XX
+	bool "V4L CX231XX Firmware for Conexant Cx23100/101/102 USB broadcast A/V decoder"
+	help
+	  Firmware files for Conexant Cx23100/101/102 USB broadcast A/V decoder needed by the Linux CX231XX driver.
+
+endmenu
+
 endif
package/linux-firmware/linux-firmware.mk +5 -0
index 9adab67bf1..5ff8204571 100644
@@ -672,6 +672,11 @@ LINUX_FIRMWARE_FILES += ti_3410.fw ti_5052.fw \
 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.moxa
 endif
 
+ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_V4L_CX231XX),y)
+LINUX_FIRMWARE_FILES += v4l-cx231xx-avcore-01.fw
+# linux-firmware WHENCE specify no specific licence file
+endif
+
 ifneq ($(LINUX_FIRMWARE_FILES)$(LINUX_FIRMWARE_DIRS),)
 
 define LINUX_FIRMWARE_BUILD_CMDS
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/1 package/linux-firmware: add option for V4L cx231xx devices

Hello Corentin,

Quoted 5 lines · On Mon, 12 Jul 2021 10:57:18 +0000 Corentin Labbe <[email protected]> wrote:

V4L cx231xx devices need a firmware to be usefull.
So this patch adds a submenu for V4L firmwares and an option for cx231xx devices.

Thanks for your patch.

package/linux-firmware/Config.in config BR2_PACKAGE_LINUX_FIRMWARE_USB_SERIAL_TI · line 523

Quoted 3 lines
package/linux-firmware/Config.in +3 -0
+menu "V4L Firmware"
+
+config BR2_PACKAGE_LINUX_FIRMWARE_V4L_CX231XX

We usually don't have the subsystem name in the option.

package/linux-firmware/Config.in config BR2_PACKAGE_LINUX_FIRMWARE_USB_SERIAL_TI · line 524

Quoted 1 line
package/linux-firmware/Config.in +1 -0
+	bool "V4L CX231XX Firmware for Conexant Cx23100/101/102 USB broadcast A/V decoder"

This was a bit too long, and we normally only have the name of the hardware, so I reduced a bit to:

	bool "Conexant Cx23100/101/102 USB broadcast A/V decoder"

package/linux-firmware/Config.in config BR2_PACKAGE_LINUX_FIRMWARE_USB_SERIAL_TI · line 526

Quoted 2 lines
package/linux-firmware/Config.in +2 -0
+	help
+	  Firmware files for Conexant Cx23100/101/102 USB broadcast A/V decoder needed by the Linux CX231XX driver.

This line was too long, this is reported by "make check-package", so I wrapped the line.

Applied with those changes. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com