]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: sgtl5000: Use shift mask when setting codec mode
authorFilip Brozovic <fbrozovic@gmail.com>
Fri, 30 Jan 2015 11:58:24 +0000 (12:58 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 30 Jan 2015 13:18:21 +0000 (14:18 +0100)
commita10be15db233e14f4b4b01d4c4f21b38d7212f91
treef2be7227c6cf56c26e30f0fa46f1eab2aa71cab8
parentbfa6fa2a2dfa997f6c80e35808e50464ecfebcda
ASoC: sgtl5000: Use shift mask when setting codec mode

Shift the I2S mode value by the necessary amount before writing the
registers. This makes Right Justified and PCM mode work in addition to
the default Left Justified mode.

Signed-off-by: Filip Brozovic <fbrozovic@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/sgtl5000.c