xbmc/xbmc — pull request #570 by opdenkamp (2011-12-12 22:55:01+00:00)
Title: cec: control volume settings on a CEC capable amp (when one is found) + fix when XBMC is connected to something else than a TV

This PR adds the following:
- check whether a CEC capable amp is avaiable on the bus. when one is found, the PCM volume is set to 100%, and all volume related changes (vol up, down, mute) are sent to the amp.
- the second commit fixes the issue for people who have XBMC connected to something else than a TV, e.g. the amp. since the CEC adapter does not support physical address detection (yet), we need to know to which device and on which HDMI port XBMC is connected, so we can determine the correct address. if the wrong physical address is used, CEC capable devices will use the wrong device as active source. so people who have an amp and have XBMC connected to that amp (which is a standard setup), will not any sound out of their amp without this change (or without pressing a button on the amp's remote ofc)

Since this needs an updated libCEC (v1.3) and adds a new feature, this is for after Eden (the fix needs libCEC v1.3 too)