ASoC: Provide core support for symmetric sample rates
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 7 Apr 2009 17:10:13 +0000 (18:10 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 7 Apr 2009 17:51:22 +0000 (18:51 +0100)
commit06f409d76f1d382167eb1cadde2e23a73272865d
treec3ce8d3662d0916bee10fe635cc84665b3c12cca
parent6553e192d48af88184029066c30c9464516ea0b7
ASoC: Provide core support for symmetric sample rates

Many devices require symmetric configurations of capture and playback
data formats, often due to shared clocking but sometimes also due to
other shared playback and record configuration in the device. Start
providing core support for this by allowing the DAIs or the machine
to specify that the sample rates used should be kept symmetric.

A flag symmetric_rates is provided in the snd_soc_dai and
snd_soc_dai_link structures. If this is set in either of the DAIs or in
the machine then a constraint will be applied when a stream is already
open preventing any changes in sample rate.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/sound/soc-dai.h
include/sound/soc.h
sound/soc/soc-core.c