Commit 80464533 authored by Bard Liao's avatar Bard Liao Committed by Vinod Koul

soundwire: intel: remove playback/capture stream_name

We will create dai widget in SOF.
Signed-off-by: default avatarBard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20190916192348.467-4-pierre-louis.bossart@linux.intel.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 535bbe6a
...@@ -843,14 +843,6 @@ static int intel_create_dai(struct sdw_cdns *cdns, ...@@ -843,14 +843,6 @@ static int intel_create_dai(struct sdw_cdns *cdns,
return -ENOMEM; return -ENOMEM;
if (type == INTEL_PDI_BD || type == INTEL_PDI_OUT) { if (type == INTEL_PDI_BD || type == INTEL_PDI_OUT) {
dais[i].playback.stream_name =
kasprintf(GFP_KERNEL, "SDW%d Tx%d",
cdns->instance, i);
if (!dais[i].playback.stream_name) {
kfree(dais[i].name);
return -ENOMEM;
}
dais[i].playback.channels_min = 1; dais[i].playback.channels_min = 1;
dais[i].playback.channels_max = max_ch; dais[i].playback.channels_max = max_ch;
dais[i].playback.rates = SNDRV_PCM_RATE_48000; dais[i].playback.rates = SNDRV_PCM_RATE_48000;
...@@ -858,15 +850,6 @@ static int intel_create_dai(struct sdw_cdns *cdns, ...@@ -858,15 +850,6 @@ static int intel_create_dai(struct sdw_cdns *cdns,
} }
if (type == INTEL_PDI_BD || type == INTEL_PDI_IN) { if (type == INTEL_PDI_BD || type == INTEL_PDI_IN) {
dais[i].capture.stream_name =
kasprintf(GFP_KERNEL, "SDW%d Rx%d",
cdns->instance, i);
if (!dais[i].capture.stream_name) {
kfree(dais[i].name);
kfree(dais[i].playback.stream_name);
return -ENOMEM;
}
dais[i].capture.channels_min = 1; dais[i].capture.channels_min = 1;
dais[i].capture.channels_max = max_ch; dais[i].capture.channels_max = max_ch;
dais[i].capture.rates = SNDRV_PCM_RATE_48000; dais[i].capture.rates = SNDRV_PCM_RATE_48000;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment