ASoC: ux500_pcm: Use the same snd_pcm_hardware for playback and capture
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 3 Apr 2013 09:02:55 +0000 (11:02 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 7 Apr 2013 18:51:05 +0000 (19:51 +0100)
commit69b6f19622ce0aef41df884b75e3f789c64b89c0
treed813286bb381387fb8a1e5fc0fcdee0da352ffa3
parente6451c3ff8c99a8c171a30f20b4234687b35712c
ASoC: ux500_pcm: Use the same snd_pcm_hardware for playback and capture

The snd_pcm_hardware structs for playback and capture in the ux500 PCM are
identical, so remove one of them and use the same snd_pcm_hardware struct for
both playback and capture. Also move the defines used to initialize the
snd_pcm_hardware fields from ux500_pcm.h to ux500_pcm.c since that's the only
place where they are used.

Also drop the assignment of the snd_pcm_hardware struct to runtime->hw since
that is what the call to snd_soc_set_runtime_hwparams() right above it already
does, so the second assignment is redundant.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/ux500/ux500_pcm.c
sound/soc/ux500/ux500_pcm.h