ASoC: SOF: intel: hda-dai: Remove stream name from dai driver#1874
ASoC: SOF: intel: hda-dai: Remove stream name from dai driver#1874kv2019i merged 1 commit intothesofproject:topic/sof-devfrom
Conversation
snd_soc_dapm_new_dai_widgets() will create a dai and link it to dai->playback_widget/capture_widget if stream name is defined. However, we want to make sure playback_widget/capture_widget will be created by topology. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
| .name = "SSP0 Pin", | ||
| .playback = { | ||
| .stream_name = "ssp0 Tx", | ||
| .channels_min = 1, |
There was a problem hiding this comment.
@bardliao The patch is good, but I'd like a bit more about the problem this is solving in commit message. I.e. why do we want to make sure the widgets are created by topology?
There was a problem hiding this comment.
I am with @kv2019i I don't quite get the issue.
We've lived with stream names for a very long time, so if there a change in the ASoC core that creates a problem? Or is this the Soundwire-related changes that force this change as well?
@plbossart this change is similar to what we did for SDW in 8046453 |
ranj063
left a comment
There was a problem hiding this comment.
LGTM but wondering if we need a fixes tag? or does this need to be squashed before sending upstream?
Right, but is it necessary for SSP? What's broken at the moment? |
@plbossart snd_soc_dapm_new_dai_widgets() will overwrite the playback/capture widget with a newly created widget with the stream name in the DAI driver, if the stream name is set. If not, the capture/playback widgets set by sof_connect_dai_widget() during topology loading will be retained and in our case, this is the right thing to do I think. |
And oh to answer your question fully, I think @bardliao trying to fix the debugfs error seen as below: "debugfs: File 'iDisp3 TX' in directory 'dapm' already present!" |
I can't recall having seen this error, or it was a very long time ago? Let's @bardliao answer and see tomorrow |
|
Thanks @kv2019i @plbossart @ranj063 Please see my answers below.
We didn't have stream name until c12e84e.
So, yes, this need to be squashed before sending upstream.
#1863 will test if cpu_dai->playback_widget or cpu_dai->capture_widget exist. We won't assign the widget which we created from topology to cpu_dai->playback_widget or cpu_dai->capture_widget if cpu_dai->playback_widget or cpu_dai->capture_widget already exists. That's why we need this PR. |
@bardliao I'm seeing these on my mantis. Does your patch fix these? |
@bardliao I cant be the only one seeing these debugfs errors and I can confirm that your patch does fix these errors. @kv2019i could you please check on your side? |
|
@kv2019i are you OK with this one now? |
@ranj063 fixes them for me too |
snd_soc_dapm_new_dai_widgets() will create a dai and link it to
dai->playback_widget/capture_widget if stream name is defined.
However, we want to make sure playback_widget/capture_widget will
be created by topology.
Signed-off-by: Bard Liao yung-chuan.liao@linux.intel.com