code: def protocol_str(protocol):
      
      if protocol == const.PROTOCOL_MRP:
          return 'MRP'
      if protocol == const.PROTOCOL_DMAP:
          return 'DMAP'
      if protocol == const.PROTOCOL_AIRPLAY:
          return 'AirPlay'
      return 'Unknown'
docs: Convert internal API protocol to string.