qemu-e2k/hw/audio
Corey Minyard d307c28ca9 i2c: Allow I2C devices to NAK start events
Add a return value to the event handler.  Some I2C devices will
NAK if they have no data, so allow them to do this.  This required
the following changes:

Go through all the event handlers and change them to return int
and return 0.

Modify i2c_start_transfer to terminate the transaction on a NAK.

Modify smbus handing to not assert if a NAK occurs on a second
operation, and terminate the transaction and return -1 instead.

Add some information on semantics to I2CSlaveClass.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2017-01-09 11:40:20 +00:00
..
ac97.c
adlib.c Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND 2016-03-22 22:20:17 +01:00
cs4231.c hw/audio: QOM'ify cs4231.c 2016-06-03 11:13:38 +02:00
cs4231a.c
es1370.c
fmopl.c
fmopl.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
gus.c portio: keep references on portio 2016-09-08 18:05:21 +04:00
gusemu_hal.c
gusemu_mixer.c
gusemu.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
gustate.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
hda-codec-common.h
hda-codec.c
intel-hda-defs.h
intel-hda.c audio: intel-hda: check stream entry count during transfer 2016-10-26 14:51:44 +02:00
intel-hda.h
lm4549.c
lm4549.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
Makefile.objs
marvell_88w8618.c
milkymist-ac97.c milkymist: update specification URLs 2016-06-20 18:12:04 +02:00
pcspk.c migration/pcspk: Add a property to state if pcspk is migrated 2016-11-28 16:45:12 +01:00
pl041.c hw: explicitly include qemu/log.h 2016-05-19 16:42:29 +02:00
pl041.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
pl041.hx
sb16.c portio: keep references on portio 2016-09-08 18:05:21 +04:00
trace-events trace-events: fix first line comment in trace-events 2016-08-12 10:36:01 +01:00
wm8750.c i2c: Allow I2C devices to NAK start events 2017-01-09 11:40:20 +00:00