OSDN Git Service

broadwell-rt286, bdw-rt5677: Fix inconsistency in card detection
authorDavid Ward <david.ward@gatech.edu>
Sat, 27 Feb 2021 14:45:39 +0000 (09:45 -0500)
committerJaroslav Kysela <perex@perex.cz>
Sat, 13 Mar 2021 16:11:06 +0000 (17:11 +0100)
This file is only read when the driver name is 'SOF'. Other entries
in this file do not check if a card name contains the 'sof-' prefix.
Adjust these new entries for Broadwell cards so they are consistent.

This conveniently provides a workaround for a bug in kernel 5.10+:
https://bugzilla.kernel.org/show_bug.cgi?id=211985

It happens to let the catpt driver work in kernels where this bug is
present for Broadwell cards. This is possible because the SOF driver
and catpt driver share the same use case configuration for the card.

Signed-off-by: David Ward <david.ward@gatech.edu>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/SOF/HiFi.conf

index adf8cc5..bcd4f37 100644 (file)
@@ -92,7 +92,7 @@ If.bdw_rt286 {
        Condition {
                Type String
                Haystack "${CardName}"
-               Needle "sof-bdw rt286"
+               Needle "bdw rt286"
        }
        True.Include.main.File "/broadwell-rt286/HiFi.conf"
 }
@@ -101,7 +101,7 @@ If.bdw_rt5677 {
        Condition {
                Type String
                Haystack "${CardName}"
-               Needle "sof-bdw rt5677"
+               Needle "bdw rt5677"
        }
        True.Include.main.File "/bdw-rt5677/HiFi.conf"
 }