For Mediatek chipset, it can not enabled if there are something wrong
in btmtk_setup_firmware_79xx(). Thus, the process must be terminated
and returned error code.
Call to sdw_update_slave_status() needs to be added to sdw_clear_slave_
status() to ensure Slaves are informed of the new status via update_
status() callback.
This will enable codec drivers to reset their internal states and make
sure the register settings are properly restored on pm_runtime or
system resume
We assume the adr order described in a snd_soc_acpi_link_adr array is
jack -> amp -> mic. We follow the same order to implement the topology.
We will need a special topology if we configure a snd_soc_acpi_link_adr
array with different order. Adding a check and a warning message can
remind people to keep the order when adding a new snd_soc_acpi_link_adr
array.
Signed-off-by: Bard Liao <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Mark Brown <email address hidden>
(cherry picked from commit 296c789ce1e501be8b46ebb24da4ba53063cc10a linux-next)
Signed-off-by: Hui Wang <email address hidden>
Signed-off-by: Chia-Lin Kao (AceLan) <email address hidden>
DAI link id will not be set from sdw codec init feedback function,
and be_id is changed by create_sdw_dailink() now. So we don't need
get_next_be_id() anymore.
Signed-off-by: Bard Liao <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Mark Brown <email address hidden>
(cherry picked from commit 4ed65d6ead29a992c4803e1138a6042caa6ec2a3 linux-next)
Signed-off-by: Hui Wang <email address hidden>
Signed-off-by: Chia-Lin Kao (AceLan) <email address hidden>
We can apply the fixed dai link id for DMICs in create_sdw_dailink().
No need to set it in each DMIC's callback.
The fixed dai link id is not only for rt715 and rt715-sdca, but for all
DMICs, therefore we remove the SOF_RT715_DAI_ID_FIX check as well.
Signed-off-by: Bard Liao <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Mark Brown <email address hidden>
(cherry picked from commit bf605cb042307d162fbcb094738bab5d767f1261 linux-next)
Signed-off-by: Hui Wang <email address hidden>
Signed-off-by: Chia-Lin Kao (AceLan) <email address hidden>