[media] cx18: embed video_device
Embed the video_device struct to simplify the error handling and in order to (eventually) get rid of video_device_alloc/release. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Cc: Andy Walls <awalls@md.metrocast.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
38a1421ddd
commit
08569d6477
@@ -216,7 +216,7 @@ static int cx18_alsa_load(struct cx18 *cx)
|
||||
}
|
||||
|
||||
s = &cx->streams[CX18_ENC_STREAM_TYPE_PCM];
|
||||
if (s->video_dev == NULL) {
|
||||
if (s->video_dev.v4l2_dev == NULL) {
|
||||
CX18_DEBUG_ALSA_INFO("%s: PCM stream for card is disabled - "
|
||||
"skipping\n", __func__);
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user