Skip to content

Commit

Permalink
[AC97] Import the AC97 driver sample
Browse files Browse the repository at this point in the history
The source code is licensed under MIT license, taken from
"MSDN Code Gallery Microsoft Samples" repository
(https://github.com/microsoftarchive/msdn-code-gallery-microsoft)

The original license was MS-PL, but the driver was later relicensed
as MIT.

Adopted to ReactOS code base by Michael Stamper.

Co-authored-by: Michael Stamper <michaelstamper1@gmail.com>
  • Loading branch information
2 people authored and Extravert-ir committed Feb 15, 2022
1 parent 0944f80 commit 9c79a79
Show file tree
Hide file tree
Showing 35 changed files with 14,739 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/wdm/audio/drivers/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@

add_subdirectory(ac97)
add_subdirectory(CMIDriver)
30 changes: 30 additions & 0 deletions drivers/wdm/audio/drivers/ac97/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

list(APPEND SOURCE
adapter.cpp
common.cpp
mintopo.cpp
prophnd.cpp
miniport.cpp
stream.cpp
stream2.cpp
rtminiport.cpp
rtstream.cpp
wavepciminiport.cpp
wavepcistream.cpp
wavecyclicminiport.cpp
wavecyclicstream.cpp)

add_library(ac97 MODULE
${SOURCE}
ac97.rc)

target_link_libraries(ac97 stdunk libcntpr uuid)
set_module_type(ac97 wdmdriver)
add_importlibs(ac97 portcls hal ntoskrnl)

if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
target_compile_options(ac97 PRIVATE -Wno-write-strings -Wno-switch)
endif()

add_cd_file(TARGET ac97 DESTINATION reactos/system32/drivers FOR all)
add_driver_inf(ac97 ac97.inf)

1 comment on commit 9c79a79

@JoachimHenze
Copy link
Contributor

@JoachimHenze JoachimHenze commented on 9c79a79 Dec 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Attention: on master this did introduce/unhide the following regressions:

Please sign in to comment.