]> 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)
commiteeb32aa1aaa72cde31f0478dda66c15a373f3e31
treef2be7227c6cf56c26e30f0fa46f1eab2aa71cab8
parentc687bb41805a1238a38a086952014d5682516d9d
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