Fix channel detection.

Use new request_channel_layout API

Fixes #12244