diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-03-11 06:12:10 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-24 12:49:07 -0300 |
commit | b95dd82cd1b1e81c2019effd5e012e6989622ba9 (patch) | |
tree | 8ef4f095b4f302e3caabdc0db4fd0357ad0f4111 /drivers/staging/media/go7007/go7007-v4l2.c | |
parent | 9ff76e36dc632289658e7ff65e9e5fdfe6cca905 (diff) | |
download | op-kernel-dev-b95dd82cd1b1e81c2019effd5e012e6989622ba9.zip op-kernel-dev-b95dd82cd1b1e81c2019effd5e012e6989622ba9.tar.gz |
[media] go7007: set up the saa7115 audio clock correctly
The s_crystal_freq operation has to be called for the saa7115 to
set up the audio clock correctly.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/staging/media/go7007/go7007-v4l2.c')
-rw-r--r-- | drivers/staging/media/go7007/go7007-v4l2.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/staging/media/go7007/go7007-v4l2.c b/drivers/staging/media/go7007/go7007-v4l2.c index 4d9a998..824b7e5 100644 --- a/drivers/staging/media/go7007/go7007-v4l2.c +++ b/drivers/staging/media/go7007/go7007-v4l2.c @@ -35,6 +35,7 @@ #include <media/v4l2-ioctl.h> #include <media/v4l2-subdev.h> #include <media/v4l2-event.h> +#include <media/saa7115.h> #include "go7007.h" #include "go7007-priv.h" @@ -1461,6 +1462,12 @@ int go7007_v4l2_init(struct go7007 *go) v4l2_disable_ioctl(go->video_dev, VIDIOC_S_AUDIO); v4l2_disable_ioctl(go->video_dev, VIDIOC_ENUMAUDIO); } + /* Setup correct crystal frequency on this board */ + if (go->board_info->sensor_flags & GO7007_SENSOR_SAA7115) + v4l2_subdev_call(go->sd_video, video, s_crystal_freq, + SAA7115_FREQ_24_576_MHZ, + SAA7115_FREQ_FL_APLL | SAA7115_FREQ_FL_UCGC | + SAA7115_FREQ_FL_DOUBLE_ASCLK); go7007_s_input(go); if (go->board_info->sensor_flags & GO7007_SENSOR_TV) go7007_s_std(go); |