mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
If we use the channels which are less than en_always_grps_num, we don't need to set the flag to skip_grps which are not used. And, the skip grps need to refer to mapped_grps For example, if: rockchip,en-always-grps = <1 2 3>; rockchip,adc-grps-route = <2 1 3 0>; The DUT startup and capture 2ch at first, we just open grp2 and set skip_grp[2]=1. Then, if we capture 4ch, we just skip grp2, open grp1, and set skip_grp[1]=1. To capture 6ch: we skip grp2/grp1, open grp3 and set skip_grp[3]=1. To capture 8ch: we skip grp2/grp1/grp3 and open grp0. Change-Id: I88c0b220ce0e714abafda1be3c895ad1c5c9ddca Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>