From patchwork Tue Jul 30 02:06:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13746269 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CBF82C3DA4A for ; Tue, 30 Jul 2024 02:08:41 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id E9EC3EC7; Tue, 30 Jul 2024 04:08:29 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz E9EC3EC7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1722305320; bh=mYuTvqtStt4B4q9ahq5WB/z6GrhgByodBdB1BgAGqs4=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=i8/cP52sTNH9N0ceh2JbNiHJAD5lXkdgArvpgCes4c4SA4H1Lj/J9GTPN7NUVc6Am a2peQW19+KRged+u24W0QtG0s5gtf9z32pMiqnxcOnrhkmFoM9mjgedhGFK/1BEmtb b5Z0XZCaLKiDieewKC2kER3zTqgYlER3XKc+CBMc= Received: by alsa1.perex.cz (Postfix, from userid 50401) id E6E37F806EC; Tue, 30 Jul 2024 04:06:21 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 67BC8F806E8; Tue, 30 Jul 2024 04:06:21 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A1854F80606; Tue, 30 Jul 2024 04:06:18 +0200 (CEST) Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazlp170100001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c406::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id E3512F805E9 for ; Tue, 30 Jul 2024 04:06:14 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz E3512F805E9 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=BWOO3Ol/ ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=aIXgQ0HXcZDax3szUfcMgZHXq/LON1ALv50E7qQSaEEuF13G3nwyzHPCu8fgX+QrEx2aJgF2U6quRbA1OsCKOxK2YbyYXNBApEKTf+UAkVmLblirQeO0Ks8PdyQAO1SrHi9M1tCLhAXz6X8We79I2wcqgIPxKEMvXwxK84ph9kI9yJktK8zYdvot46o71zeantPDlrQa5EWeu3aw9q5cq+CHB0VA3eGKIwfdKtN07/KaZqNqj+E+2xgdc4Tg+hisXoedtkZeSoHKYEUB2W74t5yfb28vWPfwSEXRdjY+HCCS97lly7tmWAXsgM7kNuQvGVvjLU820zD5V5fzoxGCEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=GkKt+cOgw4RBFWf0ynqXrMiNv/H3mOk5GGEgecNi1Ik=; b=e1UcjjgBG2dpm2zcmKg05P2/sqQwFV8+SRmwMULglSo2qb9a/QPZneBSjQEHi4kpAev2/ivtsOhZpMU2l3tP0HBLaol8BB998Pg2HH/72gB/IoMBlKLfrGUccmPSFu7cIEB2BQzh7Wi2XxfAUkDoLlMzi972lhori6ZZ5GCkCtgYUnY7Q3klmGocU7q089L/gi2BwtwZ5DBqZ2SsOmH1Tnt0NQ7cEhvb6m/DwIHk2V4rDekOYrHBuEhFo4vz32Awy2i0HtfgHkl7gp7zDSTEmXROJ48qV9cwmG6N/foSPMJbxFeiawg7DOEb/73UOq3TvOPFWs08W6BXj4eEHI3kUg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GkKt+cOgw4RBFWf0ynqXrMiNv/H3mOk5GGEgecNi1Ik=; b=BWOO3Ol/JEh8xw9lTekJoOuC5/eu5k9f2GoInRoV0FW4/7slee+Jkg5msBs6elJk8PNYMFcgSn3uNI0hzxwrRGE+RA5J62furK+IW+cvUBeijMFciJeScY8AypkMAthTOA+4XdMWds5pA3+q1gvJA6Raaq5ioSYZf8sdEExWFig= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by TYCPR01MB6621.jpnprd01.prod.outlook.com (2603:1096:400:ad::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.28; Tue, 30 Jul 2024 02:06:11 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%5]) with mapi id 15.20.7807.026; Tue, 30 Jul 2024 02:06:10 +0000 Message-ID: <87h6c7k50t.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 11/12] ASoC: soc-pcm: use snd_pcm_direction_name() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown , Takashi Iwai Cc: Linux-ALSA In-Reply-To: <87wml3k539.wl-kuninori.morimoto.gx@renesas.com> References: <87wml3k539.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 30 Jul 2024 02:06:10 +0000 X-ClientProxiedBy: TYCP286CA0200.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:385::6) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB6621:EE_ X-MS-Office365-Filtering-Correlation-Id: 92c9e006-cae9-44af-5215-08dcb03c2eb9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: 4XgjXfyyVl77oT9ujKsYHPn5x9e9qR+FKIZepT4veUsSIwbRPP5jVUPVVVvU7IG8orByLxpOjgT4kAJLieYCKBQs7sx4rzbAnhjA7SOYCBrcnN6XFv4BpyGL0M6TVvf3FyFbCirSqvsndL/zG7Rkr5Bdm+74qxQFjfBSzpydrcgeSDNupyW2JTrs1+ZBpOQJCL0IxgST7jPMvtkdequKmU1IMikRS39i8GT1eAK3E7Wu9qtFr4QKUbutQkk0SFV7X3WIWtKjRxU1+Un2oaPaXbRJqB39lug8k+jJO4so6k7b6aDpVKIyH6SgOgTDHKUqpg4S9oA/D3vfba2n1sFEPvHIHyuvzb8GNvbTB18qaY1J3E2u+m/UhbPWdWTHIyfhsiLplNLTJLv6GbWnulIsGnlUgqyQWTjTANcQ8fRknFT31FDr+wzkRyWIXXO6n7zvJrLeH7gcbhdB9LCk7g4ASxRQDOP2Ib04PQ4Oz65G//Kfrx4aGcLBqnp7iDDNAu4lkUu92k07zblsrTp3j1KlkoN2nFXlG3+D85hBJxgnGxJ6cygirMn7LtUznWwUfBQPhP+6EY1qRT5R6cNq5p4xNvtKXhhbCZpF4WyJRrUgjR10LCQDv24+MjU1Ib6j24U7kJ+VyL94dGZ9EX6VzoxGfQtkV1hEzhxhBVZsXQEhWRd62FuJh5Jjii3AvTLSLJcw2II/MhHi3cRyUTFItei6pQ7e3qFRB/Vbo/JYunGlpsz96CDe3NZti199CxLnU3Faeaek6GmwnFL3fpcllDEXY3pAdalbOAciybCOTaMfNl901Dw1VTL0m0y/8HCOnpUW5lBl2Nib9KqsbJUVTvgjnHQkEI42SPJRNhQTkhqKMLcCwknFvdDI8wHCQXjbyaNwlcMVPVlsA5Uur4x+zJsetkFyYapNokWBuvgA/HtqfvQMCzeO+jCXNVXDjErEDadh2pZKsVidixVLqZgfiJzTW85j047kXpKuoPnkkAiIPV30EAf+P3T12GiMSLtOw13PPR2Mq2On2NavG1lyRm5FvRFkgjluG6Hdz2eTh04ens+kr9/uvGOiHSwtdUeGnf9pMLNieCNgvGpIJZ1Zuhrn/SzyrMSup68FjDHEj7pht2g0XU1e6bZSOSWoFpT26WQEdJ0B/9+2eIvCQDVy7KBEklPlOeYLDXZRPMlQfRCF6dbI85WNsLWvsAblBgoyfRTD8js8KqLnT7VWlhhvCDeXZCT75RmzBCM0oiS8DeyCyNfmdH9PCcgSDCxckWsI0FfUROqLvdeNoTGTva20Nwp50qD9vStqnWLNiVAlWk/EjhSQrUHiKUAlDHJf2CsyUsiw3jv561DHD+xLAYljvm6c5dnpt5b+2qx8If/6bmt5Iarl0C6h6OLEMKKBN9/giPt+g7Ouj8P5NDBh9p8RGrmovQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYCPR01MB10914.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ykQIPCNxK001Py9y2Th7FecmbTh2wVxoTOvzjsVTvXK6cFL2bGEQDxQ4hbju8dqHJouVuHEixIplJjKJDl2jSI1LNt3ogLVoo4kYBgki1Oy8DF0ClLXiHYunZtbjhMPn3PrO3HgH8zkaz9FerMuSN9zNq6DLV9TppKiI2/XlGIDTRC6RKUR96EkfhuB/xiox0sJhg+dG0xxrIrj1TuYDTbfI624H+C2lWP1bkvQk2AUF/EaeY5/n4+fIf1zDdWCGPT/73+/qKeM3Dx1kJbcHpeUwkaWUzjCV6+JV8kK/xCWf8cquSS2a894sqTM4ifXyA0OR3bgDx7Ne+3EvcubTT4wVquoWBTfWlhHd1U59YhFyTrpcqkIE9+IwqurPaDUcfISaVSWXj72dhm6QashTZ/FCUBonA19E2Qqm/eaF+RYJVrd8O020gbin2gDN4anBsosEMjbZk9H9chjJgQVHHNXi0f3nJj+lqfTc3PCFSz3izQmM6y9F/84XDPxFlOLa253Njz0CeZgsJ3GgcK2HXfGi0Zd8q+LrCSAblwD2FuCnmIh4gVMifnezb7xXTStxh5nzTq7KXl3KDHT1P6tblHxWZqYGg8sjkTrl1zC2nyZuyly0SG6o4yVLpjsrue4G9qHnk2lRpv20sHvS8pNFeOxtOEfPGNsHCy6HAIj9jZKdUWQBKJlDmbRyhZ7TivlrxKajRA5G1bi5LHY4zGum2nw9t4NLXxLDAxdHJyt94Bd8/9B8Qke6lD1KpB7lWUMXHyY+g4jrYzxGOk0OnI0w0ihBTcnX4okEVFfFk7onxPV6cl1/Z+yoJsiUMGW7HL+UDGaualc8KS66LcZnjypbIl8dZXYHfiKQV/1utUFSiLot02duM9k7zeY0DxO+tqKJW2U+AWAT+tBJQYcv7fqCAua9an9K9S/ZVTe83I0S+kBP1S06Xak588njsrGDevGyLQ/4bMoblKeYFLAft1D/nIbCZhYwDrO8lyUCm9rfK4QMNUeEofwsuZWYHsvDG3FzhydFPNy06uXV3Rh1X+jI0auQdMJoPfK9EoHVGCZJ+NfTAAJ1IXm2uukk5f/tmjKJvEGRLfeZQcnLMGHNUn+Lq4y3pgTQwIKC354KDfN8+FDSRwgXHiC8b0y6tHoSN115LYaBTvIwbdIL5oCtO2mBRf2nfKt0Q9JINmLoy6gPrGDZtNYci675RXvFjjdjoDaB1aCBvV2VvAW13XpHLdw9gxkZprsJD7Lr9XZl96PXbwtcZvvBrABiuRJiNydQgA/RwV4yP0mU+oobDHIkDZQDwoyc1RFCzAQKESAjY0l5m95u5bU2Q85Fr64KjQ3fzG3FIfgKKq8HNK8obUA9lV1hUZ47IIOpC6kEroFULV0hw6oeH+GLXn6DN5zzFXk9YU1T+H8MDKUe7TXIMjY0fJsK/yAqlBs7sL5LXI+ZeY6dmvz4prRka7B55IVD6blZOfALmqiEi7kqTvs3PE3rK5HYpUpzLMw6GTfCfSbU3Jn7FGhTKg4OCMXBpeJ2c3DVYHWanOY53esUeP2+cwyy8YPhQ7VDzb3r1ABlJ6lK2U4X2tZ5AhM0FF/sCqybnpPYkWOeEcBNN67Q0l11tzOnh+YS8bztP7oYRsEUZ2zyCfpUblk= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 92c9e006-cae9-44af-5215-08dcb03c2eb9 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2024 02:06:10.9061 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Y0LSENsPy5ATfscnlf+cTHL/7iKDExNEc4RCduEkMd38Lwq/x0QVrychMDa5eiS+ZK7FcqhoqbJ15CIG/I8fq74vqInvYRRh58ZklVefz1XwyYoHakIwNSHkKRZf7b2b X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB6621 Message-ID-Hash: K4G67FFHPVHBZM5JFLX3G25RWZLJU5ET X-Message-ID-Hash: K4G67FFHPVHBZM5JFLX3G25RWZLJU5ET X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: We already have snd_pcm_direction_name(). Let's use it. Signed-off-by: Kuninori Morimoto --- sound/soc/soc-pcm.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index bad823718ae47..5520944ac9ddc 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -222,7 +222,7 @@ static void dpcm_create_debugfs_state(struct snd_soc_dpcm *dpcm, int stream) char *name; name = kasprintf(GFP_KERNEL, "%s:%s", dpcm->be->dai_link->name, - stream ? "capture" : "playback"); + snd_pcm_direction_name(stream)); if (name) { dpcm->debugfs_state = debugfs_create_dir( name, dpcm->fe->debugfs_dpcm_root); @@ -1278,7 +1278,7 @@ static int dpcm_be_connect(struct snd_soc_pcm_runtime *fe, snd_soc_dpcm_stream_unlock_irq(fe, stream); dev_dbg(fe->dev, "connected new DPCM %s path %s %s %s\n", - stream ? "capture" : "playback", fe->dai_link->name, + snd_pcm_direction_name(stream), fe->dai_link->name, stream ? "<-" : "->", be->dai_link->name); dpcm_create_debugfs_state(dpcm, stream); @@ -1306,7 +1306,7 @@ static void dpcm_be_reparent(struct snd_soc_pcm_runtime *fe, continue; dev_dbg(fe->dev, "reparent %s path %s %s %s\n", - stream ? "capture" : "playback", + snd_pcm_direction_name(stream), dpcm->fe->dai_link->name, stream ? "<-" : "->", dpcm->be->dai_link->name); @@ -1327,14 +1327,14 @@ void dpcm_be_disconnect(struct snd_soc_pcm_runtime *fe, int stream) snd_soc_dpcm_stream_lock_irq(fe, stream); for_each_dpcm_be_safe(fe, stream, dpcm, d) { dev_dbg(fe->dev, "ASoC: BE %s disconnect check for %s\n", - stream ? "capture" : "playback", + snd_pcm_direction_name(stream), dpcm->be->dai_link->name); if (dpcm->state != SND_SOC_DPCM_LINK_STATE_FREE) continue; dev_dbg(fe->dev, "freed DSP %s path %s %s %s\n", - stream ? "capture" : "playback", fe->dai_link->name, + snd_pcm_direction_name(stream), fe->dai_link->name, stream ? "<-" : "->", dpcm->be->dai_link->name); /* BEs still alive need new FE */ @@ -1441,10 +1441,10 @@ int dpcm_path_get(struct snd_soc_pcm_runtime *fe, if (paths > 0) dev_dbg(fe->dev, "ASoC: found %d audio %s paths\n", paths, - stream ? "capture" : "playback"); + snd_pcm_direction_name(stream)); else if (paths == 0) dev_dbg(fe->dev, "ASoC: %s no valid %s path\n", fe->dai_link->name, - stream ? "capture" : "playback"); + snd_pcm_direction_name(stream)); return paths; } @@ -1487,7 +1487,7 @@ static int dpcm_prune_paths(struct snd_soc_pcm_runtime *fe, int stream, continue; dev_dbg(fe->dev, "ASoC: pruning %s BE %s for %s\n", - stream ? "capture" : "playback", + snd_pcm_direction_name(stream), dpcm->be->dai_link->name, fe->dai_link->name); dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; dpcm_set_be_update_state(dpcm->be, stream, SND_SOC_DPCM_UPDATE_BE); @@ -1605,7 +1605,7 @@ void dpcm_be_dai_stop(struct snd_soc_pcm_runtime *fe, int stream, if (be->dpcm[stream].users == 0) { dev_err(be->dev, "ASoC: no users %s at close - state %d\n", - stream ? "capture" : "playback", + snd_pcm_direction_name(stream), be->dpcm[stream].state); continue; } @@ -1645,7 +1645,7 @@ int dpcm_be_dai_startup(struct snd_soc_pcm_runtime *fe, int stream) if (!be_substream) { dev_err(be->dev, "ASoC: no backend %s stream\n", - stream ? "capture" : "playback"); + snd_pcm_direction_name(stream)); continue; } @@ -1656,7 +1656,7 @@ int dpcm_be_dai_startup(struct snd_soc_pcm_runtime *fe, int stream) /* first time the dpcm is open ? */ if (be->dpcm[stream].users == DPCM_MAX_BE_USERS) { dev_err(be->dev, "ASoC: too many users %s at open %d\n", - stream ? "capture" : "playback", + snd_pcm_direction_name(stream), be->dpcm[stream].state); continue; } @@ -1669,7 +1669,7 @@ int dpcm_be_dai_startup(struct snd_soc_pcm_runtime *fe, int stream) continue; dev_dbg(be->dev, "ASoC: open %s BE %s\n", - stream ? "capture" : "playback", be->dai_link->name); + snd_pcm_direction_name(stream), be->dai_link->name); be_substream->runtime = fe_substream->runtime; err = __soc_pcm_open(be, be_substream); @@ -1677,7 +1677,7 @@ int dpcm_be_dai_startup(struct snd_soc_pcm_runtime *fe, int stream) be->dpcm[stream].users--; if (be->dpcm[stream].users < 0) dev_err(be->dev, "ASoC: no users %s at unwind %d\n", - stream ? "capture" : "playback", + snd_pcm_direction_name(stream), be->dpcm[stream].state); be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; @@ -2531,7 +2531,7 @@ static int dpcm_run_update_shutdown(struct snd_soc_pcm_runtime *fe, int stream) int err; dev_dbg(fe->dev, "ASoC: runtime %s close on FE %s\n", - stream ? "capture" : "playback", fe->dai_link->name); + snd_pcm_direction_name(stream), fe->dai_link->name); if (trigger == SND_SOC_DPCM_TRIGGER_BESPOKE) { /* call bespoke trigger - FE takes care of all BE triggers */ @@ -2565,7 +2565,7 @@ static int dpcm_run_update_startup(struct snd_soc_pcm_runtime *fe, int stream) int ret = 0; dev_dbg(fe->dev, "ASoC: runtime %s open on FE %s\n", - stream ? "capture" : "playback", fe->dai_link->name); + snd_pcm_direction_name(stream), fe->dai_link->name); /* Only start the BE if the FE is ready */ if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_HW_FREE ||