Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
omap-mcbsp.c File Reference
#include <linux/init.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/pm_runtime.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/initval.h>
#include <sound/soc.h>
#include <plat/cpu.h>
#include <linux/platform_data/asoc-ti-mcbsp.h>
#include "mcbsp.h"
#include "omap-mcbsp.h"
#include "omap-pcm.h"

Go to the source code of this file.

Macros

#define OMAP_MCBSP_RATES   (SNDRV_PCM_RATE_8000_96000)
 
#define OMAP_MCBSP_SOC_SINGLE_S16_EXT(xname, xmin, xmax, xhandler_get, xhandler_put)
 
#define OMAP_MCBSP_ST_CHANNEL_VOLUME(channel)
 
#define OMAP_MCBSP_ST_CONTROLS(port)
 

Enumerations

enum  {
  OMAP_MCBSP_WORD_8 = 0, OMAP_MCBSP_WORD_12, OMAP_MCBSP_WORD_16, OMAP_MCBSP_WORD_20,
  OMAP_MCBSP_WORD_24, OMAP_MCBSP_WORD_32
}
 

Functions

 OMAP_MCBSP_ST_CONTROLS (2)
 
 OMAP_MCBSP_ST_CONTROLS (3)
 
int omap_mcbsp_st_add_controls (struct snd_soc_pcm_runtime *rtd)
 
 EXPORT_SYMBOL_GPL (omap_mcbsp_st_add_controls)
 
 MODULE_DEVICE_TABLE (of, omap_mcbsp_of_match)
 
 module_platform_driver (asoc_mcbsp_driver)
 
 MODULE_AUTHOR ("Jarkko Nikula <[email protected]>")
 
 MODULE_DESCRIPTION ("OMAP I2S SoC Interface")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:omap-mcbsp")
 

Macro Definition Documentation

#define OMAP_MCBSP_RATES   (SNDRV_PCM_RATE_8000_96000)

Definition at line 43 of file omap-mcbsp.c.

#define OMAP_MCBSP_SOC_SINGLE_S16_EXT (   xname,
  xmin,
  xmax,
  xhandler_get,
  xhandler_put 
)
Value:
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
.info = omap_mcbsp_st_info_volsw, \
.get = xhandler_get, .put = xhandler_put, \
.private_value = (unsigned long) &(struct soc_mixer_control) \
{.min = xmin, .max = xmax} }

Definition at line 45 of file omap-mcbsp.c.

#define OMAP_MCBSP_ST_CHANNEL_VOLUME (   channel)

Definition at line 605 of file omap-mcbsp.c.

#define OMAP_MCBSP_ST_CONTROLS (   port)
Value:
static const struct snd_kcontrol_new omap_mcbsp##port##_st_controls[] = { \
SOC_SINGLE_EXT("McBSP" #port " Sidetone Switch", 1, 0, 1, 0, \
omap_mcbsp_st_get_mode, omap_mcbsp_st_put_mode), \
OMAP_MCBSP_SOC_SINGLE_S16_EXT("McBSP" #port " Sidetone Channel 0 Volume", \
-32768, 32767, \
omap_mcbsp_get_st_ch0_volume, \
omap_mcbsp_set_st_ch0_volume), \
OMAP_MCBSP_SOC_SINGLE_S16_EXT("McBSP" #port " Sidetone Channel 1 Volume", \
-32768, 32767, \
omap_mcbsp_get_st_ch1_volume, \
omap_mcbsp_set_st_ch1_volume), \
}

Definition at line 671 of file omap-mcbsp.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
OMAP_MCBSP_WORD_8 
OMAP_MCBSP_WORD_12 
OMAP_MCBSP_WORD_16 
OMAP_MCBSP_WORD_20 
OMAP_MCBSP_WORD_24 
OMAP_MCBSP_WORD_32 

Definition at line 53 of file omap-mcbsp.c.

Function Documentation

EXPORT_SYMBOL_GPL ( omap_mcbsp_st_add_controls  )
MODULE_ALIAS ( "platform:omap-mcbsp"  )
MODULE_AUTHOR ( "Jarkko Nikula <[email protected]>"  )
MODULE_DESCRIPTION ( "OMAP I2S SoC Interface )
MODULE_DEVICE_TABLE ( of  ,
omap_mcbsp_of_match   
)
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( asoc_mcbsp_driver  )
int omap_mcbsp_st_add_controls ( struct snd_soc_pcm_runtime rtd)

Definition at line 688 of file omap-mcbsp.c.

OMAP_MCBSP_ST_CONTROLS ( )
OMAP_MCBSP_ST_CONTROLS ( )