This patch fixes the automatic clock selection so it always selects distinct input and output clocks. v2 -> v3: - Update code comment, fix formatting and add more detailed explanations in commit message v1 -> v2: - compare clock indexes (and not the location in the clock table) to make sure input and output clocks are different Arnaud Ferraris(1): ASoC: fsl_asrc: make sure the input and output clocks are different sound/soc/fsl/fsl_asrc.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-)