Skip to content

comp: mux: add init/free and cmd op code to mux - #1001

Closed
ranj063 wants to merge 1 commit into
thesofproject:masterfrom
ranj063:fix/mux
Closed

ranj063 wants to merge 1 commit into
thesofproject:masterfrom
ranj063:fix/mux

Conversation

@ranj063

@ranj063 ranj063 commented Feb 13, 2019 •

Copy link
Copy Markdown
Collaborator

This will be a general purpose mux. Add the init/free
and cmd op to support passing enum values to the mux
comp.

Signed-off-by: Liam Girdwood liam.r.girdwood@linux.intel.com
Signed-off-by: Ranjani Sridharan ranjani.sridharan@linux.intel.com

Comment thread src/include/uapi/ipc/topology.h Outdated

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I guess we need some SOF_COMP_DEFAULT_FLAVOR enum value that will be a default for other components.

Comment thread src/audio/mux.c Outdated

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

what exactly is stored in num_elements when for cmd == SOF_CMD_ENUM ? is it a number of parameters and each chanv[j].value represents enum value of parameter[0..num_elements] ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

its the number of channel elements to be changed.

@plbossart plbossart left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

not completely clear on some parts, see below

Comment thread src/audio/mux.c Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

what does 2 refer to? two channels? two outputs?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@plbossart this should be changed sorry to the max channels supported.

Comment thread src/audio/mux.c Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

keyword?

Comment thread src/include/uapi/ipc/topology.h Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ABI level change?

This will be a general purpose mux. Add the init/free
and cmd op to support passing enum values to the mux
comp.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
@ranj063

ranj063 commented Feb 14, 2019

Copy link
Copy Markdown
Collaborator Author

@lgirdwood @plbossart updated now. I will add the subtype bits in ww9

@lgirdwood

Copy link
Copy Markdown
Member

@plbossart any comments on the update ?

@tlauda

tlauda commented Apr 15, 2019

Copy link
Copy Markdown
Contributor

@ranj063 Is this change still valid?

@lgirdwood

Copy link
Copy Markdown
Member

@tlauda yes, as this is muxing at the stream level rather than selecting channels. i.e. it can be used to direct output to different DAIs from a single PCM. @ranj063 CI scan failing, can you check.

@tlauda

tlauda commented Apr 19, 2019

Copy link
Copy Markdown
Contributor

@lgirdwood @ranj063 It seems that @akloniex has done the full implementation in #1275. Should we close this one?

@lgirdwood lgirdwood closed this Apr 19, 2019
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.

6 participants