summaryrefstree
path: root/kernel/include/sound/dbmdx-export.h
blob: d306d30ce1c9838ec99cb24415b0fff64d3c779f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * dbmdx-export.h  --  DBMDX exported interface
 *
 * 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 _DBMDX_EXPORT_H
#define _DBMDX_EXPORT_H

#include <sound/soc.h>
#include <linux/i2c.h>

int dbmdx_remote_add_codec_controls(struct snd_soc_codec *codec);

typedef void (*event_cb)(int);
void dbmdx_remote_register_event_callback(event_cb func);

enum i2c_freq_t {
	I2C_FREQ_SLOW,
	I2C_FREQ_FAST
};
typedef void (*set_i2c_freq_cb)(struct i2c_adapter*, enum i2c_freq_t);
void dbmdx_remote_register_set_i2c_freq_callback(set_i2c_freq_cb func);
#endif