From patchwork Thu Oct 3 15:53:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 175088 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp511897ill; Thu, 3 Oct 2019 08:58:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwY9rdhVsqPoMFmTXI8mWdULuxrIX3gAZJ1TE6YHITZfUXyHCGtx7mERhWFt/v/YHmMjJ6i X-Received: by 2002:a05:6402:709:: with SMTP id w9mr10241502edx.85.1570118286800; Thu, 03 Oct 2019 08:58:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570118286; cv=none; d=google.com; s=arc-20160816; b=UPQw0fKI2AUOSxBJBfeYgP4TIDiUVLSvqwUDLy5aEayZSF/RUohS6tNl8Ch2Sd4hgX 10YKpAXxYIWSSbXARaY4teMh0UH4m+ohEadGdIr3u86zGp5UseA2Tkt+rKdjU/tI13iX oLS43yCaNMHjZo3YqlE+p0kAdGlXWQsE7rUft81h9Z0t3xwVd08/Ndplog1vpozf0/Q3 X4jA6KFFcTcZylz+Yudworr7AKt15FZRKT8NvDZ7/g1CIhomDCndGy4Zbu8jEqQJ7DP6 lI4hCp63r4Rkv+uqemeLZ2Pcw6o1v+JD1IMAkzknbpK/qeXhUu9pOFV3eunGVfjcxEnj 9sGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3Oy1rxc3ijmmKtCQrrN1LBHIkG8mGclPIFJKKisFt0g=; b=tI69Ot+gDmZiEHAknM0YNSkTh2cPha2slgpWXj6eNNXjyf4Jqdb/inHerNcV7xq/a8 RM99VjWYS1EunOFs62IwvinAkIsYCIMM7NfSfQyekovfUkXyrrVDkt2FweE3cauUjq9h sRecnCIwzXE+vEwAM7DbsCc+vkF7pk4MU/ubOmUCMrHdBKdO+qzPxCw4ri7epSimAWWa ok6/fYhJCOLkO0sDmEGJj7Vr5oU7r3joJbpkXklP5YB/nasHMP78OLYgcqQUal7vg9p5 5Z64hK7SsKhS7MRVy19aLZ1oNJCyhMe8I3xkgBxjqWQqBfaexOgZX0ZKKnI9uYADmQwn tvqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jQDZO34p; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6si1438206ejj.113.2019.10.03.08.58.06; Thu, 03 Oct 2019 08:58:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jQDZO34p; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731058AbfJCP6C (ORCPT + 14 others); Thu, 3 Oct 2019 11:58:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:40658 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728600AbfJCP6C (ORCPT ); Thu, 3 Oct 2019 11:58:02 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 40CB721A4C; Thu, 3 Oct 2019 15:58:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570118280; bh=8EYDPjW/ny08MiufbNXd/ZBmvdgjqlh9PNGhulbyLos=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jQDZO34p6NE2+LY5cuKEu0y7kiHkLOrVT9MNefi68c4StqZ3XtUKPkLqYwev0h8Fj oW6l+HsRfNIDuhvybcoepr6BpfgAoCv+ykRJ+FrijGCgZmAAKyQ0Lu6F9SeFHW1jTA rdd7DYZXIh8HgKExO9X3uM0hnWuSSsKEq1nptSiE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kbuild test robot , Arnd Bergmann , Sasha Levin Subject: [PATCH 4.4 55/99] net: lpc-enet: fix printk format strings Date: Thu, 3 Oct 2019 17:53:18 +0200 Message-Id: <20191003154323.123213106@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191003154252.297991283@linuxfoundation.org> References: <20191003154252.297991283@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Arnd Bergmann [ Upstream commit de6f97b2bace0e2eb6c3a86e124d1e652a587b56 ] compile-testing this driver on other architectures showed multiple warnings: drivers/net/ethernet/nxp/lpc_eth.c: In function 'lpc_eth_drv_probe': drivers/net/ethernet/nxp/lpc_eth.c:1337:19: warning: format '%d' expects argument of type 'int', but argument 4 has type 'resource_size_t {aka long long unsigned int}' [-Wformat=] drivers/net/ethernet/nxp/lpc_eth.c:1342:19: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'dma_addr_t {aka long long unsigned int}' [-Wformat=] Use format strings that work on all architectures. Link: https://lore.kernel.org/r/20190809144043.476786-10-arnd@arndb.de Reported-by: kbuild test robot Signed-off-by: Arnd Bergmann Signed-off-by: Sasha Levin --- drivers/net/ethernet/nxp/lpc_eth.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) -- 2.20.1 diff --git a/drivers/net/ethernet/nxp/lpc_eth.c b/drivers/net/ethernet/nxp/lpc_eth.c index 057665180f13f..ba14bad81a21f 100644 --- a/drivers/net/ethernet/nxp/lpc_eth.c +++ b/drivers/net/ethernet/nxp/lpc_eth.c @@ -1417,13 +1417,14 @@ static int lpc_eth_drv_probe(struct platform_device *pdev) pldat->dma_buff_base_p = dma_handle; netdev_dbg(ndev, "IO address space :%pR\n", res); - netdev_dbg(ndev, "IO address size :%d\n", resource_size(res)); + netdev_dbg(ndev, "IO address size :%zd\n", + (size_t)resource_size(res)); netdev_dbg(ndev, "IO address (mapped) :0x%p\n", pldat->net_base); netdev_dbg(ndev, "IRQ number :%d\n", ndev->irq); - netdev_dbg(ndev, "DMA buffer size :%d\n", pldat->dma_buff_size); - netdev_dbg(ndev, "DMA buffer P address :0x%08x\n", - pldat->dma_buff_base_p); + netdev_dbg(ndev, "DMA buffer size :%zd\n", pldat->dma_buff_size); + netdev_dbg(ndev, "DMA buffer P address :%pad\n", + &pldat->dma_buff_base_p); netdev_dbg(ndev, "DMA buffer V address :0x%p\n", pldat->dma_buff_base_v); @@ -1470,8 +1471,8 @@ static int lpc_eth_drv_probe(struct platform_device *pdev) if (ret) goto err_out_unregister_netdev; - netdev_info(ndev, "LPC mac at 0x%08x irq %d\n", - res->start, ndev->irq); + netdev_info(ndev, "LPC mac at 0x%08lx irq %d\n", + (unsigned long)res->start, ndev->irq); phydev = pldat->phy_dev; From patchwork Thu Oct 3 15:53:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 175089 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp512545ill; Thu, 3 Oct 2019 08:58:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqwFw1qvnB7spfyJBfcVLjdGJ8qMMQoFhVn8qSH5qEyhR/mZ7CjwoXC9Js05asC2SO0XREjv X-Received: by 2002:a50:91b1:: with SMTP id g46mr10071005eda.255.1570118320962; Thu, 03 Oct 2019 08:58:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570118320; cv=none; d=google.com; s=arc-20160816; b=msiroK2jXba7UUsppPlmihvBcFi1b/8e/wKyxJinubWLCZEZuJekBwfs4h3QnObH2y XmP1qGQmzhPLqz8ss8j/8OGNq/mlruX817qWfExFbL7p0dzQzgMLK1Vkf/uj8VqiN1Eb IsxCoy4GKd3X9A1GLlkA49TDGuu2uJwPIoL7IWi1WFShNlZ36Wne7qRGNaSxCvqXlUJF HEsP0/ppufK4zn82na7niGRXkE7JGfHLP72IDyKd+8dDSF6vNAKRenxXfBKBG70U4ZLo 9OOyCE6BqqYu18vMfwS/8Vy58Hj0zfpqBXQR8NyrwTa+Fs82XoqQu18FMTEPgolFqlGd J3fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=MQZqimd3huadoosc/ilmddr6Y0irmlxJmL0h3zOwmFA=; b=NNtkxndrCAl7f9sc1XKLwustL8IfJpbZo6IfD+IfyVsggg3+4JyNL9b5gNWgXR3unU dCQpsAlSejSu965k4LS7R2zxbrU5ig26UTGF3r4JNuE/7LBVqS1lQTB8VB87lj+akbiZ HtQsV7bF0fRm6CXghr0Ymmg7T0jhW9Ynscg/hpT09EZ2c8V2aSJLsxO5REyDsY02cdnp ELL3hkzGCcSV0zyvEJSFnAWPRZCZ7L6/BC6jiOYKxzKF7DMLxzEE36RPIfrWjFnPaAV9 UAAtp3592s++eUsJowucN7IT0Pcj5z9YMnqjUtjjXmqP51TfIQNjAM3oebYsRMjX0AXi Vq3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LkhO4FLp; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o14si257937ejc.433.2019.10.03.08.58.40; Thu, 03 Oct 2019 08:58:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LkhO4FLp; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731228AbfJCP6i (ORCPT + 14 others); Thu, 3 Oct 2019 11:58:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:41424 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731257AbfJCP6h (ORCPT ); Thu, 3 Oct 2019 11:58:37 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5957921848; Thu, 3 Oct 2019 15:58:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570118316; bh=n5gj2Hdae2Hdoc1sUt7oWb1wv6BAKbPyC4gdc9lKEK0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LkhO4FLpxieoJdjSjHtNKawcQR4Lq6Z3M7hyibrrLsYkU2zN8F2X8azxoPDDcEIyY kCjL6Y7+VmJazF46QV/uNSdUMnHARhSeCLWUXgGfFIWKzNm6LvgqGM4vizfk630QjV lHSN9xh3Iq2iSulDifbQDFj4ZyesL98H0WW2p2ZA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Peter Ujfalusi , Vinod Koul , Sasha Levin Subject: [PATCH 4.4 67/99] dmaengine: ti: edma: Do not reset reserved paRAM slots Date: Thu, 3 Oct 2019 17:53:30 +0200 Message-Id: <20191003154329.805952678@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191003154252.297991283@linuxfoundation.org> References: <20191003154252.297991283@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Peter Ujfalusi [ Upstream commit c5dbe60664b3660f5ac5854e21273ea2e7ff698f ] Skip resetting paRAM slots marked as reserved as they might be used by other cores. Signed-off-by: Peter Ujfalusi Link: https://lore.kernel.org/r/20190823125618.8133-2-peter.ujfalusi@ti.com Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/dma/edma.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) -- 2.20.1 diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index 85674a8d04368..e508c8c5f3fde 100644 --- a/drivers/dma/edma.c +++ b/drivers/dma/edma.c @@ -2218,9 +2218,6 @@ static int edma_probe(struct platform_device *pdev) ecc->default_queue = info->default_queue; - for (i = 0; i < ecc->num_slots; i++) - edma_write_slot(ecc, i, &dummy_paramset); - if (info->rsv) { /* Set the reserved slots in inuse list */ rsv_slots = info->rsv->rsv_slots; @@ -2233,6 +2230,12 @@ static int edma_probe(struct platform_device *pdev) } } + for (i = 0; i < ecc->num_slots; i++) { + /* Reset only unused - not reserved - paRAM slots */ + if (!test_bit(i, ecc->slot_inuse)) + edma_write_slot(ecc, i, &dummy_paramset); + } + /* Clear the xbar mapped channels in unused list */ xbar_chans = info->xbar_chans; if (xbar_chans) { From patchwork Thu Oct 3 15:53:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 175090 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp512648ill; Thu, 3 Oct 2019 08:58:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqyk/kQ/XPKJbtQrf6+9LnrxS1A1SDh+qrnzCTq9W/GbeoUG3p2qkBiiVy+KHkIZRuAWDv94 X-Received: by 2002:a17:906:134b:: with SMTP id x11mr8232484ejb.272.1570118327059; Thu, 03 Oct 2019 08:58:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570118327; cv=none; d=google.com; s=arc-20160816; b=ZEPHltaCyKrXKaG2se7GlBIehrOi7w+8rvxPeipWlfcXzv4nHh0bVBzYim5dYqXUDU HN4js5un1XRPqzwIIF0xMxUHuaQHSNueUdtn62Eoduxyqt5v6g79cgpqljldCVYdm4l7 DSX63V7aEB62+aHYBBWD4CDLAoBfnnfMGT501+O/QRIB1hzJu0wt9de2Akc3KHsh1HIk xx5k66E7Yi2ekaGc39CzcaS2Qe6T5vse5Xk5k2b8UR4iRzp42XZNW/H6xU9sPWLMck4G OO96bk3IzskPYUX7HiUxF4nukpnrdyqCuKqLZtBSdZx1YAHn2JAv8kalNu/yyTUQPyNn ne1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=TrHNPkemY5sNfrWgGiuF6eXFFQB5y4Q7TXd0qEx/fjU=; b=YEDMGmXpI4X5dDen2kAGJqTLtoJHUVFgtXy443RuK1VfIkWb+FajZ2U9iiuSCjhSGw dpOcPdT0xD5+kLNxlsFGFUs/H3sWWN9MzUMVs+5eZoRO2N/B29tLm+Nb5EZgEqBMjXsa Wc7guMiu1U6wBZyrN0mt+b20zXxJ+/GjLXUq94Fzj+JvJybTQdk3fu1AA26S8tzBQGpT sQF0hugjcUGs1URvdyTgUnxTELChcDf5i+ydoW+u7StfpTdX5ciI8/ljeJIR0oPCqNf2 tN0COv1HYIqi8M0tjz0Q0oaSNk8FE10vmvIsO8F8g4q91LthrfrD2v8c+qa1klPe0M96 uNvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fchApmjo; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11si1492851ejb.48.2019.10.03.08.58.46; Thu, 03 Oct 2019 08:58:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fchApmjo; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727624AbfJCP6n (ORCPT + 14 others); Thu, 3 Oct 2019 11:58:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:41536 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731279AbfJCP6n (ORCPT ); Thu, 3 Oct 2019 11:58:43 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0893120700; Thu, 3 Oct 2019 15:58:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570118322; bh=ajS824LenRlv1kgE8cKvjNmdtuc51nUxbHZHmDxrsXo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fchApmjodAlmit9FMs4Wz3KVIFC0ZqnV48lC4MrzKEIwEt8xa2+WJTyjJc0epVsPU Ts/FPYjVEzFDcjKjLf1Med/bGJEndSqk3sznqeKxdQ5asU/GZZ8Vsw6hedGmC4elvR OqmR4rE72+mhwwQtlwFWgOKJ/myHHtndKT4cghZ8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Peter Ujfalusi , Arthur She , Mark Brown , Sasha Levin Subject: [PATCH 4.4 69/99] ASoC: dmaengine: Make the pcm->name equal to pcm->id if the name is not set Date: Thu, 3 Oct 2019 17:53:32 +0200 Message-Id: <20191003154330.805351034@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191003154252.297991283@linuxfoundation.org> References: <20191003154252.297991283@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Peter Ujfalusi [ Upstream commit 2ec42f3147e1610716f184b02e65d7f493eed925 ] Some tools use the snd_pcm_info_get_name() to try to identify PCMs or for other purposes. Currently it is left empty with the dmaengine-pcm, in this case copy the pcm->id string as pcm->name. For example IGT is using this to find the HDMI PCM for testing audio on it. Signed-off-by: Peter Ujfalusi Reported-by: Arthur She Link: https://lore.kernel.org/r/20190906055524.7393-1-peter.ujfalusi@ti.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/soc-generic-dmaengine-pcm.c | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.20.1 diff --git a/sound/soc/soc-generic-dmaengine-pcm.c b/sound/soc/soc-generic-dmaengine-pcm.c index 6fd1906af3873..fe65754c2e504 100644 --- a/sound/soc/soc-generic-dmaengine-pcm.c +++ b/sound/soc/soc-generic-dmaengine-pcm.c @@ -301,6 +301,12 @@ static int dmaengine_pcm_new(struct snd_soc_pcm_runtime *rtd) if (!dmaengine_pcm_can_report_residue(dev, pcm->chan[i])) pcm->flags |= SND_DMAENGINE_PCM_FLAG_NO_RESIDUE; + + if (rtd->pcm->streams[i].pcm->name[0] == '\0') { + strncpy(rtd->pcm->streams[i].pcm->name, + rtd->pcm->streams[i].pcm->id, + sizeof(rtd->pcm->streams[i].pcm->name)); + } } return 0;