ASoC: core: Fix pcm code debugfs error
authorHans de Goede <hdegoede@redhat.com>
Sat, 5 Oct 2019 21:22:02 +0000 (23:22 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 7 Oct 2019 12:51:09 +0000 (13:51 +0100)
commit0632fa042541dbb3b8b960a8cd519eb9b6b584c0
tree98c5a8441e986a39a0a576f239e460c05d1bf734
parentb1e620e7d32f5aad5353cc3cfc13ed99fea65d3a
ASoC: core: Fix pcm code debugfs error

We can have 2 dcpm-s with the same backend and frontend name
(capture + playback pair), this causes the following debugfs error
on Intel Bay Trail systems:

[  298.969049] debugfs: Directory 'SSP2-Codec' with parent 'Baytrail Audio Port' already present!

This commit adds a ":playback" or ":capture" postfix to the debugfs dir
name fixing this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20191005212202.5206-1-hdegoede@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c