#include <linux/clk.h>
#include <linux/err.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/dma-mapping.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <sound/initval.h>
#include <sound/control.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <linux/atmel-ssc.h>
#include <linux/spi/spi.h>
#include <linux/spi/at73c213.h>
#include "at73c213.h"
Go to the source code of this file.
|
#define | BITRATE_MIN 8000 /* Hardware limit? */ |
|
#define | BITRATE_TARGET CONFIG_SND_AT73C213_TARGET_BITRATE |
|
#define | BITRATE_MAX 50000 /* Hardware limit. */ |
|
#define | get_chip(card) ((struct snd_at73c213 *)card->private_data) |
|
#define | snd_at73c213_mono_switch_info snd_ctl_boolean_mono_info |
|
#define | AT73C213_MONO_SWITCH(xname, xindex, reg, shift, mask, invert) |
|
#define | AT73C213_STEREO(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) |
|
#define | snd_at73c213_suspend NULL |
|
#define | snd_at73c213_resume NULL |
|
#define AT73C213_MONO_SWITCH |
( |
|
xname, |
|
|
|
xindex, |
|
|
|
reg, |
|
|
|
shift, |
|
|
|
mask, |
|
|
|
invert |
|
) |
| |
Value:{ \
.name = xname, \
.index = xindex, \
.get = snd_at73c213_mono_switch_get, \
.put = snd_at73c213_mono_switch_put, \
.private_value = (
reg | (shift << 8) | (
mask << 16) | (invert << 24)) \
}
Definition at line 644 of file at73c213.c.
#define AT73C213_STEREO |
( |
|
xname, |
|
|
|
xindex, |
|
|
|
left_reg, |
|
|
|
right_reg, |
|
|
|
shift_left, |
|
|
|
shift_right, |
|
|
|
mask, |
|
|
|
invert |
|
) |
| |
Value:{ \
.name = xname, \
.index = xindex, \
.info = snd_at73c213_stereo_info, \
.get = snd_at73c213_stereo_get, \
.put = snd_at73c213_stereo_put, \
.private_value = (left_reg | (right_reg << 8) \
| (
mask << 24) | (invert << 22)) \
}
Definition at line 655 of file at73c213.c.
#define BITRATE_MAX 50000 /* Hardware limit. */ |
#define BITRATE_MIN 8000 /* Hardware limit? */ |
#define BITRATE_TARGET CONFIG_SND_AT73C213_TARGET_BITRATE |
#define snd_at73c213_resume NULL |
#define snd_at73c213_suspend NULL |
MODULE_AUTHOR |
( |
"Hans-Christian Egtvedt <egtvedt@samfundet.no>" |
| ) |
|
MODULE_DESCRIPTION |
( |
"Sound driver for AT73C213 with Atmel SSC" |
| ) |
|
module_spi_driver |
( |
at73c213_driver |
| ) |
|