Skip to content

ASoC: SOF: intel: hda-dai: Remove stream name from dai driver#1874

Merged
kv2019i merged 1 commit intothesofproject:topic/sof-devfrom
bardliao:hda-dai
Mar 12, 2020
Merged

ASoC: SOF: intel: hda-dai: Remove stream name from dai driver#1874
kv2019i merged 1 commit intothesofproject:topic/sof-devfrom
bardliao:hda-dai

Conversation

@bardliao
Copy link
Collaborator

@bardliao bardliao commented Mar 9, 2020

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

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,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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?

Copy link
Member

@plbossart plbossart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@ranj063
Copy link
Collaborator

ranj063 commented Mar 9, 2020

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

Copy link
Collaborator

@ranj063 ranj063 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but wondering if we need a fixes tag? or does this need to be squashed before sending upstream?

@plbossart
Copy link
Member

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

Right, but is it necessary for SSP? What's broken at the moment?

@ranj063
Copy link
Collaborator

ranj063 commented Mar 9, 2020

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

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.

@ranj063
Copy link
Collaborator

ranj063 commented Mar 9, 2020

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

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!"

@plbossart
Copy link
Member

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

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

@bardliao
Copy link
Collaborator Author

Thanks @kv2019i @plbossart @ranj063 Please see my answers below.

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?

We didn't have stream name until c12e84e.

LGTM but wondering if we need a fixes tag? or does this need to be squashed before sending upstream?

So, yes, this need to be squashed before sending upstream.

Right, but is it necessary for SSP? What's broken at the moment?

#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.

@ranj063
Copy link
Collaborator

ranj063 commented Mar 10, 2020

debugfs: File 'iDisp3 TX' in directory 'dapm' already present

@bardliao I'm seeing these on my mantis. Does your patch fix these?

@bardliao
Copy link
Collaborator Author

debugfs: File 'iDisp3 TX' in directory 'dapm' already present

@bardliao I'm seeing these on my mantis. Does your patch fix these?

@ranj063 Sorry, I don't see this log on my side.

@ranj063
Copy link
Collaborator

ranj063 commented Mar 10, 2020

debugfs: File 'iDisp3 TX' in directory 'dapm' already present

@bardliao I'm seeing these on my mantis. Does your patch fix these?

@ranj063 Sorry, I don't see this log on my side.

@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?

@ranj063
Copy link
Collaborator

ranj063 commented Mar 11, 2020

@kv2019i are you OK with this one now?

@lyakh
Copy link
Collaborator

lyakh commented Mar 12, 2020

debugfs: File 'iDisp3 TX' in directory 'dapm' already present

@bardliao I'm seeing these on my mantis. Does your patch fix these?

@ranj063 Sorry, I don't see this log on my side.

@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?

@ranj063 fixes them for me too

Copy link
Collaborator

@kv2019i kv2019i left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for clarifications @bardliao and @ranj063 . We should probably squash this patch before sending upstream.

@kv2019i kv2019i merged commit 27926d2 into thesofproject:topic/sof-dev Mar 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants