ASoC: SOF: fix a typo in put operations for kcontrol
Subsystems (3)
PATCH 1/1 ASoC: SOF: fix a typo in put operations for kcontrol
From: Rander Wang <[email protected]>
SOF_CTRL_TYPE_VALUE_CHAN_SET should be used for put operations for consistency. The current use of _GET is obviously incorrect but _GET and _SET result in the same action so there is no functional change introduced by this patch.
Reviewed-by Ranjani Sridharan <[email protected]>
Signed-off-by Rander Wang <[email protected]>
Signed-off-by Pierre-Louis Bossart <[email protected]>
--- sound/soc/sof/control.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/sof/control.c +3 -3
@@ -108,7 +108,7 @@ int snd_sof_volume_put(struct snd_kcontrol *kcontrol,if (pm_runtime_active (scomp->dev))snd_sof_ipc_set_get_comp_data (scontrol,SOF_IPC_COMP_SET_VALUE , -SOF_CTRL_TYPE_VALUE_CHAN_GET , +SOF_CTRL_TYPE_VALUE_CHAN_SET ,SOF_CTRL_CMD_VOLUME , true);return change;
@@ -179,7 +179,7 @@ int snd_sof_switch_put(struct snd_kcontrol *kcontrol,if (pm_runtime_active (scomp->dev))snd_sof_ipc_set_get_comp_data (scontrol,SOF_IPC_COMP_SET_VALUE , -SOF_CTRL_TYPE_VALUE_CHAN_GET , +SOF_CTRL_TYPE_VALUE_CHAN_SET ,SOF_CTRL_CMD_SWITCH , true);
@@ -226,7 +226,7 @@ int snd_sof_enum_put(struct snd_kcontrol *kcontrol,if (pm_runtime_active (scomp->dev))snd_sof_ipc_set_get_comp_data (scontrol,SOF_IPC_COMP_SET_VALUE , -SOF_CTRL_TYPE_VALUE_CHAN_GET , +SOF_CTRL_TYPE_VALUE_CHAN_SET ,SOF_CTRL_CMD_ENUM , true);
Signature · 1 line
2.25.1
Quoted 10 lines · Pierre-Louis Bossart
From: Rander Wang <[email protected]>
SOF_CTRL_TYPE_VALUE_CHAN_SETshould be used for put operations for consistency. The current use of_GETis obviously incorrect but_GETand_SETresult in the same action so there is no functional change introduced by this patch.Reviewed-by Ranjani Sridharan <[email protected]>Signed-off-by Rander Wang <[email protected]>Signed-off-by Pierre-Louis Bossart <[email protected]>
Please discard this patch, it was already sent by Peter on September 2. The effect of the long week-end I guess...
Sorry for the noise.
Quoted 36 lines
--- sound/soc/sof/control.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)sound/soc/sof/control.c +3
-3@@ -108,7 +108,7 @@ int snd_sof_volume_put(struct snd_kcontrol *kcontrol,if (pm_runtime_active (scomp->dev))snd_sof_ipc_set_get_comp_data (scontrol,SOF_IPC_COMP_SET_VALUE , -SOF_CTRL_TYPE_VALUE_CHAN_GET , +SOF_CTRL_TYPE_VALUE_CHAN_SET ,SOF_CTRL_CMD_VOLUME , true);return change;@@ -179,7 +179,7 @@ int snd_sof_switch_put(struct snd_kcontrol *kcontrol,if (pm_runtime_active (scomp->dev))snd_sof_ipc_set_get_comp_data (scontrol,SOF_IPC_COMP_SET_VALUE , -SOF_CTRL_TYPE_VALUE_CHAN_GET , +SOF_CTRL_TYPE_VALUE_CHAN_SET ,SOF_CTRL_CMD_SWITCH , true);@@ -226,7 +226,7 @@ int snd_sof_enum_put(struct snd_kcontrol *kcontrol,if (pm_runtime_active (scomp->dev))snd_sof_ipc_set_get_comp_data (scontrol,SOF_IPC_COMP_SET_VALUE , -SOF_CTRL_TYPE_VALUE_CHAN_GET , +SOF_CTRL_TYPE_VALUE_CHAN_SET ,SOF_CTRL_CMD_ENUM , true);