Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248178
b: refs/heads/master
c: ea27316
h: refs/heads/master
v: v3
  • Loading branch information
Ondrej Zary authored and Takashi Iwai committed May 13, 2011
1 parent a55643e commit df8c89b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f3f7c1837f6bcae3601fc535b339426868bf1549
refs/heads/master: ea27316e4cd13b25727715c0db8adb0b1661f5e7
3 changes: 2 additions & 1 deletion trunk/include/sound/tea575x-tuner.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
#include <media/v4l2-dev.h>
#include <media/v4l2-ioctl.h>

#define TEA575X_FMIF 10700

#define TEA575X_DATA (1 << 0)
#define TEA575X_CLK (1 << 1)
#define TEA575X_WREN (1 << 2)
Expand All @@ -46,7 +48,6 @@ struct snd_tea575x {
bool mute; /* Device is muted? */
bool stereo; /* receiving stereo */
bool tuned; /* tuned to a station */
unsigned int freq_fixup; /* crystal onboard */
unsigned int val; /* hw value */
unsigned long freq; /* frequency */
unsigned long in_use; /* set if the device is in use */
Expand Down
8 changes: 4 additions & 4 deletions trunk/sound/i2c/other/tea575x-tuner.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ static void snd_tea575x_get_freq(struct snd_tea575x *tea)
freq /= 10;
/* crystal fixup */
if (tea->tea5759)
freq += tea->freq_fixup;
freq += TEA575X_FMIF;
else
freq -= tea->freq_fixup;
freq -= TEA575X_FMIF;

tea->freq = freq * 16; /* from kHz */
}
Expand All @@ -156,9 +156,9 @@ static void snd_tea575x_set_freq(struct snd_tea575x *tea)
freq /= 16; /* to kHz */
/* crystal fixup */
if (tea->tea5759)
freq -= tea->freq_fixup;
freq -= TEA575X_FMIF;
else
freq += tea->freq_fixup;
freq += TEA575X_FMIF;
/* freq /= 12.5 */
freq *= 10;
freq /= 125;
Expand Down
1 change: 0 additions & 1 deletion trunk/sound/pci/es1968.c
Original file line number Diff line number Diff line change
Expand Up @@ -2794,7 +2794,6 @@ static int __devinit snd_es1968_create(struct snd_card *card,

#ifdef CONFIG_SND_ES1968_RADIO
chip->tea.card = card;
chip->tea.freq_fixup = 10700;
chip->tea.private_data = chip;
chip->tea.ops = &snd_es1968_tea_ops;
if (!snd_tea575x_init(&chip->tea))
Expand Down
1 change: 0 additions & 1 deletion trunk/sound/pci/fm801.c
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,6 @@ static int __devinit snd_fm801_create(struct snd_card *card,

#ifdef TEA575X_RADIO
chip->tea.card = card;
chip->tea.freq_fixup = 10700;
chip->tea.private_data = chip;
chip->tea.ops = &snd_fm801_tea_ops;
if ((tea575x_tuner & TUNER_TYPE_MASK) > 0 &&
Expand Down

0 comments on commit df8c89b

Please sign in to comment.