<!--
{
  "availability" : [
    "DriverKit: 21.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AudioDriverKit",
  "identifier" : "/documentation/AudioDriverKit/IOUserAudioClockDevice/SetClockDomain",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AudioDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOUserAudioClockDevice@F@SetClockDomain#i#"
  },
  "title" : "SetClockDomain"
}
-->

# SetClockDomain

Sets the clock domain value of the clock device.

```
kern_return_t SetClockDomain(uint32_t in_clock_domain);
```

## Parameters

`in_clock_domain`

The clock domain to set, as a `uint32_t`. This value indicates the clock domain to which this AudioDevice belongs. Audio hardware can synchronize AudioDevices that have the same value for this property. However, a value of `0` indicates an unspecified clock domain for the device. The framework assumes devices with unspecified clock domains are separate from one another, even if they also has `0` as their clock domain value.

## Return Value

<doc://com.apple.documentation/documentation/DriverKit/kIOReturnSuccess> on success, or another value if an error occurs. For a list of error codes, see <doc://com.apple.documentation/documentation/DriverKit/error-codes>.

## Discussion

Drivers can change the transport type of the clock device dynamically. If successful, changing the transport type sends a notification to the host to update the object state.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)