提交 f52c825d 编写于 作者: E Edward Matijevic 提交者: Zheng Zengkai

ALSA: ctxfi: Add SB046x PCI ID

stable inclusion
from stable-v5.10.119
commit 7c57f213498871972b0d84828d0d5dcd1893b36c
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5L6BB

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=7c57f213498871972b0d84828d0d5dcd1893b36c

--------------------------------

commit 1b073ebb upstream.

Adds the PCI ID for X-Fi cards sold under the Platnum and XtremeMusic names

Before: snd_ctxfi 0000:05:05.0: chip 20K1 model Unknown (1102:0021) is found
After: snd_ctxfi 0000:05:05.0: chip 20K1 model SB046x (1102:0021) is found

[ This is only about defining the model name string, and the rest is
  handled just like before, as a default unknown device.
  Edward confirmed that the stuff has been working fine -- tiwai ]
Signed-off-by: NEdward Matijevic <motolav@gmail.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/cae7d1a4-8bd9-7dfe-7427-db7e766f7272@gmail.comSigned-off-by: NTakashi Iwai <tiwai@suse.de>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
上级 704a0195
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
| ((IEC958_AES3_CON_FS_48000) << 24)) | ((IEC958_AES3_CON_FS_48000) << 24))
static const struct snd_pci_quirk subsys_20k1_list[] = { static const struct snd_pci_quirk subsys_20k1_list[] = {
SND_PCI_QUIRK(PCI_VENDOR_ID_CREATIVE, 0x0021, "SB046x", CTSB046X),
SND_PCI_QUIRK(PCI_VENDOR_ID_CREATIVE, 0x0022, "SB055x", CTSB055X), SND_PCI_QUIRK(PCI_VENDOR_ID_CREATIVE, 0x0022, "SB055x", CTSB055X),
SND_PCI_QUIRK(PCI_VENDOR_ID_CREATIVE, 0x002f, "SB055x", CTSB055X), SND_PCI_QUIRK(PCI_VENDOR_ID_CREATIVE, 0x002f, "SB055x", CTSB055X),
SND_PCI_QUIRK(PCI_VENDOR_ID_CREATIVE, 0x0029, "SB073x", CTSB073X), SND_PCI_QUIRK(PCI_VENDOR_ID_CREATIVE, 0x0029, "SB073x", CTSB073X),
...@@ -64,6 +65,7 @@ static const struct snd_pci_quirk subsys_20k2_list[] = { ...@@ -64,6 +65,7 @@ static const struct snd_pci_quirk subsys_20k2_list[] = {
static const char *ct_subsys_name[NUM_CTCARDS] = { static const char *ct_subsys_name[NUM_CTCARDS] = {
/* 20k1 models */ /* 20k1 models */
[CTSB046X] = "SB046x",
[CTSB055X] = "SB055x", [CTSB055X] = "SB055x",
[CTSB073X] = "SB073x", [CTSB073X] = "SB073x",
[CTUAA] = "UAA", [CTUAA] = "UAA",
......
...@@ -26,8 +26,9 @@ enum CHIPTYP { ...@@ -26,8 +26,9 @@ enum CHIPTYP {
enum CTCARDS { enum CTCARDS {
/* 20k1 models */ /* 20k1 models */
CTSB046X,
CT20K1_MODEL_FIRST = CTSB046X,
CTSB055X, CTSB055X,
CT20K1_MODEL_FIRST = CTSB055X,
CTSB073X, CTSB073X,
CTUAA, CTUAA,
CT20K1_UNKNOWN, CT20K1_UNKNOWN,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册