Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330716
b: refs/heads/master
c: c98bc03
h: refs/heads/master
v: v3
  • Loading branch information
Devin Heitmueller authored and Mauro Carvalho Chehab committed Aug 9, 2012
1 parent 47644f1 commit 626c1ad
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 549ee4df1951c8a1a123e81a073d73c2e1c26588
refs/heads/master: c98bc032c52b088fa7baa27adbc2a4deed9acea7
10 changes: 10 additions & 0 deletions trunk/drivers/media/video/au0828/au0828-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1330,6 +1330,7 @@ static int vidioc_s_std(struct file *file, void *priv, v4l2_std_id * norm)
buffer, which is currently hardcoded at 720x480 */

v4l2_device_call_all(&dev->v4l2_dev, 0, core, s_std, *norm);
dev->std_set_in_tuner_core = 1;
return 0;
}

Expand Down Expand Up @@ -1540,6 +1541,15 @@ static int vidioc_s_frequency(struct file *file, void *priv,

dev->ctrl_freq = freq->frequency;

if (dev->std_set_in_tuner_core == 0) {
/* If we've never sent the standard in tuner core, do so now. We
don't do this at device probe because we don't want to incur
the cost of a firmware load */
v4l2_device_call_all(&dev->v4l2_dev, 0, core, s_std,
dev->vdev->tvnorms);
dev->std_set_in_tuner_core = 1;
}

v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_frequency, freq);

au0828_analog_stream_reset(dev);
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/media/video/au0828/au0828.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ struct au0828_dev {
unsigned int frame_count;
int ctrl_freq;
int input_type;
int std_set_in_tuner_core;
unsigned int ctrl_input;
enum au0828_dev_state dev_state;
enum au0828_stream_state stream_state;
Expand Down

0 comments on commit 626c1ad

Please sign in to comment.