Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161588
b: refs/heads/master
c: a65f315
h: refs/heads/master
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Sep 12, 2009
1 parent 813a56a commit 4140e2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 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: a4c1cbc7819e890d4c2bc2b79b6cbf0fd9cad699
refs/heads/master: a65f3159244f27ce6ff84dd1bb641079acdbd396
17 changes: 5 additions & 12 deletions trunk/drivers/media/radio/si4713-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -1841,25 +1841,19 @@ static int si4713_s_modulator(struct v4l2_subdev *sd, struct v4l2_modulator *vm)
u16 stereo, rds;
u32 p;

if (!sdev) {
rval = -ENODEV;
goto exit;
}
if (!sdev)
return -ENODEV;

if (vm->index > 0) {
rval = -EINVAL;
goto exit;
}
if (vm->index > 0)
return -EINVAL;

/* Set audio mode: mono or stereo */
if (vm->txsubchans & V4L2_TUNER_SUB_STEREO)
stereo = 1;
else if (vm->txsubchans & V4L2_TUNER_SUB_MONO)
stereo = 0;
else
rval = -EINVAL;
if (rval < 0)
goto exit;
return -EINVAL;

rds = !!(vm->txsubchans & V4L2_TUNER_SUB_RDS);

Expand All @@ -1885,7 +1879,6 @@ static int si4713_s_modulator(struct v4l2_subdev *sd, struct v4l2_modulator *vm)

unlock:
mutex_unlock(&sdev->mutex);
exit:
return rval;
}

Expand Down

0 comments on commit 4140e2a

Please sign in to comment.