17ab14c5aSPhilippe Mathieu-Daudé /* 27ab14c5aSPhilippe Mathieu-Daudé * This program is free software; you can redistribute it and/or modify it 37ab14c5aSPhilippe Mathieu-Daudé * under the terms and conditions of the GNU General Public License, 47ab14c5aSPhilippe Mathieu-Daudé * version 2 or later, as published by the Free Software Foundation. 57ab14c5aSPhilippe Mathieu-Daudé * 67ab14c5aSPhilippe Mathieu-Daudé * This program is distributed in the hope it will be useful, but WITHOUT 77ab14c5aSPhilippe Mathieu-Daudé * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 87ab14c5aSPhilippe Mathieu-Daudé * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 97ab14c5aSPhilippe Mathieu-Daudé * more details. 107ab14c5aSPhilippe Mathieu-Daudé * 117ab14c5aSPhilippe Mathieu-Daudé * You should have received a copy of the GNU General Public License along with 127ab14c5aSPhilippe Mathieu-Daudé * this program. If not, see <http://www.gnu.org/licenses/>. 137ab14c5aSPhilippe Mathieu-Daudé */ 147ab14c5aSPhilippe Mathieu-Daudé #ifndef HW_DAC_WM8750_H 157ab14c5aSPhilippe Mathieu-Daudé #define HW_DAC_WM8750_H 167ab14c5aSPhilippe Mathieu-Daudé 177ab14c5aSPhilippe Mathieu-Daudé 187ab14c5aSPhilippe Mathieu-Daudé #define TYPE_WM8750 "wm8750" 19*d436d4e7SMao Zhongyi #define TYPE_MV88W8618_AUDIO "mv88w8618_audio" 207ab14c5aSPhilippe Mathieu-Daudé 217ab14c5aSPhilippe Mathieu-Daudé typedef void data_req_cb(void *opaque, int free_out, int free_in); 227ab14c5aSPhilippe Mathieu-Daudé 237ab14c5aSPhilippe Mathieu-Daudé void wm8750_data_req_set(DeviceState *dev, data_req_cb *data_req, void *opaque); 247ab14c5aSPhilippe Mathieu-Daudé void wm8750_dac_dat(void *opaque, uint32_t sample); 257ab14c5aSPhilippe Mathieu-Daudé uint32_t wm8750_adc_dat(void *opaque); 267ab14c5aSPhilippe Mathieu-Daudé void *wm8750_dac_buffer(void *opaque, int samples); 277ab14c5aSPhilippe Mathieu-Daudé void wm8750_dac_commit(void *opaque); 287ab14c5aSPhilippe Mathieu-Daudé void wm8750_set_bclk_in(void *opaque, int new_hz); 297ab14c5aSPhilippe Mathieu-Daudé 307ab14c5aSPhilippe Mathieu-Daudé #endif 31