Skip to content

Commit 6597882

Browse files
Haoyu Lugregkh
authored andcommitted
staging: greybus: audio: fix error message for BTN_3 button
In gbaudio_init_jack(), when setting SND_JACK_BTN_3 key, the error message incorrectly says "Failed to set BTN_0". This should be "Failed to set BTN_3" to match the button being configured. Signed-off-by: Haoyu Lu <hechushiguitu666@gmail.com> Reviewed-by: Johan Hovold <johan@kernel.org> Link: https://patch.msgid.link/20260330083425.266-1-hechushiguitu666@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent a5a1b46 commit 6597882

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/staging/greybus/audio_codec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ static int gbaudio_init_jack(struct gbaudio_module_info *module,
781781
ret = snd_jack_set_key(module->button.jack.jack, SND_JACK_BTN_3,
782782
KEY_VOLUMEDOWN);
783783
if (ret) {
784-
dev_err(module->dev, "Failed to set BTN_0\n");
784+
dev_err(module->dev, "Failed to set BTN_3\n");
785785
goto free_jacks;
786786
}
787787
}

0 commit comments

Comments
 (0)