]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Let snd_soc_limit_volume() take a snd_soc_card
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 18 Oct 2015 15:04:33 +0000 (17:04 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 22 Oct 2015 12:49:20 +0000 (13:49 +0100)
commitf450d139da7e457ae169ef23780bf5e8811b23ac
tree6b05dea43a4c97116de5b5e0853abf38e9b24fee
parent935a478e4144e0a4f690471a4a1d8ad5718a721b
ASoC: Let snd_soc_limit_volume() take a snd_soc_card

snd_soc_limit_volume() operates on a card and the CODEC that is passed in
is only used to look up the card. Let it directly take the card instead.
This makes it possible to use it when no snd_soc_codec is available.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Tested-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h
sound/soc/omap/rx51.c
sound/soc/soc-ops.c