mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
ASoC: tegra_alt: Use DMA channel name from DT
This change is to use DMA channel name from DT when pcm driver requests the dma channel to dma engine. Bug 1488342 Change-Id: I4b2518ce14caa366b834848571577273c4144ac6 Signed-off-by: Songhee Baek <sbaek@nvidia.com> Reviewed-on: http://git-master/r/401167 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Tested-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
This commit is contained in:
committed by
Sameer Pujar
parent
d9c7333753
commit
790ac51a9d
@@ -526,10 +526,28 @@ static int tegra210_admaif_probe(struct platform_device *pdev)
|
||||
admaif->playback_dma_data[i].wrap = 4;
|
||||
admaif->playback_dma_data[i].width = 32;
|
||||
admaif->playback_dma_data[i].req_sel = i + 1;
|
||||
if (of_property_read_string_index(pdev->dev.of_node,
|
||||
"dma-names",
|
||||
(i * 2) + 1,
|
||||
&admaif->playback_dma_data[i].chan_name) < 0) {
|
||||
dev_err(&pdev->dev,
|
||||
"Missing property nvidia,dma-names\n");
|
||||
ret = -ENODEV;
|
||||
goto err_suspend;
|
||||
}
|
||||
|
||||
admaif->capture_dma_data[i].wrap = 4;
|
||||
admaif->capture_dma_data[i].width = 32;
|
||||
admaif->capture_dma_data[i].req_sel = i + 1;
|
||||
if (of_property_read_string_index(pdev->dev.of_node,
|
||||
"dma-names",
|
||||
(i * 2),
|
||||
&admaif->capture_dma_data[i].chan_name) < 0) {
|
||||
dev_err(&pdev->dev,
|
||||
"Missing property nvidia,dma-names\n");
|
||||
ret = -ENODEV;
|
||||
goto err_suspend;
|
||||
}
|
||||
}
|
||||
|
||||
ret = snd_soc_register_component(&pdev->dev,
|
||||
|
||||
Reference in New Issue
Block a user