Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Conversation

@mgaio
Copy link
Contributor

@mgaio mgaio commented May 12, 2016

When bytes control is mapped to component type, to/from Blackboard() calls
can not be used.

In this case, blackboard has to be accessed using blackboardWrite() and
blackboardRead()

Signed-off-by: Miguel Gaio [email protected]

@dawagner
Copy link
Contributor

Please give more details in the commit message: you didn't explain why to/fromBlackboard does not work.

if (isDebugEnabled()) {

// The "info" method has been shadowed by a local variable
this->info() << "Writing alsa element " << controlName
Copy link
Contributor

@dawagner dawagner May 12, 2016

Choose a reason for hiding this comment

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

With this patch, that log isn't produced in case of byte controls anymore. (Same issue applies when reading alsa byte controls).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes but one bytes per line, if you have at worst 512 bytes is not really helpfull.
So just skip as done in TLV bytes control

Copy link
Contributor

Choose a reason for hiding this comment

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

Sure but you could come up with a smarter way to log.

@mgaio mgaio force-pushed the topic/legacy-bytes-control branch from 9fe36c6 to 0edf481 Compare May 12, 2016 12:27
@krocard
Copy link
Contributor

krocard commented May 12, 2016

👍 Lots of specific code for Bit array. It will need to be factorized one day.

@mgaio mgaio force-pushed the topic/legacy-bytes-control branch from 0edf481 to b4ef15e Compare May 20, 2016 11:14
When bytes control is mapped to component type, PFW scalar size is the whole
size of amixer bytes control, this does not match scalar size of a byte.
Thus, the call of to/from Blackboard() calls can not be used.

To handle this case, use blackboardWrite() and blackboardRead() for hw access.

Signed-off-by: Miguel Gaio <[email protected]>
@mgaio mgaio force-pushed the topic/legacy-bytes-control branch from b4ef15e to 913efde Compare May 20, 2016 12:45
@dawagner dawagner merged commit e9a58f4 into intel:master Jun 23, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants