Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
asihpi.c File Reference
#include "hpi_internal.h"
#include "hpi_version.h"
#include "hpimsginit.h"
#include "hpioctl.h"
#include "hpicmn.h"
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/jiffies.h>
#include <linux/slab.h>
#include <linux/time.h>
#include <linux/wait.h>
#include <linux/module.h>
#include <sound/core.h>
#include <sound/control.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/info.h>
#include <sound/initval.h>
#include <sound/tlv.h>
#include <sound/hwdep.h>

Go to the source code of this file.

Data Structures

struct  clk_source
 
struct  clk_cache
 
struct  snd_card_asihpi
 
struct  snd_card_asihpi_pcm
 
struct  hpi_control
 

Macros

#define snd_printddd(format, args...)   do { } while (0)
 
#define DEFAULT_SAMPLERATE   44100
 
#define PERIODS_MIN   2
 
#define PERIOD_BYTES_MIN   2048
 
#define BUFFER_BYTES_MAX   (512 * 1024)
 
#define MAX_CLOCKSOURCES   (HPI_SAMPLECLOCK_SOURCE_LAST + 1 + 7)
 
#define hpi_handle_error(x)   handle_error(x, __LINE__, __FILE__)
 
#define VOL_STEP_mB   1
 
#define snd_asihpi_volume_mute_info   snd_ctl_boolean_mono_info
 

Functions

 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("AudioScience inc. <support@audioscience.com>")
 
 MODULE_DESCRIPTION ("AudioScience ALSA ASI5000 ASI6000 ASI87xx ASI89xx "HPI_VER_STRING)
 
 module_param_array (index, int, NULL, S_IRUGO)
 
 MODULE_PARM_DESC (index,"ALSA index value for AudioScience soundcard.")
 
 module_param_array (id, charp, NULL, S_IRUGO)
 
 MODULE_PARM_DESC (id,"ALSA ID string for AudioScience soundcard.")
 
 module_param_array (enable, bool, NULL, S_IRUGO)
 
 MODULE_PARM_DESC (enable,"ALSA enable AudioScience soundcard.")
 
 module_param (enable_hpi_hwdep, bool, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (enable_hpi_hwdep,"ALSA enable HPI hwdep for AudioScience soundcard ")
 
 module_param (build_info, charp, S_IRUGO)
 
 MODULE_PARM_DESC (build_info,"built within ALSA source")
 
 compile_time_assert ((ARRAY_SIZE(asihpi_tuner_band_names)==(HPI_TUNER_BAND_LAST+1)), assert_tuner_band_names_size)
 
 compile_time_assert ((ARRAY_SIZE(asihpi_src_names)==(HPI_SOURCENODE_LAST_INDEX-HPI_SOURCENODE_NONE+1)), assert_src_names_size)
 
 compile_time_assert ((ARRAY_SIZE(asihpi_dst_names)==(HPI_DESTNODE_LAST_INDEX-HPI_DESTNODE_NONE+1)), assert_dst_names_size)
 
 MODULE_DEVICE_TABLE (pci, asihpi_pci_tbl)
 

Macro Definition Documentation

#define BUFFER_BYTES_MAX   (512 * 1024)

Definition at line 106 of file asihpi.c.

#define DEFAULT_SAMPLERATE   44100

Definition at line 100 of file asihpi.c.

#define hpi_handle_error (   x)    handle_error(x, __LINE__, __FILE__)

Definition at line 283 of file asihpi.c.

#define MAX_CLOCKSOURCES   (HPI_SAMPLECLOCK_SOURCE_LAST + 1 + 7)

Definition at line 108 of file asihpi.c.

#define PERIOD_BYTES_MIN   2048

Definition at line 105 of file asihpi.c.

#define PERIODS_MIN   2

Definition at line 104 of file asihpi.c.

#define snd_asihpi_volume_mute_info   snd_ctl_boolean_mono_info

Definition at line 1473 of file asihpi.c.

#define snd_printddd (   format,
  args... 
)    do { } while (0)

Definition at line 65 of file asihpi.c.

#define VOL_STEP_mB   1

Definition at line 1407 of file asihpi.c.

Function Documentation

compile_time_assert ( (ARRAY_SIZE(asihpi_tuner_band_names)==(HPI_TUNER_BAND_LAST+1))  ,
assert_tuner_band_names_size   
)
compile_time_assert ( (ARRAY_SIZE(asihpi_src_names)==(HPI_SOURCENODE_LAST_INDEX-HPI_SOURCENODE_NONE+1))  ,
assert_src_names_size   
)
compile_time_assert ( (ARRAY_SIZE(asihpi_dst_names)==(HPI_DESTNODE_LAST_INDEX-HPI_DESTNODE_NONE+1))  ,
assert_dst_names_size   
)
MODULE_AUTHOR ( "AudioScience inc. <support@audioscience.com>"  )
MODULE_DESCRIPTION ( "AudioScience ALSA ASI5000 ASI6000 ASI87xx ASI89xx "  HPI_VER_STRING)
MODULE_DEVICE_TABLE ( pci  ,
asihpi_pci_tbl   
)
MODULE_LICENSE ( "GPL"  )
module_param ( enable_hpi_hwdep  ,
bool  ,
S_IRUGO S_IWUSR 
)
module_param ( build_info  ,
charp  ,
S_IRUGO   
)
module_param_array ( index  ,
int  ,
NULL  ,
S_IRUGO   
)
module_param_array ( id  ,
charp  ,
NULL  ,
S_IRUGO   
)
module_param_array ( enable  ,
bool  ,
NULL  ,
S_IRUGO   
)
MODULE_PARM_DESC ( index  ,
"ALSA index value for AudioScience soundcard."   
)
MODULE_PARM_DESC ( id  ,
"ALSA ID string for AudioScience soundcard."   
)
MODULE_PARM_DESC ( enable  ,
"ALSA enable AudioScience soundcard."   
)
MODULE_PARM_DESC ( enable_hpi_hwdep  ,
"ALSA enable HPI hwdep for AudioScience soundcard "   
)
MODULE_PARM_DESC ( build_info  ,
"built within ALSA source  
)