diff options
author | Peter Rosin <peda@axentia.se> | 2016-11-15 21:38:13 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-11-16 14:02:31 +0300 |
commit | a85787edaaf7bc77ed011c89e23d52b3ff352c51 (patch) | |
tree | d705da6cfaf803fb1988a1f6778c41b35bc031f9 /sound/soc/atmel/atmel_ssc_dai.h | |
parent | 28549313da65cc8711401ee5466c526bd67de5f1 (diff) | |
download | linux-a85787edaaf7bc77ed011c89e23d52b3ff352c51.tar.xz |
ASoC: atmel_ssc_dai: if not provided, default to sensible dividers
When this driver masters BCLK and/or LRCLK, and noone has stated
differently, assume that all the bits of a frame are used.
This relieves the cpu dai users from the duty to fill in the dividers for
the common case.
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/atmel/atmel_ssc_dai.h')
-rw-r--r-- | sound/soc/atmel/atmel_ssc_dai.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/atmel/atmel_ssc_dai.h b/sound/soc/atmel/atmel_ssc_dai.h index 80b153857a88..75194f582131 100644 --- a/sound/soc/atmel/atmel_ssc_dai.h +++ b/sound/soc/atmel/atmel_ssc_dai.h @@ -113,6 +113,7 @@ struct atmel_ssc_info { unsigned short cmr_div; unsigned short tcmr_period; unsigned short rcmr_period; + unsigned int forced_divider; struct atmel_pcm_dma_params *dma_params[2]; struct atmel_ssc_state ssc_state; unsigned long mck_rate; |