Skip to content

Conversation

@ranj063
Copy link
Collaborator

@ranj063 ranj063 commented Feb 1, 2023

No description provided.

Copy link
Member

Choose a reason for hiding this comment

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

the answer is always 42.

Copy link
Member

Choose a reason for hiding this comment

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

does this belong in this PR? I don't see the link with input/output

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's a token needed for the pin_index attributes in the new classes

@ranj063 ranj063 force-pushed the fix/audio_formats branch 2 times, most recently from 15bfbf3 to c282cef Compare February 1, 2023 15:54
@dbaluta
Copy link
Collaborator

dbaluta commented Feb 1, 2023

@ranj063 Care to explain a little bit better what is an output Pin? An output pin is a data line of a DAI?

@ranj063
Copy link
Collaborator Author

ranj063 commented Feb 1, 2023

@ranj063 Care to explain a little bit better what is an output Pin? An output pin is a data line of a DAI?

@dbaluta this is purely from a module pov. A module could have multiple input and output modules connected to it. The term pin refers to the connection between modules and is used to specify the audio formats required at each end of the connection.

…mat counts

And set them to be the same number as the num_audio_formats in all the
current widget objects. This is in preparation to remove
num_audio_formats as there will be widgets with different number of
supported formats for each sink/source pin.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
…ormats

The existing class definition for audio_format works only for widgets
with exactly 1 input pin (Pin index 0) and 1 output pin (Pin index 0).

Add two new classes that can be used to define the audio formats for any
pin. These classes use the same tokens are the existing audio_format
class and therefore can be used alongside the existing audio_format
instances with non-zero pin indices.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
@@ -0,0 +1,137 @@
# Class definition for sink pin audio format object
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm confused.
Don't we have support for pins other than index 0? I would thin that they somehow work and somehow they actually get audio format, no?

Isn't the problem lies that we have only one set of audio format definition, which is global for the whole module and for all of it's pins?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@ujfalusi we dont. The only audio formats we use today are for pin 0 and always intput and output together in pairs. Clearly this wont work

@kv2019i
Copy link
Collaborator

kv2019i commented Feb 2, 2023

One timeout in https://sof-ci.01.org/sofpr/PR7014/build3661/devicetest/index.html , not related to this PR, proceeding with merge.

@kv2019i kv2019i merged commit 6a00221 into thesofproject:main Feb 2, 2023
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.

7 participants