summaryrefslogtreecommitdiffstats
path: root/hw/intel-hda.h
diff options
context:
space:
mode:
authorMarc-André Lureau2011-10-25 16:53:01 +0200
committermalc2011-10-25 17:15:20 +0200
commitba43d28916c4f51c19bd7366089155ce81bee058 (patch)
tree98db35e780214b86237dd8860c3e92a6a367a1cd /hw/intel-hda.h
parenthda: do not mix output and input streams, RHBZ #740493 (diff)
downloadqemu-ba43d28916c4f51c19bd7366089155ce81bee058.tar.gz
qemu-ba43d28916c4f51c19bd7366089155ce81bee058.tar.xz
qemu-ba43d28916c4f51c19bd7366089155ce81bee058.zip
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 4e44e3894f..65fd2a85bb 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,