OSDN Git Service

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)
commitc4f9374ddc461ed76be30f4d354a6d1ecb94dfa5
tree2f439a721f6f6b12730236265630b6b2178f1afe
parent3a3b070da98e43037e35b9ad02eb0fff1a57e318
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