The first commit looks fine, but then after that there's too much that's changing again.
I'd suggest moving the `get_application_name()` to `mmdevapi` in the second commit and then in the next few commits add calls to that from the drivers that don't currently use it. That would probably be enough for this MR.
The next MR might move the `stream_release()` helper (and change `winecoreaudio` to use it).