Review Request 122404: [OS X]: draft support for audio in the IOKit backend

René J.V. Bertin rjvbertin-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Tue Feb 3 12:43:03 GMT 2015


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/122404/
-----------------------------------------------------------

(Updated Feb. 3, 2015, 1:43 p.m.)


Review request for KDE Software on Mac OS X, kdelibs, Phonon, and Solid.


Repository: kdelibs


Description (updated)
-------

While trying to bring a functional Multimedia kcm to OS X (see https://git.reviewboard.kde.org/r/122403/), I realised that Solid's IOKit backend doesn't currently support audio devices.

This RR outlines the current state of my draft attempt to provide that support. I'm handicapped by my lack of experience with both IOKit and Solid, and would thus appreciate a helping hand.

I'm currently at a stage where Solid returns a list representing the audio devices present in my system, but apparently not with the correct metadata for phononserver to consider them, despite the fact that I pretend all devices to be pluripotent (i.e. AUDIOCONTROL|AUDIOINPUT|AUDIOOUTPUT) :

```
kded(81671)/phonon (kded module) PhononServer::findDevices: Solid offers 5 audio devices
kded(81671)/phonon (kded module) PhononServer::findDevices: Solid offers 0 video devices
...
kded(81671)/phonon (kded module) PhononServer::findDevices: groups: ()
kded(81671)/phonon (kded module) PhononServer::findDevices: already found devices: QSet()
kded(81671)/phonon (kded module) PhononServer::findDevices: Audio Playback Devices: ()
kded(81671)/phonon (kded module) PhononServer::findDevices: Audio Capture Devices: ()
kded(81671)/phonon (kded module) PhononServer::findDevices: Video Capture Devices: ()
kded(81671)/kded4 *Kded::loadModule: Successfully loaded module "phononserver"
```

I'll add a more complete log as an attachment.


Diffs
-----

  solid/solid/CMakeLists.txt a7f1f07 
  solid/solid/backends/iokit/iokitdevice.cpp f113c16 
  solid/solid/backends/iokit/iokitmanager.cpp fcd748e 
  solid/solid/devicemanager.cpp a465169 

Diff: https://git.reviewboard.kde.org/r/122404/diff/


Testing
-------

On OS X 10.9.5/MacPorts with kdelibs 4.14.4 (git/master), kde4-runtime (git/master) and kde4-workspace (git/master).


File Attachments
----------------

full trace with debug output
  https://git.reviewboard.kde.org/media/uploaded/files/2015/02/03/67a59590-84a4-4d30-88aa-332d9f068a2c__Solid-20150203.log


Thanks,

René J.V. Bertin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-multimedia/attachments/20150203/2a519682/attachment.htm>


More information about the kde-multimedia mailing list