#include <linux/delay.h>
#include <linux/module.h>
#include <linux/slab.h>
#include "onyx.h"
#include "../aoa.h"
#include "../soundbus/soundbus.h"
Go to the source code of this file.
|
| MODULE_AUTHOR ("Johannes Berg <[email protected]>") |
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_DESCRIPTION ("pcm3052 (onyx) codec driver for snd-aoa") |
|
| SINGLE_BIT (spdif, MIXER, SNDRV_CTL_NAME_IEC958("", PLAYBACK, SWITCH), ONYX_REG_DIG_INFO4, ONYX_SPDIF_ENABLE, FLAG_SPDIFLOCK) |
|
| SINGLE_BIT (ovr1, MIXER,"Oversampling Rate", ONYX_REG_DAC_CONTROL, ONYX_OVR1, 0) |
|
| SINGLE_BIT (flt0, MIXER,"Fast Digital Filter Rolloff", ONYX_REG_DAC_FILTER, ONYX_ROLLOFF_FAST, FLAG_POLARITY_INVERT) |
|
| SINGLE_BIT (hpf, MIXER,"Highpass Filter", ONYX_REG_ADC_HPF_BYPASS, ONYX_HPF_DISABLE, FLAG_POLARITY_INVERT) |
|
| SINGLE_BIT (dm12, MIXER,"Digital De-Emphasis", ONYX_REG_DAC_DEEMPH, ONYX_DIGDEEMPH_CTRL, 0) |
|
| MODULE_DEVICE_TABLE (i2c, onyx_i2c_id) |
|
| module_i2c_driver (onyx_driver) |
|
#define FLAG_POLARITY_INVERT 1 |
#define INPUTGAIN_RANGE_SHIFT (-3) |
#define PFX "snd-aoa-codec-onyx: " |
Value:
.iface = SNDRV_CTL_ELEM_IFACE_##
type, \
.get = onyx_snd_single_bit_get, \
.put = onyx_snd_single_bit_put, \
}
Definition at line 422 of file onyx.c.
#define VOLUME_RANGE_SHIFT 128 |
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
onyx_i2c_id |
|
|
) |
| |
module_i2c_driver |
( |
onyx_driver |
| ) |
|