Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
beep.c File Reference
#include <asm/io.h>
#include <asm/irq.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/input.h>
#include <linux/pci.h>
#include <linux/dma-mapping.h>
#include <sound/core.h>
#include <sound/control.h>
#include "pmac.h"

Go to the source code of this file.

Data Structures

struct  pmac_beep
 

Macros

#define BEEP_SRATE   22050 /* 22050 Hz sample rate */
 
#define BEEP_BUFLEN   512
 
#define BEEP_VOLUME   15 /* 0 - 100 */
 

Functions

void snd_pmac_beep_stop (struct snd_pmac *chip)
 
int __devinit snd_pmac_attach_beep (struct snd_pmac *chip)
 
void snd_pmac_detach_beep (struct snd_pmac *chip)
 

Macro Definition Documentation

#define BEEP_BUFLEN   512

Definition at line 96 of file beep.c.

#define BEEP_SRATE   22050 /* 22050 Hz sample rate */

Definition at line 95 of file beep.c.

#define BEEP_VOLUME   15 /* 0 - 100 */

Definition at line 97 of file beep.c.

Function Documentation

int __devinit snd_pmac_attach_beep ( struct snd_pmac chip)

Definition at line 218 of file beep.c.

void snd_pmac_beep_stop ( struct snd_pmac chip)

Definition at line 46 of file beep.c.

void snd_pmac_detach_beep ( struct snd_pmac chip)

Definition at line 276 of file beep.c.