Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
b6d398c9
Commit
b6d398c9
authored
Jun 17, 2008
by
Antoine Cellerier
Committed by
Ugo Riboni
Jun 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix forwarding of return error codes from tvp5146 to davinci_vpfe v4l2 driver.
parent
162283b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
drivers/media/video/davinci_vpfe.c
drivers/media/video/davinci_vpfe.c
+7
-7
No files found.
drivers/media/video/davinci_vpfe.c
View file @
b6d398c9
...
...
@@ -500,7 +500,7 @@ static int vpfe_doioctl(struct inode *inode, struct file *file,
mode
=
TVP5146_MODE_SECAM
;
}
vpfe
->
tvp5146_params
.
mode
=
mode
|
(
sqp
<<
3
);
tvp5146_ctrl
(
TVP5146_CONFIG
,
&
vpfe
->
tvp5146_params
);
ret
=
tvp5146_ctrl
(
TVP5146_CONFIG
,
&
vpfe
->
tvp5146_params
);
up
(
&
vpfe
->
lock
);
break
;
...
...
@@ -586,7 +586,7 @@ static int vpfe_doioctl(struct inode *inode, struct file *file,
ret
=
-
EINVAL
;
}
vpfe
->
tvp5146_params
.
amuxmode
=
*
index
;
tvp5146_ctrl
(
TVP5146_SET_AMUXMODE
,
index
);
ret
=
tvp5146_ctrl
(
TVP5146_SET_AMUXMODE
,
index
);
break
;
}
case
VIDIOC_CROPCAP
:
...
...
@@ -627,17 +627,17 @@ static int vpfe_doioctl(struct inode *inode, struct file *file,
}
case
VIDIOC_G_CTRL
:
down_interruptible
(
&
vpfe
->
lock
);
tvp5146_ctrl
(
VIDIOC_G_CTRL
,
arg
);
ret
=
tvp5146_ctrl
(
VIDIOC_G_CTRL
,
arg
);
up
(
&
vpfe
->
lock
);
break
;
case
VIDIOC_S_CTRL
:
down_interruptible
(
&
vpfe
->
lock
);
tvp5146_ctrl
(
VIDIOC_S_CTRL
,
arg
);
ret
=
tvp5146_ctrl
(
VIDIOC_S_CTRL
,
arg
);
up
(
&
vpfe
->
lock
);
break
;
case
VIDIOC_QUERYCTRL
:
down_interruptible
(
&
vpfe
->
lock
);
tvp5146_ctrl
(
VIDIOC_QUERYCTRL
,
arg
);
ret
=
tvp5146_ctrl
(
VIDIOC_QUERYCTRL
,
arg
);
up
(
&
vpfe
->
lock
);
break
;
case
VIDIOC_G_CROP
:
...
...
@@ -761,7 +761,7 @@ static int vpfe_doioctl(struct inode *inode, struct file *file,
vpfe
->
curFrm
->
state
=
STATE_ACTIVE
;
/* sense the current video input standard */
tvp5146_ctrl
(
TVP5146_CONFIG
,
&
vpfe
->
tvp5146_params
);
ret
=
tvp5146_ctrl
(
TVP5146_CONFIG
,
&
vpfe
->
tvp5146_params
);
/* configure the ccdc and resizer as needed */
/* start capture by enabling CCDC and resizer */
ccdc_config_ycbcr
(
&
vpfe
->
ccdc_params
);
...
...
@@ -882,7 +882,7 @@ static int vpfe_doioctl(struct inode *inode, struct file *file,
vpfe
->
pixelaspect
=
sp_aspect
;
}
vpfe
->
std
=
std
;
tvp5146_ctrl
(
TVP5146_CONFIG
,
params
);
ret
=
tvp5146_ctrl
(
TVP5146_CONFIG
,
params
);
vpfe
->
tvp5146_params
=
*
params
;
up
(
&
vpfe
->
lock
);
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment