Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
lola_clock.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include "lola.h"

Go to the source code of this file.

Macros

#define LOLA_MAXFREQ_AT_GRANULARITY_MIN   48000
 
#define LOLA_MAXFREQ_AT_GRANULARITY_BELOW_MAX   96000
 

Functions

unsigned int lola_sample_rate_convert (unsigned int coded)
 
int lola_set_granularity (struct lola *chip, unsigned int val, bool force)
 
int __devinit lola_init_clock_widget (struct lola *chip, int nid)
 
int lola_enable_clock_events (struct lola *chip)
 
int lola_set_clock_index (struct lola *chip, unsigned int idx)
 
bool lola_update_ext_clock_freq (struct lola *chip, unsigned int val)
 
int lola_set_clock (struct lola *chip, int idx)
 
int lola_set_sample_rate (struct lola *chip, int rate)
 

Macro Definition Documentation

#define LOLA_MAXFREQ_AT_GRANULARITY_BELOW_MAX   96000

Definition at line 66 of file lola_clock.c.

#define LOLA_MAXFREQ_AT_GRANULARITY_MIN   48000

Definition at line 65 of file lola_clock.c.

Function Documentation

int lola_enable_clock_events ( struct lola chip)

Definition at line 214 of file lola_clock.c.

int __devinit lola_init_clock_widget ( struct lola chip,
int  nid 
)

Definition at line 123 of file lola_clock.c.

unsigned int lola_sample_rate_convert ( unsigned int  coded)

Definition at line 28 of file lola_clock.c.

int lola_set_clock ( struct lola chip,
int  idx 
)

Definition at line 273 of file lola_clock.c.

int lola_set_clock_index ( struct lola chip,
unsigned int  idx 
)

Definition at line 233 of file lola_clock.c.

int lola_set_granularity ( struct lola chip,
unsigned int  val,
bool  force 
)

Definition at line 89 of file lola_clock.c.

int lola_set_sample_rate ( struct lola chip,
int  rate 
)

Definition at line 307 of file lola_clock.c.

bool lola_update_ext_clock_freq ( struct lola chip,
unsigned int  val 
)

Definition at line 251 of file lola_clock.c.