UPSTREAM: ASoC: rockchip: i2s: compatible with different chips
authorSugar Zhang <sugar.zhang@rock-chips.com>
Tue, 10 Nov 2015 07:32:07 +0000 (15:32 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 30 Mar 2016 10:09:51 +0000 (18:09 +0800)
commit93a4eebecfe27580b70e687d77a48ee213437169
treed2eeabe042d1feca1ec52cb984aef43852ba8ad4
parenta53d9dde3d15b0a687896e321e5eb56bd69d847e
UPSTREAM: ASoC: rockchip: i2s: compatible with different chips

there maybe more than one i2s module inside chip, and these i2s modules
have different channels features.

for example: there are 3 i2s in rk3066, one support 8 channels playback
and 2 channels capture, but the others only support 2 channels playback
and 2 channels capture.

in order to compatible with these various chips, we add playback and
capture property to specify these values.

there are default channels configuration in driver: 8 channels playback
and 2 channels capture. if not add property, we use the default values.

Change-Id: I45f3214160877223ba9722bd38a36584e416b14d
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
(cherry picked from commit c4f9374ddc461ed76be30f4d354a6d1ecb94dfa5)
sound/soc/rockchip/rockchip_i2s.c