linux-stable/sound/soc/atmel
Peter Rosin b6d6c6e95f ASoC: atmel_ssc_dai: Allow more rates
When the SSC acts as BCK master, use a ratnum rule to limit
the rate instead of only doing the standard rates. When the SSC
acts as BCK slave, allow any BCK frequency up to the SSC master
clock, divided by either of 2, 3 or 6.

Put a cap at 384kHz. Who's /ever/ going to need more than that?

The divider of 2, 3 or 6 is selected based on the Serial Clock Ratio
Considerations section from the SSC documentation:

    The Transmitter and the Receiver can be programmed to operate
    with the clock signals provided on either the TK or RK pins.
    This allows the SSC to support many slave-mode data transfers.
    In this case, the maximum clock speed allowed on the RK pin is:
    - Peripheral clock divided by 2 if Receiver Frame Synchro is input
    - Peripheral clock divided by 3 if Receiver Frame Synchro is output
    In addition, the maximum clock speed allowed on the TK pin is:
    - Peripheral clock divided by 6 if Transmit Frame Synchro is input
    - Peripheral clock divided by 2 if Transmit Frame Synchro is output

Signed-off-by: Peter Rosin <peda@axentia.se>
Acked-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2015-02-10 15:12:41 +08:00
..
atmel-pcm-dma.c ASoC: atmel-pcm-dma: won't check direction when configure dma 2015-02-02 12:18:45 +00:00
atmel-pcm-pdc.c ASoC: atmel-pcm-pdc: Remove broken suspend/resume code 2014-05-12 22:08:36 +01:00
atmel-pcm.c Merge branch 'for-linus-dma-masks' of git://git.linaro.org/people/rmk/linux-arm 2013-11-14 07:55:21 +09:00
atmel-pcm.h ASoC: atmel_pcm: make it buildable as module 2013-02-04 18:34:13 +00:00
atmel_ssc_dai.c ASoC: atmel_ssc_dai: Allow more rates 2015-02-10 15:12:41 +08:00
atmel_ssc_dai.h ASoC: atmel_ssc_dai: Allow more rates 2015-02-10 15:12:41 +08:00
atmel_wm8904.c ASoC: atmel: drop owner assignment from platform_drivers 2014-10-20 16:22:03 +02:00
Kconfig Asoc: sam9x5_wm8731: depend on ARCH_AT91 instead of SOC_AT91SAM9X5 2015-01-14 18:59:51 +00:00
Makefile ASoC: snd-soc-afeb9260: delete driver as board has just been removed 2014-12-01 19:11:16 +00:00
sam9g20_wm8731.c ASoC: atmel: sam9g20_wm8731: remove useless include 2015-01-06 17:43:56 +00:00
sam9x5_wm8731.c ASoC: atmel: drop owner assignment from platform_drivers 2014-10-20 16:22:03 +02:00