Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
20ae9742
Commit
20ae9742
authored
Nov 20, 2011
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[media] em28xx: Add IR support for em2884
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
parent
de72405f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
drivers/media/video/em28xx/em28xx-input.c
drivers/media/video/em28xx/em28xx-input.c
+5
-2
No files found.
drivers/media/video/em28xx/em28xx-input.c
View file @
20ae9742
...
...
@@ -306,7 +306,8 @@ static void em28xx_ir_handle_key(struct em28xx_IR *ir)
poll_result
.
rc_data
[
0
],
poll_result
.
toggle_bit
);
if
(
ir
->
dev
->
chip_id
==
CHIP_ID_EM2874
)
if
(
ir
->
dev
->
chip_id
==
CHIP_ID_EM2874
||
ir
->
dev
->
chip_id
==
CHIP_ID_EM2884
)
/* The em2874 clears the readcount field every time the
register is read. The em2860/2880 datasheet says that it
is supposed to clear the readcount, but it doesn't. So with
...
...
@@ -371,13 +372,15 @@ int em28xx_ir_change_protocol(struct rc_dev *rc_dev, u64 rc_type)
case
CHIP_ID_EM2883
:
ir
->
get_key
=
default_polling_getkey
;
break
;
case
CHIP_ID_EM2884
:
case
CHIP_ID_EM2874
:
case
CHIP_ID_EM28174
:
ir
->
get_key
=
em2874_polling_getkey
;
em28xx_write_regs
(
dev
,
EM2874_R50_IR_CONFIG
,
&
ir_config
,
1
);
break
;
default:
printk
(
"Unrecognized em28xx chip id: IR not supported
\n
"
);
printk
(
"Unrecognized em28xx chip id 0x%02x: IR not supported
\n
"
,
dev
->
chip_id
);
rc
=
-
EINVAL
;
}
...
...
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