The pull request has been entered for the first release of the new code.
No preferred tuner setting is in the first pull request, but I will look into addressing this in the future.
To test this prior to the merge, you can download both Kodi and the PVR code from my repository, at these addresses (Kodi is unmodified, but is a snapshot at the same point in development as the PRV code, which is last night):
https://github.com/MatthewLundberg/xbmc
https://github.com/MatthewLundberg/pvr.hdhomerun
Within the xbmc tree, in the file cmake/installdata/common/addons.txt, add the following line:
addons/pvr.hdhomerun/*
Also download and build the HDHomeRun library. You can get the code here:
http://www.silicondust.com/support/downloads/
Then configure and compile the PVR and Kodi itself. The build instructions are identical to the mainline.
Notes on this code:
It is lineup-based rather than tuner-based, to handle multiple tuners while allowing any of them to be used.
Each channel shows up exactly once in the guide and channel selector.
A minimal covering of the lineup is determined, possibly reducing network bandwidth if a subset of tuner boxes contain the entire channel lineup. Cable users should only need to retrieve the guide for one tuner box.
Selecting a channel attempts to tune the first tuner found, but does not check the tuner at this time. If the tuner box is fully-subscribed, the attempt will fail, but selecting the channel again will cause a different tuner to be selected. A tuner check will be added in a subsequent release so this will be automatic.
Added the episode name from the guide (this was missing in the earlier code).
The channel name displayed can be selected in the options, one of three settings: the name returned by the tuner, the name returned by the guide, and the affiliate returned by the guide.