Skip to content

Commit a19efb5

Browse files
bardliaovinodkoul
authored andcommitted
soundwire: intel: fix factor of two in MCLK handling
Somehow Intel folks were confused, the property is 2x what the mclk frequency actually is (checked the actual bus frequency with a scope) Signed-off-by: Bard Liao <[email protected]> Signed-off-by: Pierre-Louis Bossart <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent fd6a3ac commit a19efb5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/soundwire/intel.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,9 @@ static int sdw_master_read_intel_prop(struct sdw_bus *bus)
880880
"intel-sdw-ip-clock",
881881
&prop->mclk_freq);
882882

883+
/* the values reported by BIOS are the 2x clock, not the bus clock */
884+
prop->mclk_freq /= 2;
885+
883886
fwnode_property_read_u32(link,
884887
"intel-quirk-mask",
885888
&quirk_mask);

0 commit comments

Comments
 (0)