aboutsummaryrefslogtreecommitdiff
path: root/hw/intel-hda.h
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2011-10-25 16:53:01 +0200
committermalc <av1474@comtv.ru>2011-10-25 19:15:20 +0400
commitba43d28916c4f51c19bd7366089155ce81bee058 (patch)
tree98db35e780214b86237dd8860c3e92a6a367a1cd /hw/intel-hda.h
parent36ac4ad3d054a7b4962a6393630a73591cfa9558 (diff)
downloadqemu-ba43d28916c4f51c19bd7366089155ce81bee058.zip
qemu-ba43d28916c4f51c19bd7366089155ce81bee058.tar.gz
qemu-ba43d28916c4f51c19bd7366089155ce81bee058.tar.bz2
hda: do not mix output and input stream states, RHBZ #740493
Windows 7 may use the same stream number for input and output. Current code will confuse streams. Changes since v1: - keep running_compat[] for migration version 1 - add running_real[] for migration version 2 Signed-off-by: Marc-Andr? Lureau <marcandre.lureau@redhat.com> Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'hw/intel-hda.h')
-rw-r--r--hw/intel-hda.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/intel-hda.h b/hw/intel-hda.h
index 4e44e38..65fd2a8 100644
--- a/hw/intel-hda.h
+++ b/hw/intel-hda.h
@@ -34,7 +34,7 @@ struct HDACodecDeviceInfo {
int (*init)(HDACodecDevice *dev);
int (*exit)(HDACodecDevice *dev);
void (*command)(HDACodecDevice *dev, uint32_t nid, uint32_t data);
- void (*stream)(HDACodecDevice *dev, uint32_t stnr, bool running);
+ void (*stream)(HDACodecDevice *dev, uint32_t stnr, bool running, bool output);
};
void hda_codec_bus_init(DeviceState *dev, HDACodecBus *bus,