]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMark Brown <broonie@kernel.org>
Mon, 16 Nov 2015 17:38:05 +0000 (17:38 +0000)
commit8bc7b497260e575ea7236d76a3a3d5e2dc1e4d68
tree2f439a721f6f6b12730236265630b6b2178f1afe
parentf513c04cf5e542969bc4aee9b0aab266df18e3d9
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.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rockchip_i2s.c