Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6b1850d authored by Andy Walls's avatar Andy Walls Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB: cx23885: Add a v4l2_subdev group id for the CX2388[578] integrated AV core

parent 52fd3dda
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1192,7 +1192,10 @@ void cx23885_card_setup(struct cx23885_dev *dev)
		dev->sd_cx25840 = v4l2_i2c_new_subdev(&dev->v4l2_dev,
				&dev->i2c_bus[2].i2c_adap,
				"cx25840", "cx25840", 0x88 >> 1, NULL);
		if (dev->sd_cx25840) {
			dev->sd_cx25840->grp_id = CX23885_HW_AV_CORE;
			v4l2_subdev_call(dev->sd_cx25840, core, load_fw);
		}
		break;
	}

+2 −1
Original line number Diff line number Diff line
@@ -404,6 +404,7 @@ static inline struct cx23885_dev *to_cx23885(struct v4l2_device *v4l2_dev)
	v4l2_device_call_all(&dev->v4l2_dev, 0, o, f, ##args)

#define CX23885_HW_888_IR  (1 << 0)
#define CX23885_HW_AV_CORE (1 << 1)

#define call_hw(dev, grpid, o, f, args...) \
	v4l2_device_call_all(&dev->v4l2_dev, grpid, o, f, ##args)