OSDN Git Service

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)
commit69756930f2de0457d51db7d505a1e4f40e9fd116
treef48f116572781a5ab5115fe541fcc9794b12d157
parent3acd3e3bab95ec3622ff98da313290ee823a0f68
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