diff options
Diffstat (limited to 'asoc/codecs/tas256x/misc/tas256x-misc.h')
-rw-r--r-- | asoc/codecs/tas256x/misc/tas256x-misc.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/asoc/codecs/tas256x/misc/tas256x-misc.h b/asoc/codecs/tas256x/misc/tas256x-misc.h new file mode 100644 index 00000000..03a29680 --- /dev/null +++ b/asoc/codecs/tas256x/misc/tas256x-misc.h @@ -0,0 +1,38 @@ +/* + * ============================================================================= + * Copyright (c) 2016 Texas Instruments Inc. + * + * This program is free software; you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation; version 2. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General + * Public License for more details. + * + * File: + * tas2562-misc.h + * + * Description: + * header file for tas2562-misc.c + * + * ============================================================================= + */ + +#ifndef _TAS256X_MISC_H +#define _TAS256X_MISC_H + +#define TIAUDIO_CMD_REG_WITE 1 +#define TIAUDIO_CMD_REG_READ 2 +#define TIAUDIO_CMD_DEBUG_ON 3 +#define TIAUDIO_CMD_CALIBRATION 7 +#define TIAUDIO_CMD_SAMPLERATE 8 +#define TIAUDIO_CMD_BITRATE 9 +#define TIAUDIO_CMD_DACVOLUME 10 +#define TIAUDIO_CMD_SPEAKER 11 + +int tas256x_register_misc(struct tas256x_priv *p_tas256x); +int tas256x_deregister_misc(struct tas256x_priv *p_tas256x); + +#endif /* _TAS256X_MISC_H */ |