Skip to content

Commit f22a351

Browse files
brentlubroonie
authored andcommitted
ASoC: Intel: sof_pcm512x: do not check common_hdmi_codec_drv
The variable common_hdmi_codec_drv is always true on SOF platform so we could remove the reference in machine driver. Signed-off-by: Brent Lu <[email protected]> Reviewed-by: Péter Ujfalusi <[email protected]> Signed-off-by: Bard Liao <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 2c80bcc commit f22a351

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sound/soc/intel/boards/sof_pcm512x.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,7 @@ static int sof_audio_probe(struct platform_device *pdev)
371371
sof_pcm512x_quirk = SOF_PCM512X_SSP_CODEC(2);
372372
} else {
373373
dmic_be_num = 2;
374-
if (mach->mach_params.common_hdmi_codec_drv &&
375-
(mach->mach_params.codec_mask & IDISP_CODEC_MASK))
374+
if (mach->mach_params.codec_mask & IDISP_CODEC_MASK)
376375
ctx->idisp_codec = true;
377376

378377
/* links are always present in topology */

0 commit comments

Comments
 (0)