forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[media] wm8775: Revert changeset fcb9757 to avoid a regression
It seems that cx88 and ivtv use wm8775 on some different modes. The patch that added support for a board with wm8775 broke ivtv boards with this device. As we're too close to release 2.6.37, let's just revert it. Reported-by: Andy Walls <[email protected]> Reported-by: Eric Sharkey <[email protected]> Reported-by: Auric <[email protected]> Reported by: David Gesswein <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
- Loading branch information
Mauro Carvalho Chehab
committed
Jan 3, 2011
1 parent
f23b795
commit 46e67ac
Showing
6 changed files
with
61 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,6 @@ | |
#include "cx88.h" | ||
#include <media/v4l2-common.h> | ||
#include <media/v4l2-ioctl.h> | ||
#include <media/wm8775.h> | ||
|
||
MODULE_DESCRIPTION("v4l2 driver module for cx2388x based TV cards"); | ||
MODULE_AUTHOR("Gerd Knorr <[email protected]> [SuSE Labs]"); | ||
|
@@ -977,7 +976,6 @@ int cx88_set_control(struct cx88_core *core, struct v4l2_control *ctl) | |
const struct cx88_ctrl *c = NULL; | ||
u32 value,mask; | ||
int i; | ||
struct v4l2_control client_ctl; | ||
|
||
for (i = 0; i < CX8800_CTLS; i++) { | ||
if (cx8800_ctls[i].v.id == ctl->id) { | ||
|
@@ -991,27 +989,6 @@ int cx88_set_control(struct cx88_core *core, struct v4l2_control *ctl) | |
ctl->value = c->v.minimum; | ||
if (ctl->value > c->v.maximum) | ||
ctl->value = c->v.maximum; | ||
|
||
/* Pass changes onto any WM8775 */ | ||
client_ctl.id = ctl->id; | ||
switch (ctl->id) { | ||
case V4L2_CID_AUDIO_MUTE: | ||
client_ctl.value = ctl->value; | ||
break; | ||
case V4L2_CID_AUDIO_VOLUME: | ||
client_ctl.value = (ctl->value) ? | ||
(0x90 + ctl->value) << 8 : 0; | ||
break; | ||
case V4L2_CID_AUDIO_BALANCE: | ||
client_ctl.value = ctl->value << 9; | ||
break; | ||
default: | ||
client_ctl.id = 0; | ||
break; | ||
} | ||
if (client_ctl.id) | ||
call_hw(core, WM8775_GID, core, s_ctrl, &client_ctl); | ||
|
||
mask=c->mask; | ||
switch (ctl->id) { | ||
case V4L2_CID_AUDIO_BALANCE: | ||
|
@@ -1558,9 +1535,7 @@ static int radio_queryctrl (struct file *file, void *priv, | |
if (c->id < V4L2_CID_BASE || | ||
c->id >= V4L2_CID_LASTP1) | ||
return -EINVAL; | ||
if (c->id == V4L2_CID_AUDIO_MUTE || | ||
c->id == V4L2_CID_AUDIO_VOLUME || | ||
c->id == V4L2_CID_AUDIO_BALANCE) { | ||
if (c->id == V4L2_CID_AUDIO_MUTE) { | ||
for (i = 0; i < CX8800_CTLS; i++) { | ||
if (cx8800_ctls[i].v.id == c->id) | ||
break; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.