Lines Matching refs:dai_runtime
1757 struct sdw_cdns_dai_runtime *dai_runtime;
1759 dai_runtime = cdns->dai_runtime_array[dai->id];
1763 if (dai_runtime) {
1765 "dai_runtime already allocated for dai %s\n",
1770 /* allocate and set dai_runtime info */
1771 dai_runtime = kzalloc(sizeof(*dai_runtime), GFP_KERNEL);
1772 if (!dai_runtime)
1775 dai_runtime->stream_type = SDW_STREAM_PCM;
1777 dai_runtime->bus = &cdns->bus;
1778 dai_runtime->link_id = cdns->instance;
1780 dai_runtime->stream = stream;
1781 dai_runtime->direction = direction;
1783 cdns->dai_runtime_array[dai->id] = dai_runtime;
1786 if (!dai_runtime) {
1788 "dai_runtime not allocated for dai %s\n",
1793 /* for NULL stream we release allocated dai_runtime */
1794 kfree(dai_runtime);