Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
soundbus.h File Reference
#include <linux/of_device.h>
#include <sound/pcm.h>
#include <linux/list.h>

Go to the source code of this file.

Data Structures

struct  transfer_info
 
struct  codec_info_item
 
struct  bus_info
 
struct  codec_info
 
struct  soundbus_dev
 
struct  soundbus_driver
 

Macros

#define to_soundbus_device(d)   container_of(d, struct soundbus_dev, ofdev.dev)
 
#define of_to_soundbus_device(d)   container_of(d, struct soundbus_dev, ofdev)
 
#define to_soundbus_driver(drv)   container_of(drv,struct soundbus_driver, driver)
 

Enumerations

enum  clock_switch {
  CLOCK_SWITCH_PREPARE_SLAVE, CLOCK_SWITCH_PREPARE_MASTER, CLOCK_SWITCH_SLAVE, CLOCK_SWITCH_MASTER,
  CLOCK_SWITCH_NOTIFY
}
 

Functions

int soundbus_add_one (struct soundbus_dev *dev)
 
void soundbus_remove_one (struct soundbus_dev *dev)
 
struct soundbus_devsoundbus_dev_get (struct soundbus_dev *dev)
 
void soundbus_dev_put (struct soundbus_dev *dev)
 
int soundbus_register_driver (struct soundbus_driver *drv)
 
void soundbus_unregister_driver (struct soundbus_driver *drv)
 

Variables

enum clock_switch __attribute__
 
struct device_attribute soundbus_dev_attrs []
 

Macro Definition Documentation

#define of_to_soundbus_device (   d)    container_of(d, struct soundbus_dev, ofdev)

Definition at line 174 of file soundbus.h.

#define to_soundbus_device (   d)    container_of(d, struct soundbus_dev, ofdev.dev)

Definition at line 173 of file soundbus.h.

#define to_soundbus_driver (   drv)    container_of(drv,struct soundbus_driver, driver)

Definition at line 197 of file soundbus.h.

Enumeration Type Documentation

Enumerator:
CLOCK_SWITCH_PREPARE_SLAVE 
CLOCK_SWITCH_PREPARE_MASTER 
CLOCK_SWITCH_SLAVE 
CLOCK_SWITCH_MASTER 
CLOCK_SWITCH_NOTIFY 

Definition at line 27 of file soundbus.h.

Function Documentation

int soundbus_add_one ( struct soundbus_dev dev)

Definition at line 166 of file core.c.

struct soundbus_dev* soundbus_dev_get ( struct soundbus_dev dev)
read

Definition at line 16 of file core.c.

void soundbus_dev_put ( struct soundbus_dev dev)

Definition at line 30 of file core.c.

int soundbus_register_driver ( struct soundbus_driver drv)

Definition at line 191 of file core.c.

void soundbus_remove_one ( struct soundbus_dev dev)

Definition at line 185 of file core.c.

void soundbus_unregister_driver ( struct soundbus_driver drv)

Definition at line 202 of file core.c.

Variable Documentation

struct device_attribute soundbus_dev_attrs[]

Definition at line 37 of file sysfs.c.