ASoC: cx2072x: Fix doubly definitions of Playback and Capture streams
authorTakashi Iwai <tiwai@suse.de>
Tue, 8 Dec 2020 13:51:54 +0000 (14:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:54:09 +0000 (11:54 +0100)
commit74a4802ff431759e41a514880942109140199d32
tree78dc5a2787bdebd8d52f575726082a3b96d37c3d
parent06da7fff770170eb140a47fbf11b87189bf360d2
ASoC: cx2072x: Fix doubly definitions of Playback and Capture streams

commit 0d024a8bec084205fdd9fa17479ba91f45f85db3 upstream.

The cx2072x codec driver defines multiple DAIs with the same stream
name "Playback" and "Capture".  Although the current code works more
or less as is as the secondary streams are never used, it still leads
the error message like:
 debugfs: File 'Playback' in directory 'dapm' already present!
 debugfs: File 'Capture' in directory 'dapm' already present!

Fix it by renaming the secondary streams to unique names.

Fixes: a497a4363706 ("ASoC: Add support for Conexant CX2072X CODEC")
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20201208135154.9188-1-tiwai@suse.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/cx2072x.c