radio-isa.c (b530a447bb588fdf43fdf4eb909e4ee1921d47ac) radio-isa.c (2f73c7c582a685b3198b974cd6d964d0338f8ab5)
1/*
2 * Framework for ISA radio drivers.
3 * This takes care of all the V4L2 scaffolding, allowing the ISA drivers
4 * to concentrate on the actual hardware operation.
5 *
6 * Copyright (C) 2012 Hans Verkuil <hans.verkuil@cisco.com>
7 *
8 * This program is free software; you can redistribute it and/or

--- 73 unchanged lines hidden (view full) ---

82 v->signal = ops->g_signal(isa);
83 else
84 v->signal = (v->rxsubchans & V4L2_TUNER_SUB_STEREO) ?
85 0xffff : 0;
86 return 0;
87}
88
89static int radio_isa_s_tuner(struct file *file, void *priv,
1/*
2 * Framework for ISA radio drivers.
3 * This takes care of all the V4L2 scaffolding, allowing the ISA drivers
4 * to concentrate on the actual hardware operation.
5 *
6 * Copyright (C) 2012 Hans Verkuil <hans.verkuil@cisco.com>
7 *
8 * This program is free software; you can redistribute it and/or

--- 73 unchanged lines hidden (view full) ---

82 v->signal = ops->g_signal(isa);
83 else
84 v->signal = (v->rxsubchans & V4L2_TUNER_SUB_STEREO) ?
85 0xffff : 0;
86 return 0;
87}
88
89static int radio_isa_s_tuner(struct file *file, void *priv,
90 struct v4l2_tuner *v)
90 const struct v4l2_tuner *v)
91{
92 struct radio_isa_card *isa = video_drvdata(file);
93 const struct radio_isa_ops *ops = isa->drv->ops;
94
95 if (v->index)
96 return -EINVAL;
97 if (ops->s_stereo) {
98 isa->stereo = (v->audmode == V4L2_TUNER_MODE_STEREO);

--- 296 unchanged lines hidden ---
91{
92 struct radio_isa_card *isa = video_drvdata(file);
93 const struct radio_isa_ops *ops = isa->drv->ops;
94
95 if (v->index)
96 return -EINVAL;
97 if (ops->s_stereo) {
98 isa->stereo = (v->audmode == V4L2_TUNER_MODE_STEREO);

--- 296 unchanged lines hidden ---