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 v2 14/14] ASoC: Intel: avs: Enable by default for all SST configurations
Date: Wed, 14 Aug 2024 10:39:29 +0200	[thread overview]
Message-ID: <20240814083929.1217319-15-cezary.rojewski@intel.com> (raw)
In-Reply-To: <20240814083929.1217319-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.

Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
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-14  8:40 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-14  8:39 [PATCH v2 00/14] ASoC: Intel: Remove skylake driver Cezary Rojewski
2024-08-14  8:39 ` [PATCH v2 01/14] ALSA: hda: Move SST device entries to AVS Cezary Rojewski
2024-08-16 22:06   ` Mark Brown
2024-08-17  7:45     ` Takashi Iwai
2024-08-14  8:39 ` [PATCH v2 02/14] ASoC: Intel: Drop skl_machine_pdata usage Cezary Rojewski
2024-08-14  8:39 ` [PATCH v2 03/14] ASoC: Intel: Remove bxt_rt298 board driver Cezary Rojewski
2024-08-14  8:39 ` [PATCH v2 04/14] ASoC: Intel: Remove bxt_da7219_max98357a " Cezary Rojewski
2024-08-14  8:39 ` [PATCH v2 05/14] ASoC: Intel: Remove kbl_rt5663_rt5514_max98927 " Cezary Rojewski
2024-08-14  8:39 ` [PATCH v2 06/14] ASoC: Intel: Remove kbl_rt5663_max98927 " Cezary Rojewski
2024-08-14  8:39 ` [PATCH v2 07/14] ASoC: Intel: Remove kbl_rt5660 " Cezary Rojewski
2024-08-14  8:39 ` [PATCH v2 08/14] ASoC: Intel: Remove kbl_da7219_max98927 " Cezary Rojewski
2024-08-14  8:39 ` [PATCH v2 09/14] ASoC: Intel: Remove kbl_da7219_max98357a " Cezary Rojewski
2024-08-14  8:39 ` [PATCH v2 10/14] ASoC: Intel: Remove skl_rt286 " Cezary Rojewski
2024-08-14  8:39 ` [PATCH v2 11/14] ASoC: Intel: Remove skl_nau88l25_ssm4567 " Cezary Rojewski
2024-08-14  8:39 ` [PATCH v2 12/14] ASoC: Intel: Remove skl_nau88l25_max98357a " Cezary Rojewski
2024-08-14  8:39 ` [PATCH v2 13/14] ASoC: Intel: Remove skylake driver Cezary Rojewski
2024-08-14  8:39 ` Cezary Rojewski [this message]
2024-08-14 14:42 ` [PATCH v2 00/14] " Andy Shevchenko
2024-08-14 14:48   ` Cezary Rojewski
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=20240814083929.1217319-15-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