]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: davinci-mcasp: clean up davinci_hw_common_param()
authorDaniel Mack <zonque@gmail.com>
Fri, 8 Mar 2013 13:19:38 +0000 (14:19 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 12 Mar 2013 19:03:53 +0000 (19:03 +0000)
commit0ebca70aa6082c53a51edad87ae75399bb0378a4
tree240eceb0155b30cc5335bac3ebeddb7ebf5cd0c7
parenta3e6de299ad2a4e1e95948d2eeed50f8940d8695
ASoC: davinci-mcasp: clean up davinci_hw_common_param()

As pointed of by Vaibhav, commit a3e6de299 ("ASoC: davinci-mcasp:
Add support for multichannel playback") duplicated the logic of
counting the active serializers. That can be avoided by shifting
the code around a bit.

Also, drop two unused defines introduced by the same commit.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Acked-by: Vaibhav Bedia <vaibhav.bedia@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/davinci/davinci-mcasp.c