diff options
author | Ondrej Zary <linux@rainbow-software.org> | 2011-05-12 16:17:56 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-05-13 13:43:01 -0400 |
commit | ea27316e4cd13b25727715c0db8adb0b1661f5e7 (patch) | |
tree | 724f1ba4420b310ebd6041a21993c4f7aae3a6ef /sound/i2c | |
parent | f3f7c1837f6bcae3601fc535b339426868bf1549 (diff) |
ALSA: tea575x: remove freq_fixup from struct
freq_fixup is a constant, no need to hold it in struct snd_tea575x and set in
each driver.
Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/i2c')
-rw-r--r-- | sound/i2c/other/tea575x-tuner.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/i2c/other/tea575x-tuner.c b/sound/i2c/other/tea575x-tuner.c index 31f9795daca6..98ccec27e7bf 100644 --- a/sound/i2c/other/tea575x-tuner.c +++ b/sound/i2c/other/tea575x-tuner.c | |||
@@ -141,9 +141,9 @@ static void snd_tea575x_get_freq(struct snd_tea575x *tea) | |||
141 | freq /= 10; | 141 | freq /= 10; |
142 | /* crystal fixup */ | 142 | /* crystal fixup */ |
143 | if (tea->tea5759) | 143 | if (tea->tea5759) |
144 | freq += tea->freq_fixup; | 144 | freq += TEA575X_FMIF; |
145 | else | 145 | else |
146 | freq -= tea->freq_fixup; | 146 | freq -= TEA575X_FMIF; |
147 | 147 | ||
148 | tea->freq = freq * 16; /* from kHz */ | 148 | tea->freq = freq * 16; /* from kHz */ |
149 | } | 149 | } |
@@ -156,9 +156,9 @@ static void snd_tea575x_set_freq(struct snd_tea575x *tea) | |||
156 | freq /= 16; /* to kHz */ | 156 | freq /= 16; /* to kHz */ |
157 | /* crystal fixup */ | 157 | /* crystal fixup */ |
158 | if (tea->tea5759) | 158 | if (tea->tea5759) |
159 | freq -= tea->freq_fixup; | 159 | freq -= TEA575X_FMIF; |
160 | else | 160 | else |
161 | freq += tea->freq_fixup; | 161 | freq += TEA575X_FMIF; |
162 | /* freq /= 12.5 */ | 162 | /* freq /= 12.5 */ |
163 | freq *= 10; | 163 | freq *= 10; |
164 | freq /= 125; | 164 | freq /= 125; |