truehd: break out part of rematrix_channels into platform-specific callback.