Skip to content

Commit

Permalink
ASoC: Intel: sof_rt5682: support ALC1011 on cml boards
Browse files Browse the repository at this point in the history
For cml boards, ALC1011 speaker amplifier is supported by machine
driver cml_rt1011_rt5682. Use same driver name for backward
compatibility with existing devices on market.

Signed-off-by: Brent Lu <[email protected]>
  • Loading branch information
brentlu committed Apr 3, 2024
1 parent 75774b9 commit 2ff48b0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sound/soc/intel/boards/sof_rt5682.c
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,13 @@ static int sof_audio_probe(struct platform_device *pdev)
ctx->amp_type = CODEC_RT5650;
}

if (ctx->amp_type == CODEC_RT1011 && soc_intel_is_cml()) {
/* backward-compatible with existing devices */
sof_audio_card_rt5682.name = devm_kstrdup(&pdev->dev,
"cml_rt1011_rt5682",
GFP_KERNEL);
}

if (is_legacy_cpu) {
ctx->rt5682.is_legacy_cpu = true;
ctx->dmic_be_num = 0;
Expand Down

0 comments on commit 2ff48b0

Please sign in to comment.