blob: dda20b19bf80c10813adacd63821b1307b6382e7 [file] [log] [blame]
/*
* rt5670_ioctl.h -- RT5670 ALSA SoC audio driver IO control
*
* Copyright 2012 Realtek Microelectronics
* Author: Bard <bardliao@realtek.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __RT5670_IOCTL_H__
#define __RT5670_IOCTL_H__
#include <sound/hwdep.h>
#include <linux/ioctl.h>
enum {
NORMAL=0,
SPK,
HP,
MODE_NUM,
};
enum {
EQ_CH_DACL=0,
EQ_CH_DACR,
EQ_CH_ADC,
EQ_CH_NUM,
};
#define EQ_REG_NUM 28
typedef struct hweq_s {
unsigned int reg[EQ_REG_NUM];
unsigned int value[EQ_REG_NUM];
unsigned int ctrl;
} hweq_t;
int rt5670_ioctl_common(struct snd_hwdep *hw, struct file *file,
unsigned int cmd, unsigned long arg);
int rt5670_update_eqmode(
struct snd_soc_codec *codec, int channel, int mode);
#endif /* __RT5670_IOCTL_H__ */