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)
commit9ee802ec5b1ae0ee468b6acf1bf489347997893b
treef2be7227c6cf56c26e30f0fa46f1eab2aa71cab8
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672
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