]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: cs5535audio: Fix invalid endian conversion
authorTakashi Iwai <tiwai@suse.de>
Wed, 25 Jul 2018 15:59:26 +0000 (17:59 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 26 Jul 2018 06:23:45 +0000 (08:23 +0200)
commite1edcbf28f1cddb43f08f806e03d8cd4face56f6
treef48f116572781a5ab5115fe541fcc9794b12d157
parent07ee3a419107eba3fa10315a378e07d1a96e0d19
ALSA: cs5535audio: Fix invalid endian conversion

One place in cs5535audio_build_dma_packets() does an extra conversion
via cpu_to_le32(); namely jmpprd_addr is passed to setup_prd() ops,
which writes the value via cs_writel().  That is, the callback does
the conversion by itself, and we don't need to convert beforehand.

This patch fixes that bogus conversion.

Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/cs5535audio/cs5535audio.h
sound/pci/cs5535audio/cs5535audio_pcm.c