Home | History | Annotate | Download | only in linux
      1 /* include/linux/tpa2018d1.h - tpa2018d1 speaker amplifier driver
      2  *
      3  * Copyright (C) 2009 HTC Corporation.
      4  *
      5  * This software is licensed under the terms of the GNU General Public
      6  * License version 2, as published by the Free Software Foundation, and
      7  * may be copied, distributed, and modified under those terms.
      8  *
      9  * This program is distributed in the hope that it will be useful,
     10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
     11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     12  * GNU General Public License for more details.
     13  *
     14  */
     15 
     16 #ifndef _LINUX_TPA2018D1_H
     17 #define _LINUX_TPA2018D1_H
     18 
     19 #include <linux/ioctl.h>
     20 
     21 enum tpa2018d1_mode {
     22 	TPA2018_MODE_OFF,
     23 	TPA2018_MODE_PLAYBACK,
     24 	TPA2018_MODE_RINGTONE,
     25 	TPA2018_MODE_VOICE_CALL,
     26 	TPA2018_NUM_MODES,
     27 };
     28 
     29 #define TPA2018_IOCTL_MAGIC	'a'
     30 #define TPA2018_SET_CONFIG	_IOW(TPA2018_IOCTL_MAGIC, 1, unsigned)
     31 #define TPA2018_READ_CONFIG	_IOR(TPA2018_IOCTL_MAGIC, 2, unsigned)
     32 #define TPA2018_SET_PARAM	_IOW(TPA2018_IOCTL_MAGIC, 3, unsigned)
     33 #define TPA2018_SET_MODE	_IOW(TPA2018_IOCTL_MAGIC, 4, unsigned)
     34 
     35 #endif
     36 
     37