Linux Sound subsystem development
 help / color / mirror / Atom feed
From: Cezary Rojewski <cezary.rojewski@intel.com>
To: broonie@kernel.org
Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org,
	tiwai@suse.com, perex@perex.cz,
	amadeuszx.slawinski@linux.intel.com,
	pierre-louis.bossart@linux.intel.com, hdegoede@redhat.com,
	andriy.shevchenko@linux.intel.com, cujomalainey@chromium.org,
	lmajczak@google.com, Cezary Rojewski <cezary.rojewski@intel.com>
Subject: [PATCH 12/12] ASoC: Intel: avs: Enable by default for all SST configurations
Date: Mon, 12 Aug 2024 11:43:28 +0200	[thread overview]
Message-ID: <20240812094328.842661-13-cezary.rojewski@intel.com> (raw)
In-Reply-To: <20240812094328.842661-1-cezary.rojewski@intel.com>

The skylake-driver is deprecated in favour of the avs-driver. As the
latter supports all configurations of its predecessor and more, update
the existing selection mechanism to acknowledge the SST flag.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
---
 sound/soc/intel/avs/core.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/sound/soc/intel/avs/core.c b/sound/soc/intel/avs/core.c
index f2dc82a2abc7..da7bac09acb4 100644
--- a/sound/soc/intel/avs/core.c
+++ b/sound/soc/intel/avs/core.c
@@ -422,8 +422,14 @@ static int avs_pci_probe(struct pci_dev *pci, const struct pci_device_id *id)
 	int ret;
 
 	ret = snd_intel_dsp_driver_probe(pci);
-	if (ret != SND_INTEL_DSP_DRIVER_ANY && ret != SND_INTEL_DSP_DRIVER_AVS)
+	switch (ret) {
+	case SND_INTEL_DSP_DRIVER_ANY:
+	case SND_INTEL_DSP_DRIVER_SST:
+	case SND_INTEL_DSP_DRIVER_AVS:
+		break;
+	default:
 		return -ENODEV;
+	}
 
 	ret = pcim_enable_device(pci);
 	if (ret < 0)
-- 
2.25.1


  parent reply	other threads:[~2024-08-12  9:43 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-12  9:43 [PATCH 00/12] ASoC: Intel: Remove skylake driver Cezary Rojewski
2024-08-12  9:43 ` [PATCH 01/12] ASoC: Intel: Remove bxt_rt298 board driver Cezary Rojewski
2024-08-12  9:43 ` [PATCH 02/12] ASoC: Intel: Remove bxt_da7219_max98357a " Cezary Rojewski
2024-08-12  9:43 ` [PATCH 03/12] ASoC: Intel: Remove kbl_rt5663_rt5514_max98927 " Cezary Rojewski
2024-08-12  9:43 ` [PATCH 04/12] ASoC: Intel: Remove kbl_rt5663_max98927 " Cezary Rojewski
2024-08-12  9:43 ` [PATCH 05/12] ASoC: Intel: Remove kbl_rt5660 " Cezary Rojewski
2024-08-12  9:43 ` [PATCH 06/12] ASoC: Intel: Remove kbl_da7219_max98927 " Cezary Rojewski
2024-08-12  9:43 ` [PATCH 07/12] ASoC: Intel: Remove kbl_da7219_max98357a " Cezary Rojewski
2024-08-12  9:43 ` [PATCH 08/12] ASoC: Intel: Remove skl_rt286 " Cezary Rojewski
2024-08-12  9:43 ` [PATCH 09/12] ASoC: Intel: Remove skl_nau88l25_ssm4567 " Cezary Rojewski
2024-08-12  9:43 ` [PATCH 10/12] ASoC: Intel: Remove skl_nau88l25_max98357a " Cezary Rojewski
2024-08-12  9:43 ` [PATCH 11/12] ASoC: Intel: Remove skylake driver Cezary Rojewski
2024-08-12  9:43 ` Cezary Rojewski [this message]
2024-08-12 16:15 ` [PATCH 00/12] " Andy Shevchenko
2024-08-20 12:44 ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240812094328.842661-13-cezary.rojewski@intel.com \
    --to=cezary.rojewski@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=amadeuszx.slawinski@linux.intel.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=broonie@kernel.org \
    --cc=cujomalainey@chromium.org \
    --cc=hdegoede@redhat.com \
    --cc=linux-sound@vger.kernel.org \
    --cc=lmajczak@google.com \
    --cc=perex@perex.cz \
    --cc=pierre-louis.bossart@linux.intel.com \
    --cc=tiwai@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox