Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
03af71d4
Commit
03af71d4
authored
Sep 08, 2022
by
Davide Beatrici
Committed by
Alexandre Julliard
Sep 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineoss: Adapt "test_connect_params" struct to mmdevapi's.
parent
5e4466a3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
7 deletions
+26
-7
mmdevdrv.c
dlls/wineoss.drv/mmdevdrv.c
+2
-0
oss.c
dlls/wineoss.drv/oss.c
+17
-1
unixlib.h
dlls/wineoss.drv/unixlib.h
+7
-6
No files found.
dlls/wineoss.drv/mmdevdrv.c
View file @
03af71d4
...
...
@@ -234,6 +234,8 @@ int WINAPI AUDDRV_GetPriority(void)
{
struct
test_connect_params
params
;
params
.
name
=
NULL
;
OSS_CALL
(
test_connect
,
&
params
);
return
params
.
priority
;
...
...
dlls/wineoss.drv/oss.c
View file @
03af71d4
...
...
@@ -1646,6 +1646,22 @@ unixlib_entry_t __wine_unix_call_funcs[] =
typedef
UINT
PTR32
;
static
NTSTATUS
oss_wow64_test_connect
(
void
*
args
)
{
struct
{
PTR32
name
;
enum
driver_priority
priority
;
}
*
params32
=
args
;
struct
test_connect_params
params
=
{
.
name
=
ULongToPtr
(
params32
->
name
),
};
oss_test_connect
(
&
params
);
params32
->
priority
=
params
.
priority
;
return
STATUS_SUCCESS
;
}
static
NTSTATUS
oss_wow64_get_endpoint_ids
(
void
*
args
)
{
struct
...
...
@@ -1986,7 +2002,7 @@ static NTSTATUS oss_wow64_aux_message(void *args)
unixlib_entry_t
__wine_unix_call_wow64_funcs
[]
=
{
oss_test_connect
,
oss_
wow64_
test_connect
,
oss_wow64_get_endpoint_ids
,
oss_wow64_create_stream
,
oss_wow64_release_stream
,
...
...
dlls/wineoss.drv/unixlib.h
View file @
03af71d4
...
...
@@ -21,17 +21,18 @@
typedef
UINT64
stream_handle
;
/* From <dlls/mmdevapi/mmdevapi.h> */
enum
DriverP
riority
enum
driver_p
riority
{
Priority_Unavailable
=
0
,
Priority_Low
,
Priority_Neutral
,
Priority_Preferred
Priority_Unavailable
=
0
,
/* driver won't work */
Priority_Low
,
/* driver may work, but unlikely */
Priority_Neutral
,
/* driver makes no judgment */
Priority_Preferred
/* driver thinks it's correct */
};
struct
test_connect_params
{
enum
DriverPriority
priority
;
const
char
*
name
;
enum
driver_priority
priority
;
};
struct
endpoint
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment