swr: fix inupt channels and layout error