def set_clock_src(self, src): if self.get_property('streaming'): raise OSError('Packet streaming started.') if src not in self.__CLOCK_SRCS and src != 'Internal': raise ValueError('Invalid argument for source of clock.') plugs = self.__get_clock_plugs() dst = plugs['input'] if src == 'Internal': src = plugs['output'] else: src = self.__CLOCK_SRCS[src] AvcCcm.set_signal_source(self.fcp, src, dst)
def set_clock_source(self, src): if self.unit.get_property('streaming'): raise ValueError('Packet streaming already runs.') dst = AvcCcm.get_subunit_signal_addr('music', 0, 1) addr = self.__clocks[src] AvcCcm.set_signal_source(self.unit.fcp, addr, dst)