aboutsummaryrefslogtreecommitdiff
path: root/SOURCES/steamdeck-oled-audio.patch
diff options
context:
space:
mode:
Diffstat (limited to 'SOURCES/steamdeck-oled-audio.patch')
-rw-r--r--SOURCES/steamdeck-oled-audio.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/SOURCES/steamdeck-oled-audio.patch b/SOURCES/steamdeck-oled-audio.patch
index 978e76a..eee4e1e 100644
--- a/SOURCES/steamdeck-oled-audio.patch
+++ b/SOURCES/steamdeck-oled-audio.patch
@@ -209,7 +209,7 @@ index a06af82b8..ae32748a5 100644
+static int acp_cs35l41_hw_params(struct snd_pcm_substream *substream,
+ struct snd_pcm_hw_params *params)
+{
-+ struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
++ struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
+ struct snd_soc_card *card = rtd->card;
+ struct snd_soc_dai *codec_dai;
+ int ret, i;
@@ -218,7 +218,7 @@ index a06af82b8..ae32748a5 100644
+
+ ret = 0;
+ for (i = 0; i < num_codecs; i++) {
-+ codec_dai = asoc_rtd_to_codec(rtd, i);
++ codec_dai = snd_soc_rtd_to_codec(rtd, i);
+ if (strcmp(codec_dai->name, "cs35l41-pcm") == 0) {
+ switch (params_rate(params)) {
+ case 48000:
@@ -326,7 +326,7 @@ index a06af82b8..ae32748a5 100644
+ links[i].no_pcm = 1;
+ if (!drv_data->bt_codec_id) {
+ /* Use dummy codec if codec id not specified */
-+ links[i].codecs = &asoc_dummy_dlc;
++ links[i].codecs = &snd_soc_dummy_dlc;
+ links[i].num_codecs = 1;
+ }
i++;
@@ -344,14 +344,14 @@ index 2b3ec6594..6feef5a93 100644
DMIC_BE_ID,
};
-@@ -41,6 +42,7 @@ enum codec_endpoints {
+@@ -45,6 +45,7 @@
MAX98360A,
RT5682S,
NAU8825,
+ CS35L41,
NAU8821,
MAX98388,
- };
+ ES83XX,
@@ -53,9 +55,11 @@ enum platform_end_point {
struct acp_card_drvdata {
unsigned int hs_cpu_id;