Checks that preview device parameter has valid syntax.