linux/sound/soc/sof
Kai-Heng Feng 49c2269634
ASoC: SOF: Update correct LED status at the first time usage of update_mute_led()
At the first time update_mute_led() gets called, if channels are already
muted, the temp value equals to led_value as 0, skipping the following
LED setting.

So set led_value to -1 as an uninitialized state, to update the correct
LED status at first time usage.

Fixes: 5d43001ae4 ("ASoC: SOF: acpi led support for switch controls")
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Acked-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20200430091139.7003-1-kai.heng.feng@canonical.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2020-05-01 12:27:17 +01:00
..
imx ASoC: SOF: imx8: Add ops for i.MX8QM 2020-02-11 11:26:22 +00:00
intel ASoC: SOF: Intel: add min/max channels for SSP on Baytrail/Broadwell 2020-04-17 19:37:15 +01:00
xtensa ASoC: SOF: Intel: add namespace for XTENSA 2019-12-18 20:02:21 +00:00
compress.c ASoC: SOF: Intel: Add Probe compress CPU DAIs 2020-02-18 21:52:11 +00:00
compress.h ASoC: SOF: Intel: Add Probe compress CPU DAIs 2020-02-18 21:52:11 +00:00
control.c ASoC: SOF: Update correct LED status at the first time usage of update_mute_led() 2020-05-01 12:27:17 +01:00
core.c ASoC: SOF: Generic probe compress operations 2020-02-18 21:52:07 +00:00
debug.c ASoC: SOF: Provide probe debugfs support 2020-02-18 21:52:10 +00:00
ipc.c Merge branch 'for-5.6' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-5.7 2020-03-04 13:38:36 +00:00
Kconfig ASoC: SOF: Generic probe compress operations 2020-02-18 21:52:07 +00:00
loader.c ASoC: SOF: Turn "firmware boot complete" message into a dbg message 2020-04-03 14:39:56 +01:00
Makefile ASoC: SOF: Generic probe compress operations 2020-02-18 21:52:07 +00:00
nocodec.c ASoC: SOF: nocodec: Amend arguments for sof_nocodec_setup() 2019-12-09 18:40:32 +00:00
ops.c ASoC: SOF: Fix a compile warning with CONFIG_PCI=n 2019-05-07 11:23:57 +09:00
ops.h ASoC: SOF: Generic probe compress operations 2020-02-18 21:52:07 +00:00
pcm.c ASoC: SOF: fix uninitialised "work" with VirtIO 2020-03-26 18:31:14 +00:00
pm.c ASoC: SOF: Move DSP power state transitions to platform-specific ops 2020-02-11 11:48:05 +00:00
probe.c ASoC: SOF: Fix probe point getter 2020-03-10 13:50:59 +00:00
probe.h ASoC: SOF: Implement Probe IPC API 2020-02-18 21:52:06 +00:00
sof-acpi-dev.c ASoC: SOF: move arch_ops under ops 2019-12-18 20:02:02 +00:00
sof-audio.c ASoC: sof: sof-audio: use for_each_pcm_streams() macro 2020-02-18 23:37:12 +00:00
sof-audio.h ASoC: SOF: Update correct LED status at the first time usage of update_mute_led() 2020-05-01 12:27:17 +01:00
sof-of-dev.c ASoC: SOF: Add i.MX8QM device descriptor 2020-02-11 11:26:40 +00:00
sof-pci-dev.c ASoC: SOF: Intel: add PCI ID for JasperLake 2020-02-02 12:07:18 +00:00
sof-priv.h ASoC: SOF: Intel: remove unnecessary waitq before loading firmware 2020-03-13 15:13:25 +00:00
topology.c ASoC: SOF: Update correct LED status at the first time usage of update_mute_led() 2020-05-01 12:27:17 +01:00
trace.c ASoC: SOF: trace: fix unconditional free in trace release 2020-01-27 17:52:09 +00:00
utils.c ASoC: SOF: core: modify the signature for snd_sof_create_page_table 2019-12-09 18:38:01 +00:00