Skip to contentSkip to conversation

Wolfson Microsystems WM8750 audio CODEC (i2c chip).

PATCH New andrzej zaborowski 1 participant 1 message Mar 16, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Wolfson Microsystems WM8750 audio CODEC (i2c chip).

An audio codec used in various embedded devices, has both inputs and outputs. Mainline linux contains the driver for it in the recently added ASOC framework. It connects to a processor through I2C (control) and I2S (audio data).

Cheers,
Andrew

From 18bd82a9a6929fa2de39e78f4792879afb8ae087 Mon Sep 17 00:00:00 2001
From: Andrzej Zaborowski <[email protected]>
Date: Fri, 16 Mar 2007 16:47:16 +0100
Subject: [PATCH] Wolfson Microsystems WM8750 audio CODEC (i2c chip).

---
 hw/i2c.h    |    8 +
 hw/wm8750.c |  524 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 532 insertions(+), 0 deletions(-)
hw/i2c.h +8 -0
index d866f28..73e00ed 100644
@@ -158,3 +158,11 @@ void max7310_reset(struct i2c_slave_s *i2c);
 void max7310_gpio_set(struct i2c_slave_s *i2c, int line, int level);
 void max7310_gpio_handler_set(struct i2c_slave_s *i2c, int line,
                 gpio_handler_t handler, void *opaque);
+
+/* wm8750.c */
+struct i2c_slave_s *wm8750_init(AudioState *audio);
+void wm8750_reset(struct i2c_slave_s *i2c);
+void wm8750_data_req_set(struct i2c_slave_s *i2c,
+                void (*data_req)(void *, int, int), void *opaque);
+void wm8750_dac_dat(void *opaque, uint32_t sample);
+uint32_t wm8750_adc_dat(void *opaque);
hw/wm8750.c new file +524 -0

524 lines not on this page · raw message

Signature · 1 line
1.4.4.3