~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/media/video/cx18/cx18-av-core.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#define _CX18_AV_CORE_H_
27
27
 
28
28
#include <media/v4l2-device.h>
 
29
#include <media/v4l2-ctrls.h>
29
30
 
30
31
struct cx18;
31
32
 
95
96
 
96
97
struct cx18_av_state {
97
98
        struct v4l2_subdev sd;
 
99
        struct v4l2_ctrl_handler hdl;
 
100
        struct v4l2_ctrl *volume;
98
101
        int radio;
99
102
        v4l2_std_id std;
100
103
        enum cx18_av_video_input vid_input;
101
104
        enum cx18_av_audio_input aud_input;
102
105
        u32 audclk_freq;
103
106
        int audmode;
104
 
        int default_volume;
105
107
        u32 id;
106
108
        u32 rev;
107
109
        int is_initialized;
108
110
 
109
111
        /*
110
 
         * The VBI slicer starts operating and counting lines, begining at
 
112
         * The VBI slicer starts operating and counting lines, beginning at
111
113
         * slicer line count of 1, at D lines after the deassertion of VRESET.
112
114
         * This staring field line, S, is 6 (& 319) or 10 (& 273) for 625 or 525
113
115
         * line systems respectively.  Sliced ancillary data captured on VBI
347
349
        return container_of(sd, struct cx18_av_state, sd);
348
350
}
349
351
 
 
352
static inline struct v4l2_subdev *to_sd(struct v4l2_ctrl *ctrl)
 
353
{
 
354
        return &container_of(ctrl->handler, struct cx18_av_state, hdl)->sd;
 
355
}
 
356
 
350
357
/* ----------------------------------------------------------------------- */
351
358
/* cx18_av-core.c                                                          */
352
359
int cx18_av_write(struct cx18 *cx, u16 addr, u8 value);
369
376
 
370
377
/* ----------------------------------------------------------------------- */
371
378
/* cx18_av-audio.c                                                         */
372
 
int cx18_av_audio_g_ctrl(struct cx18 *cx, struct v4l2_control *ctrl);
373
 
int cx18_av_audio_s_ctrl(struct cx18 *cx, struct v4l2_control *ctrl);
374
379
int cx18_av_s_clock_freq(struct v4l2_subdev *sd, u32 freq);
375
380
void cx18_av_audio_set_path(struct cx18 *cx);
 
381
extern const struct v4l2_ctrl_ops cx18_av_audio_ctrl_ops;
376
382
 
377
383
/* ----------------------------------------------------------------------- */
378
384
/* cx18_av-vbi.c                                                           */