Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
radio-wl1273.c File Reference
#include <linux/delay.h>
#include <linux/firmware.h>
#include <linux/interrupt.h>
#include <linux/mfd/wl1273-core.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <media/v4l2-common.h>
#include <media/v4l2-ctrls.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ioctl.h>

Go to the source code of this file.

Data Structures

struct  wl1273_device
 

Macros

#define DRIVER_DESC   "Wl1273 FM Radio"
 
#define WL1273_POWER_SET_OFF   0
 
#define WL1273_POWER_SET_FM   BIT(0)
 
#define WL1273_POWER_SET_RDS   BIT(1)
 
#define WL1273_POWER_SET_RETENTION   BIT(4)
 
#define WL1273_PUPD_SET_OFF   0x00
 
#define WL1273_PUPD_SET_ON   0x01
 
#define WL1273_PUPD_SET_RETENTION   0x10
 
#define WL1273_FREQ(x)   (x * 10000 / 625)
 
#define WL1273_INV_FREQ(x)   (x * 625 / 10000)
 
#define WL1273_IRQ_MASK
 
#define WL1273_FIFO_HAS_DATA(status)   (1 << 5 & status)
 
#define WL1273_RDS_CORRECTABLE_ERROR   (1 << 3)
 
#define WL1273_RDS_UNCORRECTABLE_ERROR   (1 << 4)
 
#define WL1273_SPACING_50kHz   1
 
#define WL1273_SPACING_100kHz   2
 
#define WL1273_SPACING_200kHz   4
 
#define WL1273_MUTE_SOFT_ENABLE   (1 << 0)
 
#define WL1273_MUTE_AC   (1 << 1)
 
#define WL1273_MUTE_HARD_LEFT   (1 << 2)
 
#define WL1273_MUTE_HARD_RIGHT   (1 << 3)
 
#define WL1273_MUTE_SOFT_FORCE   (1 << 4)
 
#define WL1273_RDS_NOT_SYNCHRONIZED   0
 
#define WL1273_RDS_SYNCHRONIZED   1
 
#define WL1273_DEFAULT_SEEK_LEVEL   7
 

Functions

 module_param (radio_nr, int, 0)
 
 MODULE_PARM_DESC (radio_nr,"The number of the radio device. Default = 0")
 
 module_param (rds_buf, uint, 0)
 
 MODULE_PARM_DESC (rds_buf,"Number of RDS buffer entries. Default = 100")
 
 module_platform_driver (wl1273_fm_radio_driver)
 
 MODULE_AUTHOR ("Matti Aaltonen <[email protected]>")
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:wl1273_fm_radio")
 

Macro Definition Documentation

#define DRIVER_DESC   "Wl1273 FM Radio"

Definition at line 32 of file radio-wl1273.c.

#define WL1273_DEFAULT_SEEK_LEVEL   7

Definition at line 1682 of file radio-wl1273.c.

#define WL1273_FIFO_HAS_DATA (   status)    (1 << 5 & status)

Definition at line 139 of file radio-wl1273.c.

#define WL1273_FREQ (   x)    (x * 10000 / 625)

Definition at line 43 of file radio-wl1273.c.

#define WL1273_INV_FREQ (   x)    (x * 625 / 10000)

Definition at line 44 of file radio-wl1273.c.

#define WL1273_IRQ_MASK
Value:
WL1273_POW_ENB_EVENT)

Definition at line 95 of file radio-wl1273.c.

#define WL1273_MUTE_AC   (1 << 1)

Definition at line 1401 of file radio-wl1273.c.

#define WL1273_MUTE_HARD_LEFT   (1 << 2)

Definition at line 1402 of file radio-wl1273.c.

#define WL1273_MUTE_HARD_RIGHT   (1 << 3)

Definition at line 1403 of file radio-wl1273.c.

#define WL1273_MUTE_SOFT_ENABLE   (1 << 0)

Definition at line 1400 of file radio-wl1273.c.

#define WL1273_MUTE_SOFT_FORCE   (1 << 4)

Definition at line 1404 of file radio-wl1273.c.

#define WL1273_POWER_SET_FM   BIT(0)

Definition at line 35 of file radio-wl1273.c.

#define WL1273_POWER_SET_OFF   0

Definition at line 34 of file radio-wl1273.c.

#define WL1273_POWER_SET_RDS   BIT(1)

Definition at line 36 of file radio-wl1273.c.

#define WL1273_POWER_SET_RETENTION   BIT(4)

Definition at line 37 of file radio-wl1273.c.

#define WL1273_PUPD_SET_OFF   0x00

Definition at line 39 of file radio-wl1273.c.

#define WL1273_PUPD_SET_ON   0x01

Definition at line 40 of file radio-wl1273.c.

#define WL1273_PUPD_SET_RETENTION   0x10

Definition at line 41 of file radio-wl1273.c.

#define WL1273_RDS_CORRECTABLE_ERROR   (1 << 3)

Definition at line 140 of file radio-wl1273.c.

#define WL1273_RDS_NOT_SYNCHRONIZED   0

Definition at line 1494 of file radio-wl1273.c.

#define WL1273_RDS_SYNCHRONIZED   1

Definition at line 1495 of file radio-wl1273.c.

#define WL1273_RDS_UNCORRECTABLE_ERROR   (1 << 4)

Definition at line 141 of file radio-wl1273.c.

#define WL1273_SPACING_100kHz   2

Definition at line 1344 of file radio-wl1273.c.

#define WL1273_SPACING_200kHz   4

Definition at line 1345 of file radio-wl1273.c.

#define WL1273_SPACING_50kHz   1

Definition at line 1343 of file radio-wl1273.c.

Function Documentation

MODULE_ALIAS ( "platform:wl1273_fm_radio"  )
MODULE_AUTHOR ( "Matti Aaltonen <[email protected]>"  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
MODULE_LICENSE ( "GPL"  )
module_param ( radio_nr  ,
int  ,
 
)
module_param ( rds_buf  ,
uint  ,
 
)
MODULE_PARM_DESC ( radio_nr  )
MODULE_PARM_DESC ( rds_buf  )
module_platform_driver ( wl1273_fm_radio_driver  )