mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-01-28 22:04:43 -08:00
Rebase against 630f5e97b12c1bc934e44a632d30e9129651bb06.
[mmdevapi-AEV_Stubs] Removed patches to improve various AudioEndpointVolume stubs (similar patch accepted upstream).
This commit is contained in:
parent
91aa96cd37
commit
577b0d91dc
@ -1,36 +0,0 @@
|
||||
From e88178f705163d00848d550641734f0e06855509 Mon Sep 17 00:00:00 2001
|
||||
From: Christian Costa <titan.costa@gmail.com>
|
||||
Date: Sun, 8 Feb 2015 11:32:55 +0100
|
||||
Subject: mmdevapi: Improve AEV_GetVolumeRange stub.
|
||||
|
||||
---
|
||||
dlls/mmdevapi/audiovolume.c | 11 ++++++++---
|
||||
1 file changed, 8 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/dlls/mmdevapi/audiovolume.c b/dlls/mmdevapi/audiovolume.c
|
||||
index 4cc3226..f174f58 100644
|
||||
--- a/dlls/mmdevapi/audiovolume.c
|
||||
+++ b/dlls/mmdevapi/audiovolume.c
|
||||
@@ -248,11 +248,16 @@ static HRESULT WINAPI AEV_QueryHardwareSupport(IAudioEndpointVolumeEx *iface, DW
|
||||
|
||||
static HRESULT WINAPI AEV_GetVolumeRange(IAudioEndpointVolumeEx *iface, float *mindb, float *maxdb, float *inc)
|
||||
{
|
||||
- TRACE("(%p)->(%p,%p,%p)\n", iface, mindb, maxdb, inc);
|
||||
+ FIXME("(%p)->(%p,%p,%p): stub\n", iface, mindb, maxdb, inc);
|
||||
+
|
||||
if (!mindb || !maxdb || !inc)
|
||||
return E_POINTER;
|
||||
- FIXME("stub\n");
|
||||
- return E_NOTIMPL;
|
||||
+
|
||||
+ *mindb = 0.0f;
|
||||
+ *maxdb = 1.0f;
|
||||
+ *inc = 0.1f;
|
||||
+
|
||||
+ return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI AEV_GetVolumeRangeChannel(IAudioEndpointVolumeEx *iface, UINT chan, float *mindb, float *maxdb, float *inc)
|
||||
--
|
||||
2.2.2
|
||||
|
@ -1,70 +0,0 @@
|
||||
From 542ba5fc717facafe9de075cec17fa115472bc1b Mon Sep 17 00:00:00 2001
|
||||
From: Christian Costa <titan.costa@gmail.com>
|
||||
Date: Sun, 8 Feb 2015 11:38:17 +0100
|
||||
Subject: mmdevapi: Improve AEV_SetMasterVolumeLevel and
|
||||
AEV_GetMasterVolumeLevel stubs.
|
||||
|
||||
---
|
||||
dlls/mmdevapi/audiovolume.c | 23 +++++++++++++++++------
|
||||
1 file changed, 17 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/dlls/mmdevapi/audiovolume.c b/dlls/mmdevapi/audiovolume.c
|
||||
index e6f94a1..4f915ed 100644
|
||||
--- a/dlls/mmdevapi/audiovolume.c
|
||||
+++ b/dlls/mmdevapi/audiovolume.c
|
||||
@@ -43,6 +43,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(mmdevapi);
|
||||
typedef struct AEVImpl {
|
||||
IAudioEndpointVolumeEx IAudioEndpointVolumeEx_iface;
|
||||
LONG ref;
|
||||
+ float level;
|
||||
} AEVImpl;
|
||||
|
||||
static inline AEVImpl *impl_from_IAudioEndpointVolumeEx(IAudioEndpointVolumeEx *iface)
|
||||
@@ -120,9 +121,13 @@ static HRESULT WINAPI AEV_GetChannelCount(IAudioEndpointVolumeEx *iface, UINT *c
|
||||
|
||||
static HRESULT WINAPI AEV_SetMasterVolumeLevel(IAudioEndpointVolumeEx *iface, float leveldb, const GUID *ctx)
|
||||
{
|
||||
- TRACE("(%p)->(%f,%s)\n", iface, leveldb, debugstr_guid(ctx));
|
||||
- FIXME("stub\n");
|
||||
- return E_NOTIMPL;
|
||||
+ AEVImpl *This = impl_from_IAudioEndpointVolumeEx(iface);
|
||||
+
|
||||
+ FIXME("(%p)->(%f,%s): stub\n", iface, leveldb, debugstr_guid(ctx));
|
||||
+
|
||||
+ This->level = leveldb;
|
||||
+
|
||||
+ return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI AEV_SetMasterVolumeLevelScalar(IAudioEndpointVolumeEx *iface, float level, const GUID *ctx)
|
||||
@@ -134,11 +139,16 @@ static HRESULT WINAPI AEV_SetMasterVolumeLevelScalar(IAudioEndpointVolumeEx *ifa
|
||||
|
||||
static HRESULT WINAPI AEV_GetMasterVolumeLevel(IAudioEndpointVolumeEx *iface, float *leveldb)
|
||||
{
|
||||
- TRACE("(%p)->(%p)\n", iface, leveldb);
|
||||
+ AEVImpl *This = impl_from_IAudioEndpointVolumeEx(iface);
|
||||
+
|
||||
+ FIXME("(%p)->(%p): stub\n", iface, leveldb);
|
||||
+
|
||||
if (!leveldb)
|
||||
return E_POINTER;
|
||||
- FIXME("stub\n");
|
||||
- return E_NOTIMPL;
|
||||
+
|
||||
+ *leveldb = This->level;
|
||||
+
|
||||
+ return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI AEV_GetMasterVolumeLevelScalar(IAudioEndpointVolumeEx *iface, float *level)
|
||||
@@ -288,6 +298,7 @@ HRESULT AudioEndpointVolume_Create(MMDevice *parent, IAudioEndpointVolume **ppv)
|
||||
return E_OUTOFMEMORY;
|
||||
This->IAudioEndpointVolumeEx_iface.lpVtbl = &AEVImpl_Vtbl;
|
||||
This->ref = 1;
|
||||
+ This->level = 1.0f;
|
||||
|
||||
*ppv = (IAudioEndpointVolume*)&This->IAudioEndpointVolumeEx_iface;
|
||||
return S_OK;
|
||||
--
|
||||
2.4.2
|
||||
|
@ -1,66 +0,0 @@
|
||||
From 320a7201538fd7a1774b6a67713a2fa446791238 Mon Sep 17 00:00:00 2001
|
||||
From: Christian Costa <titan.costa@gmail.com>
|
||||
Date: Tue, 10 Feb 2015 20:12:12 +0100
|
||||
Subject: mmdevapi: Improve AEV_SetMute and AEV_GetMute stubs.
|
||||
|
||||
---
|
||||
dlls/mmdevapi/audiovolume.c | 23 +++++++++++++++++------
|
||||
1 file changed, 17 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/dlls/mmdevapi/audiovolume.c b/dlls/mmdevapi/audiovolume.c
|
||||
index 4f915ed..f8655db 100644
|
||||
--- a/dlls/mmdevapi/audiovolume.c
|
||||
+++ b/dlls/mmdevapi/audiovolume.c
|
||||
@@ -44,6 +44,7 @@ typedef struct AEVImpl {
|
||||
IAudioEndpointVolumeEx IAudioEndpointVolumeEx_iface;
|
||||
LONG ref;
|
||||
float level;
|
||||
+ BOOL mute;
|
||||
} AEVImpl;
|
||||
|
||||
static inline AEVImpl *impl_from_IAudioEndpointVolumeEx(IAudioEndpointVolumeEx *iface)
|
||||
@@ -194,18 +195,27 @@ static HRESULT WINAPI AEV_GetChannelVolumeLevelScalar(IAudioEndpointVolumeEx *if
|
||||
|
||||
static HRESULT WINAPI AEV_SetMute(IAudioEndpointVolumeEx *iface, BOOL mute, const GUID *ctx)
|
||||
{
|
||||
- TRACE("(%p)->(%u,%s)\n", iface, mute, debugstr_guid(ctx));
|
||||
- FIXME("stub\n");
|
||||
- return E_NOTIMPL;
|
||||
+ AEVImpl *This = impl_from_IAudioEndpointVolumeEx(iface);
|
||||
+
|
||||
+ FIXME("(%p)->(%u,%s): stub\n", iface, mute, debugstr_guid(ctx));
|
||||
+
|
||||
+ This->mute = mute;
|
||||
+
|
||||
+ return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI AEV_GetMute(IAudioEndpointVolumeEx *iface, BOOL *mute)
|
||||
{
|
||||
- TRACE("(%p)->(%p)\n", iface, mute);
|
||||
+ AEVImpl *This = impl_from_IAudioEndpointVolumeEx(iface);
|
||||
+
|
||||
+ FIXME("(%p)->(%p): stub\n", iface, mute);
|
||||
+
|
||||
if (!mute)
|
||||
return E_POINTER;
|
||||
- FIXME("stub\n");
|
||||
- return E_NOTIMPL;
|
||||
+
|
||||
+ *mute = This->mute;
|
||||
+
|
||||
+ return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI AEV_GetVolumeStepInfo(IAudioEndpointVolumeEx *iface, UINT *stepsize, UINT *stepcount)
|
||||
@@ -299,6 +309,7 @@ HRESULT AudioEndpointVolume_Create(MMDevice *parent, IAudioEndpointVolume **ppv)
|
||||
This->IAudioEndpointVolumeEx_iface.lpVtbl = &AEVImpl_Vtbl;
|
||||
This->ref = 1;
|
||||
This->level = 1.0f;
|
||||
+ This->mute = FALSE;
|
||||
|
||||
*ppv = (IAudioEndpointVolume*)&This->IAudioEndpointVolumeEx_iface;
|
||||
return S_OK;
|
||||
--
|
||||
2.4.2
|
||||
|
@ -1,3 +0,0 @@
|
||||
Fixes: [35658] Improve stub for AEV_GetVolumeRange
|
||||
Fixes: Improve stubs for AEV_{Get,Set}MasterVolumeLevel
|
||||
Fixes: Improve stubs for AEV_{Get,Set}Mute
|
@ -51,7 +51,7 @@ usage()
|
||||
# Get the upstream commit sha
|
||||
upstream_commit()
|
||||
{
|
||||
echo "9da6dd2ac93c97bc6f8cd60f26f20f632b8d8ce0"
|
||||
echo "630f5e97b12c1bc934e44a632d30e9129651bb06"
|
||||
}
|
||||
|
||||
# Show version information
|
||||
@ -186,7 +186,6 @@ patch_enable_all ()
|
||||
enable_libs_Unicode_Collation="$1"
|
||||
enable_makedep_PARENTSPEC="$1"
|
||||
enable_mfplat_MFTRegister="$1"
|
||||
enable_mmdevapi_AEV_Stubs="$1"
|
||||
enable_mmsystem_dll16_MIDIHDR_Refcount="$1"
|
||||
enable_mountmgr_DosDevices="$1"
|
||||
enable_mpr_WNetGetUniversalNameW="$1"
|
||||
@ -721,9 +720,6 @@ patch_enable ()
|
||||
mfplat-MFTRegister)
|
||||
enable_mfplat_MFTRegister="$2"
|
||||
;;
|
||||
mmdevapi-AEV_Stubs)
|
||||
enable_mmdevapi_AEV_Stubs="$2"
|
||||
;;
|
||||
mmsystem.dll16-MIDIHDR_Refcount)
|
||||
enable_mmsystem_dll16_MIDIHDR_Refcount="$2"
|
||||
;;
|
||||
@ -4372,25 +4368,6 @@ if test "$enable_mfplat_MFTRegister" -eq 1; then
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
# Patchset mmdevapi-AEV_Stubs
|
||||
# |
|
||||
# | This patchset fixes the following Wine bugs:
|
||||
# | * [#35658] Improve stub for AEV_GetVolumeRange
|
||||
# |
|
||||
# | Modified files:
|
||||
# | * dlls/mmdevapi/audiovolume.c
|
||||
# |
|
||||
if test "$enable_mmdevapi_AEV_Stubs" -eq 1; then
|
||||
patch_apply mmdevapi-AEV_Stubs/0001-mmdevapi-Improve-AEV_GetVolumeRange-stub.patch
|
||||
patch_apply mmdevapi-AEV_Stubs/0002-mmdevapi-Improve-AEV_SetMasterVolumeLevel-and-AEV_Ge.patch
|
||||
patch_apply mmdevapi-AEV_Stubs/0003-mmdevapi-Improve-AEV_SetMute-and-AEV_GetMute-stubs.patch
|
||||
(
|
||||
echo '+ { "Christian Costa", "mmdevapi: Improve AEV_GetVolumeRange stub.", 1 },';
|
||||
echo '+ { "Christian Costa", "mmdevapi: Improve AEV_SetMasterVolumeLevel and AEV_GetMasterVolumeLevel stubs.", 1 },';
|
||||
echo '+ { "Christian Costa", "mmdevapi: Improve AEV_SetMute and AEV_GetMute stubs.", 1 },';
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
# Patchset mmsystem.dll16-MIDIHDR_Refcount
|
||||
# |
|
||||
# | This patchset fixes the following Wine bugs:
|
||||
|
@ -1,4 +1,4 @@
|
||||
From da658e5cdaf5731bfbf776f7c0e95c64c0d25f83 Mon Sep 17 00:00:00 2001
|
||||
From ec5f680e18fcd9cc1b601cec01fb2bc289b966ba Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Lackner <sebastian@fds-team.de>
|
||||
Date: Wed, 4 Nov 2015 19:31:30 +0100
|
||||
Subject: wined3d: Rename wined3d_resource_(un)map to
|
||||
@ -21,7 +21,7 @@ To avoid name conflicts in the CSMT patchset.
|
||||
12 files changed, 44 insertions(+), 44 deletions(-)
|
||||
|
||||
diff --git a/dlls/d3d11/device.c b/dlls/d3d11/device.c
|
||||
index 8b7d2f8..d9cb43d 100644
|
||||
index 6ec154f..56fb86d 100644
|
||||
--- a/dlls/d3d11/device.c
|
||||
+++ b/dlls/d3d11/device.c
|
||||
@@ -267,7 +267,7 @@ static HRESULT STDMETHODCALLTYPE d3d11_immediate_context_Map(ID3D11DeviceContext
|
||||
@ -105,7 +105,7 @@ index 565f642..c0f20eb 100644
|
||||
|
||||
switch(hr)
|
||||
diff --git a/dlls/d3d8/volume.c b/dlls/d3d8/volume.c
|
||||
index f3a30a8..71a84ed 100644
|
||||
index dd75fff..639988b 100644
|
||||
--- a/dlls/d3d8/volume.c
|
||||
+++ b/dlls/d3d8/volume.c
|
||||
@@ -146,7 +146,7 @@ static HRESULT WINAPI d3d8_volume_LockBox(IDirect3DVolume8 *iface,
|
||||
@ -125,7 +125,7 @@ index f3a30a8..71a84ed 100644
|
||||
+ hr = wined3d_resource_sub_resource_unmap(wined3d_texture_get_resource(volume->wined3d_texture), volume->sub_resource_idx);
|
||||
wined3d_mutex_unlock();
|
||||
|
||||
return hr;
|
||||
if (hr == WINEDDERR_NOTLOCKED)
|
||||
diff --git a/dlls/d3d9/surface.c b/dlls/d3d9/surface.c
|
||||
index a0a1f27..8a718a8 100644
|
||||
--- a/dlls/d3d9/surface.c
|
||||
@ -149,7 +149,7 @@ index a0a1f27..8a718a8 100644
|
||||
|
||||
switch(hr)
|
||||
diff --git a/dlls/d3d9/volume.c b/dlls/d3d9/volume.c
|
||||
index d92f555..9a8ef54 100644
|
||||
index c032a01..24067dd 100644
|
||||
--- a/dlls/d3d9/volume.c
|
||||
+++ b/dlls/d3d9/volume.c
|
||||
@@ -146,7 +146,7 @@ static HRESULT WINAPI d3d9_volume_LockBox(IDirect3DVolume9 *iface,
|
||||
@ -169,7 +169,7 @@ index d92f555..9a8ef54 100644
|
||||
+ hr = wined3d_resource_sub_resource_unmap(wined3d_texture_get_resource(volume->wined3d_texture), volume->sub_resource_idx);
|
||||
wined3d_mutex_unlock();
|
||||
|
||||
return hr;
|
||||
if (hr == WINEDDERR_NOTLOCKED)
|
||||
diff --git a/dlls/ddraw/surface.c b/dlls/ddraw/surface.c
|
||||
index d133e7e..09a3cca 100644
|
||||
--- a/dlls/ddraw/surface.c
|
||||
@ -227,7 +227,7 @@ index d133e7e..09a3cca 100644
|
||||
|
||||
if (src_surface->surface_desc.ddsCaps.dwCaps & DDSCAPS_MIPMAP)
|
||||
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
|
||||
index f094752..2330ebe 100644
|
||||
index d032184..c410a47 100644
|
||||
--- a/dlls/wined3d/device.c
|
||||
+++ b/dlls/wined3d/device.c
|
||||
@@ -3570,7 +3570,7 @@ static HRESULT wined3d_device_update_texture_3d(struct wined3d_device *device,
|
||||
@ -248,7 +248,7 @@ index f094752..2330ebe 100644
|
||||
goto done;
|
||||
}
|
||||
|
||||
@@ -4236,7 +4236,7 @@ static struct wined3d_texture *wined3d_device_create_cursor_texture(struct wined
|
||||
@@ -4228,7 +4228,7 @@ static struct wined3d_texture *wined3d_device_create_cursor_texture(struct wined
|
||||
struct wined3d_texture *texture;
|
||||
HRESULT hr;
|
||||
|
||||
@ -257,7 +257,7 @@ index f094752..2330ebe 100644
|
||||
{
|
||||
ERR("Failed to map source texture.\n");
|
||||
return NULL;
|
||||
@@ -4259,7 +4259,7 @@ static struct wined3d_texture *wined3d_device_create_cursor_texture(struct wined
|
||||
@@ -4251,7 +4251,7 @@ static struct wined3d_texture *wined3d_device_create_cursor_texture(struct wined
|
||||
|
||||
hr = wined3d_texture_create(device, &desc, 1, WINED3D_TEXTURE_CREATE_MAPPABLE,
|
||||
&data, NULL, &wined3d_null_parent_ops, &texture);
|
||||
@ -266,7 +266,7 @@ index f094752..2330ebe 100644
|
||||
if (FAILED(hr))
|
||||
{
|
||||
ERR("Failed to create cursor texture.\n");
|
||||
@@ -4340,7 +4340,7 @@ HRESULT CDECL wined3d_device_set_cursor_properties(struct wined3d_device *device
|
||||
@@ -4332,7 +4332,7 @@ HRESULT CDECL wined3d_device_set_cursor_properties(struct wined3d_device *device
|
||||
return E_OUTOFMEMORY;
|
||||
memset(mask_bits, 0xff, mask_size);
|
||||
|
||||
@ -275,7 +275,7 @@ index f094752..2330ebe 100644
|
||||
WINED3D_MAP_NO_DIRTY_UPDATE | WINED3D_MAP_READONLY);
|
||||
cursor_info.fIcon = FALSE;
|
||||
cursor_info.xHotspot = x_hotspot;
|
||||
@@ -4349,7 +4349,7 @@ HRESULT CDECL wined3d_device_set_cursor_properties(struct wined3d_device *device
|
||||
@@ -4341,7 +4341,7 @@ HRESULT CDECL wined3d_device_set_cursor_properties(struct wined3d_device *device
|
||||
cursor_image->resource.height, 1, 1, mask_bits);
|
||||
cursor_info.hbmColor = CreateBitmap(cursor_image->resource.width,
|
||||
cursor_image->resource.height, 1, 32, map_desc.data);
|
||||
@ -307,10 +307,10 @@ index 423d162..0821fde 100644
|
||||
TRACE("resource %p, sub_resource_idx %u.\n", resource, sub_resource_idx);
|
||||
|
||||
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
|
||||
index 814d4ab..e156bd8 100644
|
||||
index 1169c00..d09289c 100644
|
||||
--- a/dlls/wined3d/surface.c
|
||||
+++ b/dlls/wined3d/surface.c
|
||||
@@ -2005,25 +2005,25 @@ static struct wined3d_texture *surface_convert_format(struct wined3d_texture *sr
|
||||
@@ -1997,25 +1997,25 @@ static struct wined3d_texture *surface_convert_format(struct wined3d_texture *sr
|
||||
memset(&src_map, 0, sizeof(src_map));
|
||||
memset(&dst_map, 0, sizeof(dst_map));
|
||||
|
||||
@ -341,7 +341,7 @@ index 814d4ab..e156bd8 100644
|
||||
|
||||
return dst_texture;
|
||||
}
|
||||
@@ -4120,7 +4120,7 @@ static HRESULT surface_cpu_blt(struct wined3d_texture *dst_texture, unsigned int
|
||||
@@ -4046,7 +4046,7 @@ static HRESULT surface_cpu_blt(struct wined3d_texture *dst_texture, unsigned int
|
||||
if (src_texture == dst_texture && src_sub_resource_idx == dst_sub_resource_idx)
|
||||
{
|
||||
same_sub_resource = TRUE;
|
||||
@ -350,7 +350,7 @@ index 814d4ab..e156bd8 100644
|
||||
src_map = dst_map;
|
||||
src_format = dst_texture->resource.format;
|
||||
dst_format = src_format;
|
||||
@@ -4145,7 +4145,7 @@ static HRESULT surface_cpu_blt(struct wined3d_texture *dst_texture, unsigned int
|
||||
@@ -4071,7 +4071,7 @@ static HRESULT surface_cpu_blt(struct wined3d_texture *dst_texture, unsigned int
|
||||
src_texture = converted_texture;
|
||||
src_sub_resource_idx = 0;
|
||||
}
|
||||
@ -359,7 +359,7 @@ index 814d4ab..e156bd8 100644
|
||||
src_format = src_texture->resource.format;
|
||||
src_fmt_flags = src_texture->resource.format_flags;
|
||||
}
|
||||
@@ -4155,7 +4155,7 @@ static HRESULT surface_cpu_blt(struct wined3d_texture *dst_texture, unsigned int
|
||||
@@ -4081,7 +4081,7 @@ static HRESULT surface_cpu_blt(struct wined3d_texture *dst_texture, unsigned int
|
||||
src_fmt_flags = dst_fmt_flags;
|
||||
}
|
||||
|
||||
@ -368,7 +368,7 @@ index 814d4ab..e156bd8 100644
|
||||
}
|
||||
|
||||
bpp = dst_format->byte_count;
|
||||
@@ -4573,9 +4573,9 @@ error:
|
||||
@@ -4499,9 +4499,9 @@ error:
|
||||
}
|
||||
|
||||
release:
|
||||
|
Loading…
x
Reference in New Issue
Block a user