Repository navigation
ASoC: SOF: topology: use the default hw_config in DAI link init - #758
Conversation
If multiple hw_configs are provided in the topology, look for the default one instead of loading the first one found. Signed-off-by: Dragos Tarcatu <dragos_tarcatu@mentor.com>
806a92d to
72af409
Compare
|
@plbossart we could add a second SSP_CONFIG() for the the SSP's in the nocodec to test multiple hw_configs. Today we have the default set to 16-bit format, we could add another one for 24-bit to test this. |
|
@ranj063 @plbossart I tested this starting from the m4-preprocessed sof-apl-nocodec.conf and then handcrafted it to use 2 hw_configs for SSP5 with ids 5 and 6. Config 5 is the one generated from the m4, and config 6 changes the TDM slot width to 32 bits and adjusts the bit clock accordingly. And kept the data width to 16 bits. Since this is not part of the HWConfig section, as far as I can tell, some driver changes will be needed if multiple hw_configs would require different data width values. I hw_config 5 is being set as the default: If hw_config 6: and if some inexistent id is given: |
|
@plbossart @dragosht I see it also do some similar thing to the codec. If we need to be able to change hw_config I think we may need to add interface in both part. linux/sound/soc/soc-topology.c Lines 2053 to 2064 in f304b5c |
If multiple hw_configs are provided in the topology, look for the
default one instead of loading the first one found.
Signed-off-by: Dragos Tarcatu dragos_tarcatu@mentor.com