ASoC: change set_tdm_slot api to allow slot_width override.
authorDaniel Ribeiro <drwyrm@gmail.com>
Tue, 16 Jun 2009 00:44:31 +0000 (21:44 -0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 6 Aug 2009 14:52:24 +0000 (15:52 +0100)
commita5479e389e989acfeca9c32eeb0083d086202280
tree5bcc8940b9e7981916d1e9812957b72d6b82b8af
parent9029bb316bb99ccc7f0518c4d3e0d6adc0729c4f
ASoC: change set_tdm_slot api to allow slot_width override.

Extend set_tdm_slot to allow the user to arbitrarily set the frame width
and active TX/RX slots.

Updates magician.c and wm9081.c for the new set_tdm_slot(). wm9081.c
still doesn't handle the slot_width override.

While being there, correct an incorrect use of SlotsPerFrm(7) use in
bitmask on pxa-ssp.c (SSCR0_SlotsPerFrm(x) is (((x) - 1) << 24)) ).

(this series is meant for Mark's for-2.6.32 branch)

Signed-off-by: Daniel Ribeiro <drwyrm@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/sound/soc-dai.h
sound/soc/codecs/wm9081.c
sound/soc/pxa/magician.c
sound/soc/pxa/pxa-ssp.c
sound/soc/soc-core.c