<!--
{
  "availability" : [
    "DriverKit: 21.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AudioDriverKit",
  "identifier" : "/documentation/AudioDriverKit/IOUserAudioDevice/SetPreferredInputChannelLayout",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AudioDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOUserAudioDevice@F@SetPreferredInputChannelLayout#*$@N@AudioDriverKit@E@IOUserAudioChannelLabel#l#"
  },
  "title" : "SetPreferredInputChannelLayout"
}
-->

# SetPreferredInputChannelLayout

Sets the input channel layout, using an array of audio channel label values.

```
kern_return_t SetPreferredInputChannelLayout(IOUserAudioChannelLabel *in_channel_labels, size_t in_num_channels);
```

## Parameters

`in_channel_labels`

An array of [`IOUserAudioChannelLabel`](/documentation/AudioDriverKit/AudioDriverKit/IOUserAudioChannelLabel) values.

`in_num_channels`

The number of items in the `in_channel_labels` array.

## 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>.

---

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)