diff options
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/control.h | 1 | ||||
-rw-r--r-- | include/sound/tea575x-tuner.h | 26 |
2 files changed, 18 insertions, 9 deletions
diff --git a/include/sound/control.h b/include/sound/control.h index 404acb859cee..1a94a216ed99 100644 --- a/include/sound/control.h +++ b/include/sound/control.h | |||
@@ -113,6 +113,7 @@ struct snd_kcontrol *snd_ctl_new1(const struct snd_kcontrol_new * kcontrolnew, v | |||
113 | void snd_ctl_free_one(struct snd_kcontrol * kcontrol); | 113 | void snd_ctl_free_one(struct snd_kcontrol * kcontrol); |
114 | int snd_ctl_add(struct snd_card * card, struct snd_kcontrol * kcontrol); | 114 | int snd_ctl_add(struct snd_card * card, struct snd_kcontrol * kcontrol); |
115 | int snd_ctl_remove(struct snd_card * card, struct snd_kcontrol * kcontrol); | 115 | int snd_ctl_remove(struct snd_card * card, struct snd_kcontrol * kcontrol); |
116 | int snd_ctl_replace(struct snd_card *card, struct snd_kcontrol *kcontrol, bool add_on_replace); | ||
116 | int snd_ctl_remove_id(struct snd_card * card, struct snd_ctl_elem_id *id); | 117 | int snd_ctl_remove_id(struct snd_card * card, struct snd_ctl_elem_id *id); |
117 | int snd_ctl_rename_id(struct snd_card * card, struct snd_ctl_elem_id *src_id, struct snd_ctl_elem_id *dst_id); | 118 | int snd_ctl_rename_id(struct snd_card * card, struct snd_ctl_elem_id *src_id, struct snd_ctl_elem_id *dst_id); |
118 | int snd_ctl_activate_id(struct snd_card *card, struct snd_ctl_elem_id *id, | 119 | int snd_ctl_activate_id(struct snd_card *card, struct snd_ctl_elem_id *id, |
diff --git a/include/sound/tea575x-tuner.h b/include/sound/tea575x-tuner.h index 5718a02d3afb..d2ea112fc20f 100644 --- a/include/sound/tea575x-tuner.h +++ b/include/sound/tea575x-tuner.h | |||
@@ -26,29 +26,37 @@ | |||
26 | #include <media/v4l2-dev.h> | 26 | #include <media/v4l2-dev.h> |
27 | #include <media/v4l2-ioctl.h> | 27 | #include <media/v4l2-ioctl.h> |
28 | 28 | ||
29 | #define TEA575X_FMIF 10700 | ||
30 | |||
31 | #define TEA575X_DATA (1 << 0) | ||
32 | #define TEA575X_CLK (1 << 1) | ||
33 | #define TEA575X_WREN (1 << 2) | ||
34 | #define TEA575X_MOST (1 << 3) | ||
35 | |||
29 | struct snd_tea575x; | 36 | struct snd_tea575x; |
30 | 37 | ||
31 | struct snd_tea575x_ops { | 38 | struct snd_tea575x_ops { |
32 | void (*write)(struct snd_tea575x *tea, unsigned int val); | 39 | void (*set_pins)(struct snd_tea575x *tea, u8 pins); |
33 | unsigned int (*read)(struct snd_tea575x *tea); | 40 | u8 (*get_pins)(struct snd_tea575x *tea); |
34 | void (*mute)(struct snd_tea575x *tea, unsigned int mute); | 41 | void (*set_direction)(struct snd_tea575x *tea, bool output); |
35 | }; | 42 | }; |
36 | 43 | ||
37 | struct snd_tea575x { | 44 | struct snd_tea575x { |
38 | struct snd_card *card; | ||
39 | struct video_device *vd; /* video device */ | 45 | struct video_device *vd; /* video device */ |
40 | int dev_nr; /* requested device number + 1 */ | 46 | bool tea5759; /* 5759 chip is present */ |
41 | int tea5759; /* 5759 chip is present */ | 47 | bool mute; /* Device is muted? */ |
42 | int mute; /* Device is muted? */ | 48 | bool stereo; /* receiving stereo */ |
43 | unsigned int freq_fixup; /* crystal onboard */ | 49 | bool tuned; /* tuned to a station */ |
44 | unsigned int val; /* hw value */ | 50 | unsigned int val; /* hw value */ |
45 | unsigned long freq; /* frequency */ | 51 | unsigned long freq; /* frequency */ |
46 | unsigned long in_use; /* set if the device is in use */ | 52 | unsigned long in_use; /* set if the device is in use */ |
47 | struct snd_tea575x_ops *ops; | 53 | struct snd_tea575x_ops *ops; |
48 | void *private_data; | 54 | void *private_data; |
55 | u8 card[32]; | ||
56 | u8 bus_info[32]; | ||
49 | }; | 57 | }; |
50 | 58 | ||
51 | void snd_tea575x_init(struct snd_tea575x *tea); | 59 | int snd_tea575x_init(struct snd_tea575x *tea); |
52 | void snd_tea575x_exit(struct snd_tea575x *tea); | 60 | void snd_tea575x_exit(struct snd_tea575x *tea); |
53 | 61 | ||
54 | #endif /* __SOUND_TEA575X_TUNER_H */ | 62 | #endif /* __SOUND_TEA575X_TUNER_H */ |