FMCOMMS2: Split this up, in preperation of using it in other plugins

Signed-off-by: Robin Getz <robin.getz@analog.com>