1 /* 2 * Copyright (c) 2014-2015, The Linux Foundation. All rights reserved. 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version 2 and 6 * only version 2 as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * GNU General Public License for more details. 12 */ 13 #ifndef _CALIB_HWDEP_H 14 #define _CALIB_HWDEP_H 15 16 #define WCD9XXX_CODEC_HWDEP_NODE 1000 17 enum wcd_cal_type { 18 WCD9XXX_MIN_CAL, 19 WCD9XXX_ANC_CAL = WCD9XXX_MIN_CAL, 20 WCD9XXX_MAD_CAL, 21 WCD9XXX_MBHC_CAL, 22 WCD9XXX_VBAT_CAL, 23 WCD9XXX_MAX_CAL, 24 }; 25 26 struct wcdcal_ioctl_buffer { 27 __u32 size; 28 __u8 *buffer; 29 enum wcd_cal_type cal_type; 30 }; 31 32 #define SNDRV_CTL_IOCTL_HWDEP_CAL_TYPE \ 33 _IOW('U', 0x1, struct wcdcal_ioctl_buffer) 34 35 #endif /*_CALIB_HWDEP_H*/ 36