]> git.karo-electronics.de Git - linux-beck.git/commit
ASoC: davinci-pcm: expand the .formats
authorBen Gardiner <bengardiner@nanometrics.ca>
Tue, 24 May 2011 18:50:16 +0000 (14:50 -0400)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 25 May 2011 11:14:29 +0000 (19:14 +0800)
commit8e56d5b834610504e232641565236ac60740a858
tree40d37a4b9e703192c3e386f2d03bc24c75fed935
parentfb1e9703af618c7ae0ee43f19778264c1804a50d
ASoC: davinci-pcm: expand the .formats

Based on the data_type test in ping_pong_dma_setup, davinci-pcm is capable of
handling data of width up to and including 32bits.

"
if ((data_type == 0) || (data_type > 4)) {
printk(KERN_ERR "%s: data_type=%i\n", __func__, data_type);
return -EINVAL;
}
"

Update the .format member of the snd_pcm_hardware instances it registers to
reflect this capability.

Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
Reviewed-by: Steven Faludi <stevenfaludi@nanometrics.ca>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/davinci/davinci-pcm.c