]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: intel: skl: Fix pin debug prints
authorTakashi Iwai <tiwai@suse.de>
Tue, 18 Feb 2020 11:17:35 +0000 (12:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Mar 2020 06:18:39 +0000 (07:18 +0100)
commit7320ca93be0341b3f1c271c9853b3662bdf93642
treedc65298846821f7c868384f3962024112a93feb7
parent18ffbaa038a693f81c4e385c74fc65be2a1ca022
ASoC: intel: skl: Fix pin debug prints

commit 64bbacc5f08c01954890981c63de744df1f29a30 upstream.

skl_print_pins() loops over all given pins but it overwrites the text
at the very same position while increasing the returned length.
Fix this to show the all pin contents properly.

Fixes: d14700a01f91 ("ASoC: Intel: Skylake: Debugfs facility to dump module config")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20200218111737.14193-2-tiwai@suse.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/intel/skylake/skl-debug.c