Skip to content

Commit 3906e75

Browse files
committed
sound/soc: remove debugfs logic from being stuck
Bug: 122920647 Test: build pass/boot to home Change-Id: I5956b77230c4014ff85237f2592291bbc5639d20 Signed-off-by: HW Lee <[email protected]>
1 parent 69707e3 commit 3906e75

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

sound/soc/soc-pcm.c

-14
Original file line numberDiff line numberDiff line change
@@ -1269,16 +1269,6 @@ static int dpcm_be_connect(struct snd_soc_pcm_runtime *fe,
12691269
stream ? "capture" : "playback", fe->dai_link->name,
12701270
stream ? "<-" : "->", be->dai_link->name);
12711271

1272-
#ifdef CONFIG_DEBUG_FS
1273-
if (fe->debugfs_dpcm_root) {
1274-
pr_debug("%s: debugfs create on '%s'\n",
1275-
__func__, be->dai_link->name);
1276-
dpcm->debugfs_state = debugfs_create_u32(be->dai_link->name, 0644,
1277-
fe->debugfs_dpcm_root, &dpcm->state);
1278-
} else {
1279-
pr_debug("%s: debugfs nop\n", __func__);
1280-
}
1281-
#endif
12821272
return 1;
12831273
}
12841274

@@ -1330,10 +1320,6 @@ void dpcm_be_disconnect(struct snd_soc_pcm_runtime *fe, int stream)
13301320
/* BEs still alive need new FE */
13311321
dpcm_be_reparent(fe, dpcm->be, stream);
13321322

1333-
#ifdef CONFIG_DEBUG_FS
1334-
if (fe->debugfs_dpcm_root)
1335-
debugfs_remove(dpcm->debugfs_state);
1336-
#endif
13371323
list_del(&dpcm->list_be);
13381324
list_del(&dpcm->list_fe);
13391325
kfree(dpcm);

0 commit comments

Comments
 (0)