ASoC: omap-mcbsp: fix snd_pcm_hw_rule_add arguments
authorGrazvydas Ignotas <notasas@gmail.com>
Thu, 8 Mar 2012 23:19:15 +0000 (01:19 +0200)
committerLiam Girdwood <lrg@ti.com>
Mon, 12 Mar 2012 13:34:24 +0000 (13:34 +0000)
commit94a504c2e059fb88f05ede6d614504779275b099
treed371d36dc2ddf259e18f7f768708dc5c0b5245c3
parent5788c62e72b8484836ae6587c7fb65757a777a3a
ASoC: omap-mcbsp: fix snd_pcm_hw_rule_add arguments

We are setting SNDRV_PCM_HW_PARAM_BUFFER_SIZE based on
SNDRV_PCM_HW_PARAM_CHANNELS, not vice versa. This bug didn't
have much impact because the rules are evaluated multiple times
by the core, and intended value got set eventually.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@ti.com>
sound/soc/omap/omap-mcbsp.c