]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ALSA: hda: cs35l56: Fix signedness error in cs35l56_hda_posture_put()
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Thu, 26 Feb 2026 11:17:28 +0000 (11:17 +0000)
committerTakashi Iwai <tiwai@suse.de>
Thu, 26 Feb 2026 11:42:59 +0000 (12:42 +0100)
commit003ce8c9b2ca28fbb4860651e76fb1c9a91f2ea1
tree52f8e515051b46d288e6d6ead275d94d5842f5cd
parent54f9d645a5453d0bfece0c465d34aaf072ea99fa
ALSA: hda: cs35l56: Fix signedness error in cs35l56_hda_posture_put()

In cs35l56_hda_posture_put() assign ucontrol->value.integer.value[0] to
a long instead of an unsigned long. ucontrol->value.integer.value[0] is
a long.

This fixes the sparse warning:

sound/hda/codecs/side-codecs/cs35l56_hda.c:256:20: warning: unsigned value
that used to be signed checked against zero?
sound/hda/codecs/side-codecs/cs35l56_hda.c:252:29: signed value source

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Fixes: 73cfbfa9caea8 ("ALSA: hda/cs35l56: Add driver for Cirrus Logic CS35L56 amplifier")
Link: https://patch.msgid.link/20260226111728.1700431-1-rf@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/codecs/side-codecs/cs35l56_hda.c