Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
tea575x-tuner.c File Reference
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/sched.h>
#include <media/v4l2-device.h>
#include <media/v4l2-dev.h>
#include <media/v4l2-fh.h>
#include <media/v4l2-ioctl.h>
#include <media/v4l2-event.h>
#include <sound/tea575x-tuner.h>

Go to the source code of this file.

Macros

#define TEA575X_BIT_SEARCH   (1<<24) /* 1 = search action, 0 = tuned */
 
#define TEA575X_BIT_UPDOWN   (1<<23) /* 0 = search down, 1 = search up */
 
#define TEA575X_BIT_MONO   (1<<22) /* 0 = stereo, 1 = mono */
 
#define TEA575X_BIT_BAND_MASK   (3<<20)
 
#define TEA575X_BIT_BAND_FM   (0<<20)
 
#define TEA575X_BIT_BAND_MW   (1<<20)
 
#define TEA575X_BIT_BAND_LW   (2<<20)
 
#define TEA575X_BIT_BAND_SW   (3<<20)
 
#define TEA575X_BIT_PORT_0   (1<<19) /* user bit */
 
#define TEA575X_BIT_PORT_1   (1<<18) /* user bit */
 
#define TEA575X_BIT_SEARCH_MASK   (3<<16) /* search level */
 
#define TEA575X_BIT_SEARCH_5_28   (0<<16) /* FM >5uV, AM >28uV */
 
#define TEA575X_BIT_SEARCH_10_40   (1<<16) /* FM >10uV, AM > 40uV */
 
#define TEA575X_BIT_SEARCH_30_63   (2<<16) /* FM >30uV, AM > 63uV */
 
#define TEA575X_BIT_SEARCH_150_1000   (3<<16) /* FM > 150uV, AM > 1000uV */
 
#define TEA575X_BIT_DUMMY   (1<<15) /* buffer */
 
#define TEA575X_BIT_FREQ_MASK   0x7fff
 

Enumerations

enum  { BAND_FM, BAND_FM_JAPAN, BAND_AM }
 

Functions

 MODULE_AUTHOR ("Jaroslav Kysela <[email protected]>")
 
 MODULE_DESCRIPTION ("Routines for control of TEA5757/5759 Philips AM/FM radio tuner chips")
 
 MODULE_LICENSE ("GPL")
 
void snd_tea575x_set_freq (struct snd_tea575x *tea)
 
int snd_tea575x_init (struct snd_tea575x *tea, struct module *owner)
 
void snd_tea575x_exit (struct snd_tea575x *tea)
 

Macro Definition Documentation

#define TEA575X_BIT_BAND_FM   (0<<20)

Definition at line 48 of file tea575x-tuner.c.

#define TEA575X_BIT_BAND_LW   (2<<20)

Definition at line 50 of file tea575x-tuner.c.

#define TEA575X_BIT_BAND_MASK   (3<<20)

Definition at line 47 of file tea575x-tuner.c.

#define TEA575X_BIT_BAND_MW   (1<<20)

Definition at line 49 of file tea575x-tuner.c.

#define TEA575X_BIT_BAND_SW   (3<<20)

Definition at line 51 of file tea575x-tuner.c.

#define TEA575X_BIT_DUMMY   (1<<15) /* buffer */

Definition at line 59 of file tea575x-tuner.c.

#define TEA575X_BIT_FREQ_MASK   0x7fff

Definition at line 60 of file tea575x-tuner.c.

#define TEA575X_BIT_MONO   (1<<22) /* 0 = stereo, 1 = mono */

Definition at line 46 of file tea575x-tuner.c.

#define TEA575X_BIT_PORT_0   (1<<19) /* user bit */

Definition at line 52 of file tea575x-tuner.c.

#define TEA575X_BIT_PORT_1   (1<<18) /* user bit */

Definition at line 53 of file tea575x-tuner.c.

#define TEA575X_BIT_SEARCH   (1<<24) /* 1 = search action, 0 = tuned */

Definition at line 44 of file tea575x-tuner.c.

#define TEA575X_BIT_SEARCH_10_40   (1<<16) /* FM >10uV, AM > 40uV */

Definition at line 56 of file tea575x-tuner.c.

#define TEA575X_BIT_SEARCH_150_1000   (3<<16) /* FM > 150uV, AM > 1000uV */

Definition at line 58 of file tea575x-tuner.c.

#define TEA575X_BIT_SEARCH_30_63   (2<<16) /* FM >30uV, AM > 63uV */

Definition at line 57 of file tea575x-tuner.c.

#define TEA575X_BIT_SEARCH_5_28   (0<<16) /* FM >5uV, AM >28uV */

Definition at line 55 of file tea575x-tuner.c.

#define TEA575X_BIT_SEARCH_MASK   (3<<16) /* search level */

Definition at line 54 of file tea575x-tuner.c.

#define TEA575X_BIT_UPDOWN   (1<<23) /* 0 = search down, 1 = search up */

Definition at line 45 of file tea575x-tuner.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
BAND_FM 
BAND_FM_JAPAN 
BAND_AM 

Definition at line 62 of file tea575x-tuner.c.

Function Documentation

MODULE_AUTHOR ( "Jaroslav Kysela <[email protected]>"  )
MODULE_DESCRIPTION ( "Routines for control of TEA5757/5759 Philips AM/FM radio tuner chips )
MODULE_LICENSE ( "GPL"  )
void snd_tea575x_exit ( struct snd_tea575x tea)

Definition at line 557 of file tea575x-tuner.c.

int snd_tea575x_init ( struct snd_tea575x tea,
struct module owner 
)

Definition at line 492 of file tea575x-tuner.c.

void snd_tea575x_set_freq ( struct snd_tea575x tea)

Definition at line 194 of file tea575x-tuner.c.