📄 uda1341_h.txt
字号:
/*
* linux/include/linux/l3/uda1341.h
*
* Philips UDA1341 mixer device driver
*
* Copyright (c) 2000 Nicolas Pitre <nico@cam.org>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License.
*/
#include <sound/driver.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/initval.h>
#define UDA1341_NAME "uda1341"
struct uda1341_cfg {
unsigned int fs:16;
unsigned int format:3;
int record;
int play;
};
#define FMT_I2S 0
#define FMT_LSB16 1
#define FMT_LSB18 2
#define FMT_LSB20 3
#define FMT_MSB 4
#define FMT_LSB16MSB 5
#define FMT_LSB18MSB 6
#define FMT_LSB20MSB 7
#define L3_UDA1341_CONFIGURE 0x13410001
struct l3_gain {
unsigned int left:8;
unsigned int right:8;
unsigned int unused:8;
unsigned int channel:8;
};
#define L3_SET_VOLUME 0x13410002
#define L3_SET_TREBLE 0x13410003
#define L3_SET_BASS 0x13410004
#define L3_SET_GAIN 0x13410005
struct l3_agc {
unsigned int level:8;
unsigned int enable:1;
unsigned int attack:7;
unsigned int decay:8;
unsigned int channel:8;
};
#define L3_INPUT_AGC 0x13410006
struct uda1341;
int uda1341_configure(struct uda1341 *uda, struct uda1341_cfg *conf);
int uda1341_mixer_ctl(struct uda1341 *uda, int cmd, void *arg);
int uda1341_open(struct uda1341 *uda);
void uda1341_close(struct uda1341 *uda, struct uda1341_cfg *conf);
struct uda1341 *uda1341_create(snd_card_t *card, const char *adapter);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -