Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 13452
b: refs/heads/master
c: c5d4a70
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab authored and Linus Torvalds committed Nov 9, 2005
1 parent 702c0dc commit e8cef47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e2998e10a9ed47cb70a5be6207aa34b2f2f22c17
refs/heads/master: c5d4a70ff82aab638b871debc9c8b27216cf1ecd
9 changes: 5 additions & 4 deletions trunk/drivers/media/video/msp3400.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ static void msp3400c_set_scart(struct i2c_client *client, int in, int out)

msp->in_scart=in;

if (in<=2) {
if (in >= 1 && in <= 8 && out >= 0 && out <= 2) {
if (-1 == scarts[out][in])
return;

Expand Down Expand Up @@ -2120,10 +2120,11 @@ static int msp_command(struct i2c_client *client, unsigned int cmd, void *arg)
case VIDIOC_G_AUDOUT:
{
struct v4l2_audioout *a=(struct v4l2_audioout *)arg;
int idx=a->index;

memset(a,0,sizeof(*a));

switch (a->index) {
switch (idx) {
case 0:
strcpy(a->name,"Scart1 Out");
break;
Expand Down Expand Up @@ -2152,8 +2153,8 @@ static int msp_command(struct i2c_client *client, unsigned int cmd, void *arg)
else
msp->i2s_mode=0;
}
printk("Setting audio out on msp34xx to input %i, mode %i\n",a->index,msp->i2s_mode);
msp3400c_set_scart(client,msp->in_scart,a->index);
dprintk("Setting audio out on msp34xx to input %i, mode %i\n",a->index,msp->i2s_mode);
msp3400c_set_scart(client,msp->in_scart,a->index+1);

break;
}
Expand Down

0 comments on commit e8cef47

Please sign in to comment.