Reduce the number of calls when creating a context

There is no need to retrieve info about the "type" of a channel if it is
not a scan_element channel.

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>