qemu/include/hw/audio/wm8750.h
<<
>>
Prefs
   1/*
   2 * This program is free software; you can redistribute it and/or modify it
   3 * under the terms and conditions of the GNU General Public License,
   4 * version 2 or later, as published by the Free Software Foundation.
   5 *
   6 * This program is distributed in the hope it will be useful, but WITHOUT
   7 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
   8 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
   9 * more details.
  10 *
  11 * You should have received a copy of the GNU General Public License along with
  12 * this program.  If not, see <http://www.gnu.org/licenses/>.
  13 */
  14#ifndef HW_DAC_WM8750_H
  15#define HW_DAC_WM8750_H
  16
  17#include "hw/hw.h"
  18
  19#define TYPE_WM8750 "wm8750"
  20#define TYPE_MV88W8618_AUDIO "mv88w8618_audio"
  21
  22typedef void data_req_cb(void *opaque, int free_out, int free_in);
  23
  24void wm8750_data_req_set(DeviceState *dev, data_req_cb *data_req, void *opaque);
  25void wm8750_dac_dat(void *opaque, uint32_t sample);
  26uint32_t wm8750_adc_dat(void *opaque);
  27void *wm8750_dac_buffer(void *opaque, int samples);
  28void wm8750_dac_commit(void *opaque);
  29void wm8750_set_bclk_in(void *opaque, int new_hz);
  30
  31#endif
  32