This source file includes following definitions.
- pvr2_wm8775_subdev_update
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 #include "pvrusb2-wm8775.h"
16
17
18 #include "pvrusb2-hdw-internal.h"
19 #include "pvrusb2-debug.h"
20 #include <linux/videodev2.h>
21 #include <media/v4l2-common.h>
22 #include <linux/errno.h>
23
24 void pvr2_wm8775_subdev_update(struct pvr2_hdw *hdw, struct v4l2_subdev *sd)
25 {
26 if (hdw->input_dirty || hdw->force_dirty) {
27 u32 input;
28
29 switch (hdw->input_val) {
30 case PVR2_CVAL_INPUT_RADIO:
31 input = 1;
32 break;
33 default:
34
35 input = 2;
36 break;
37 }
38 pvr2_trace(PVR2_TRACE_CHIPS, "subdev wm8775 set_input(val=%d route=0x%x)",
39 hdw->input_val, input);
40
41 sd->ops->audio->s_routing(sd, input, 0, 0);
42 }
43 }