Skip to content

[RFC] sof-soundwire: setup the initial values - #36

Closed
libinyang wants to merge 1 commit into
thesofproject:masterfrom
libinyang:sdw_conditional_init_kcontrol
Closed

libinyang wants to merge 1 commit into
thesofproject:masterfrom
libinyang:sdw_conditional_init_kcontrol

Conversation

@libinyang

Copy link
Copy Markdown

This patch sets up the initial values of the kcontrols to make sure the
audio is in the predictable state.

Signed-off-by: Libin Yang [email protected]


Please don't merge. Just for discussion.

This patch sets up the initial values of the kcontrols to make sure the
audio is in the predictable state.

Signed-off-by: Libin Yang <[email protected]>
cset "name='PGA8.0 8 Master Capture Volume' 50"
]
}
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is not correct. If multiple controls can be present.

Use EnableSequence.8.cset "name='PGA8.0 8 Master Capture Volume' 50" for example.

But the default volumes should not be set for UCM2. Handle the volume settings in the device section (using PlaybackMixerElem and CaptureMixerElem and PlaybackMasterElem and CaptureMasterElem).

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Hi Jaroslav,

Sorry for the delay reply. I didn't get the email notification and I missed you comments. I tried your suggestion of "EnableSequence.8.cset" and it seems not to work. I will describe more details in my patch email thread, so we can talk the problem in one place.

I move the volume settings in HiFi, this is because we are designing a general UCM2 solution. So on some platforms, for example, “PGA3.0 3” kcontrol is used in RT1308, but maybe on some platform, RT1308 may not use "PGA3.0 3" kcontrol. This is why I don't want to set the default volumes in the device section.

@plbossart
plbossart force-pushed the master branch 2 times, most recently from 4c1189f to 5b59490 Compare June 17, 2020 20:01
@libinyang

Copy link
Copy Markdown
Author

#42 is merged. Close this one

@libinyang libinyang closed this Jun 18, 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.

2 participants