diff options
author | Ondrej Zary <linux@rainbow-software.org> | 2011-03-19 11:32:53 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-03-21 07:43:54 -0400 |
commit | 375d135818f32bbe7b3f071bd54d977c4ff8d84a (patch) | |
tree | 776c6a3597d05c6801bc19771b23e3cd0ee85f68 /include/sound | |
parent | 75eb1c311da47d32ba47825226e110df703b35d0 (diff) |
ALSA: tea575x-tuner: various improvements
Improve tea575x-tuner with various good things from radio-maestro:
- extend frequency range to 50-150MHz
- fix querycap(): card name, CAP_RADIO
- improve g_tuner(): CAP_STEREO, stereo and tuned indication
- improve g_frequency(): tuner index checking and reading frequency from HW
- improve s_frequency(): tuner index and type checking
Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/tea575x-tuner.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/sound/tea575x-tuner.h b/include/sound/tea575x-tuner.h index 5718a02d3afb..3d6cdd80df59 100644 --- a/include/sound/tea575x-tuner.h +++ b/include/sound/tea575x-tuner.h | |||
@@ -38,8 +38,10 @@ struct snd_tea575x { | |||
38 | struct snd_card *card; | 38 | struct snd_card *card; |
39 | struct video_device *vd; /* video device */ | 39 | struct video_device *vd; /* video device */ |
40 | int dev_nr; /* requested device number + 1 */ | 40 | int dev_nr; /* requested device number + 1 */ |
41 | int tea5759; /* 5759 chip is present */ | 41 | bool tea5759; /* 5759 chip is present */ |
42 | int mute; /* Device is muted? */ | 42 | bool mute; /* Device is muted? */ |
43 | bool stereo; /* receiving stereo */ | ||
44 | bool tuned; /* tuned to a station */ | ||
43 | unsigned int freq_fixup; /* crystal onboard */ | 45 | unsigned int freq_fixup; /* crystal onboard */ |
44 | unsigned int val; /* hw value */ | 46 | unsigned int val; /* hw value */ |
45 | unsigned long freq; /* frequency */ | 47 | unsigned long freq; /* frequency */ |