diff options
author | Roland Dreier <rolandd@cisco.com> | 2005-09-14 17:19:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-14 17:34:17 -0400 |
commit | 8b7fc4214b550fafe595330e28d7c2c72b8b62f6 (patch) | |
tree | adbe6316875456f889b3e155443d83d2c4ea0e92 | |
parent | 0ed8e048c9e11e69ec951f94066105e80cdc59fd (diff) |
[PATCH] add PCI IDs so RME32 and RME96 drivers build
While doing an allyesconfig build, I noticed that the commit
commit 8cdfd2519c6c9a1e6057dc5970b2542b35895738
Author: Takashi Iwai <tiwai@suse.de>
Date: Wed Sep 7 14:08:11 2005 +0200
[ALSA] Remove superfluous PCI ID definitions
broke the RME32 and RME96 drivers, since the PCI IDs they use seem to have
changed names. Here's a patch to fix this -- compile tested only, since I
have no idea what the hardware even is.
Fix the build of the RME32 and RME96 drivers by having them use the
PCI_DEVICE_ID_RME_xxx names defined in <linux/pci_ids.h> instead of the
PCI_DEVICE_ID_xxx names that they used to define themselves.
Also fix the typo in the id PCI_DEVICE_IDRME__DIGI96_8_PAD_OR_PST so the
name is PCI_DEVICE_ID_RME_DIGI96_8_PAD_OR_PST.
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Acked-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | include/linux/pci_ids.h | 2 | ||||
-rw-r--r-- | sound/pci/rme32.c | 44 | ||||
-rw-r--r-- | sound/pci/rme96.c | 60 |
3 files changed, 53 insertions, 53 deletions
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index f6c1a142286a..72fe3385743c 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h | |||
@@ -1355,7 +1355,7 @@ | |||
1355 | #define PCI_DEVICE_ID_RME_DIGI96 0x3fc0 | 1355 | #define PCI_DEVICE_ID_RME_DIGI96 0x3fc0 |
1356 | #define PCI_DEVICE_ID_RME_DIGI96_8 0x3fc1 | 1356 | #define PCI_DEVICE_ID_RME_DIGI96_8 0x3fc1 |
1357 | #define PCI_DEVICE_ID_RME_DIGI96_8_PRO 0x3fc2 | 1357 | #define PCI_DEVICE_ID_RME_DIGI96_8_PRO 0x3fc2 |
1358 | #define PCI_DEVICE_IDRME__DIGI96_8_PAD_OR_PST 0x3fc3 | 1358 | #define PCI_DEVICE_ID_RME_DIGI96_8_PAD_OR_PST 0x3fc3 |
1359 | #define PCI_DEVICE_ID_XILINX_HAMMERFALL 0x3fc4 | 1359 | #define PCI_DEVICE_ID_XILINX_HAMMERFALL 0x3fc4 |
1360 | #define PCI_DEVICE_ID_XILINX_HAMMERFALL_DSP 0x3fc5 | 1360 | #define PCI_DEVICE_ID_XILINX_HAMMERFALL_DSP 0x3fc5 |
1361 | #define PCI_DEVICE_ID_XILINX_HAMMERFALL_DSP_MADI 0x3fc6 | 1361 | #define PCI_DEVICE_ID_XILINX_HAMMERFALL_DSP_MADI 0x3fc6 |
diff --git a/sound/pci/rme32.c b/sound/pci/rme32.c index 3daeecb9eb0e..cd313af6ebcf 100644 --- a/sound/pci/rme32.c +++ b/sound/pci/rme32.c | |||
@@ -228,11 +228,11 @@ typedef struct snd_rme32 { | |||
228 | } rme32_t; | 228 | } rme32_t; |
229 | 229 | ||
230 | static struct pci_device_id snd_rme32_ids[] = { | 230 | static struct pci_device_id snd_rme32_ids[] = { |
231 | {PCI_VENDOR_ID_XILINX_RME, PCI_DEVICE_ID_DIGI32, | 231 | {PCI_VENDOR_ID_XILINX_RME, PCI_DEVICE_ID_RME_DIGI32, |
232 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0,}, | 232 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0,}, |
233 | {PCI_VENDOR_ID_XILINX_RME, PCI_DEVICE_ID_DIGI32_8, | 233 | {PCI_VENDOR_ID_XILINX_RME, PCI_DEVICE_ID_RME_DIGI32_8, |
234 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0,}, | 234 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0,}, |
235 | {PCI_VENDOR_ID_XILINX_RME, PCI_DEVICE_ID_DIGI32_PRO, | 235 | {PCI_VENDOR_ID_XILINX_RME, PCI_DEVICE_ID_RME_DIGI32_PRO, |
236 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0,}, | 236 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0,}, |
237 | {0,} | 237 | {0,} |
238 | }; | 238 | }; |
@@ -240,7 +240,7 @@ static struct pci_device_id snd_rme32_ids[] = { | |||
240 | MODULE_DEVICE_TABLE(pci, snd_rme32_ids); | 240 | MODULE_DEVICE_TABLE(pci, snd_rme32_ids); |
241 | 241 | ||
242 | #define RME32_ISWORKING(rme32) ((rme32)->wcreg & RME32_WCR_START) | 242 | #define RME32_ISWORKING(rme32) ((rme32)->wcreg & RME32_WCR_START) |
243 | #define RME32_PRO_WITH_8414(rme32) ((rme32)->pci->device == PCI_DEVICE_ID_DIGI32_PRO && (rme32)->rev == RME32_PRO_REVISION_WITH_8414) | 243 | #define RME32_PRO_WITH_8414(rme32) ((rme32)->pci->device == PCI_DEVICE_ID_RME_DIGI32_PRO && (rme32)->rev == RME32_PRO_REVISION_WITH_8414) |
244 | 244 | ||
245 | static int snd_rme32_playback_prepare(snd_pcm_substream_t * substream); | 245 | static int snd_rme32_playback_prepare(snd_pcm_substream_t * substream); |
246 | 246 | ||
@@ -527,21 +527,21 @@ static int snd_rme32_playback_setrate(rme32_t * rme32, int rate) | |||
527 | RME32_WCR_FREQ_1; | 527 | RME32_WCR_FREQ_1; |
528 | break; | 528 | break; |
529 | case 64000: | 529 | case 64000: |
530 | if (rme32->pci->device != PCI_DEVICE_ID_DIGI32_PRO) | 530 | if (rme32->pci->device != PCI_DEVICE_ID_RME_DIGI32_PRO) |
531 | return -EINVAL; | 531 | return -EINVAL; |
532 | rme32->wcreg |= RME32_WCR_DS_BM; | 532 | rme32->wcreg |= RME32_WCR_DS_BM; |
533 | rme32->wcreg = (rme32->wcreg | RME32_WCR_FREQ_0) & | 533 | rme32->wcreg = (rme32->wcreg | RME32_WCR_FREQ_0) & |
534 | ~RME32_WCR_FREQ_1; | 534 | ~RME32_WCR_FREQ_1; |
535 | break; | 535 | break; |
536 | case 88200: | 536 | case 88200: |
537 | if (rme32->pci->device != PCI_DEVICE_ID_DIGI32_PRO) | 537 | if (rme32->pci->device != PCI_DEVICE_ID_RME_DIGI32_PRO) |
538 | return -EINVAL; | 538 | return -EINVAL; |
539 | rme32->wcreg |= RME32_WCR_DS_BM; | 539 | rme32->wcreg |= RME32_WCR_DS_BM; |
540 | rme32->wcreg = (rme32->wcreg | RME32_WCR_FREQ_1) & | 540 | rme32->wcreg = (rme32->wcreg | RME32_WCR_FREQ_1) & |
541 | ~RME32_WCR_FREQ_0; | 541 | ~RME32_WCR_FREQ_0; |
542 | break; | 542 | break; |
543 | case 96000: | 543 | case 96000: |
544 | if (rme32->pci->device != PCI_DEVICE_ID_DIGI32_PRO) | 544 | if (rme32->pci->device != PCI_DEVICE_ID_RME_DIGI32_PRO) |
545 | return -EINVAL; | 545 | return -EINVAL; |
546 | rme32->wcreg |= RME32_WCR_DS_BM; | 546 | rme32->wcreg |= RME32_WCR_DS_BM; |
547 | rme32->wcreg = (rme32->wcreg | RME32_WCR_FREQ_0) | | 547 | rme32->wcreg = (rme32->wcreg | RME32_WCR_FREQ_0) | |
@@ -881,7 +881,7 @@ static int snd_rme32_playback_spdif_open(snd_pcm_substream_t * substream) | |||
881 | runtime->hw = snd_rme32_spdif_fd_info; | 881 | runtime->hw = snd_rme32_spdif_fd_info; |
882 | else | 882 | else |
883 | runtime->hw = snd_rme32_spdif_info; | 883 | runtime->hw = snd_rme32_spdif_info; |
884 | if (rme32->pci->device == PCI_DEVICE_ID_DIGI32_PRO) { | 884 | if (rme32->pci->device == PCI_DEVICE_ID_RME_DIGI32_PRO) { |
885 | runtime->hw.rates |= SNDRV_PCM_RATE_64000 | SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000; | 885 | runtime->hw.rates |= SNDRV_PCM_RATE_64000 | SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000; |
886 | runtime->hw.rate_max = 96000; | 886 | runtime->hw.rate_max = 96000; |
887 | } | 887 | } |
@@ -1408,8 +1408,8 @@ static int __devinit snd_rme32_create(rme32_t * rme32) | |||
1408 | } | 1408 | } |
1409 | 1409 | ||
1410 | /* set up ALSA pcm device for ADAT */ | 1410 | /* set up ALSA pcm device for ADAT */ |
1411 | if ((pci->device == PCI_DEVICE_ID_DIGI32) || | 1411 | if ((pci->device == PCI_DEVICE_ID_RME_DIGI32) || |
1412 | (pci->device == PCI_DEVICE_ID_DIGI32_PRO)) { | 1412 | (pci->device == PCI_DEVICE_ID_RME_DIGI32_PRO)) { |
1413 | /* ADAT is not available on DIGI32 and DIGI32 Pro */ | 1413 | /* ADAT is not available on DIGI32 and DIGI32 Pro */ |
1414 | rme32->adat_pcm = NULL; | 1414 | rme32->adat_pcm = NULL; |
1415 | } | 1415 | } |
@@ -1639,11 +1639,11 @@ snd_rme32_info_inputtype_control(snd_kcontrol_t * kcontrol, | |||
1639 | uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; | 1639 | uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; |
1640 | uinfo->count = 1; | 1640 | uinfo->count = 1; |
1641 | switch (rme32->pci->device) { | 1641 | switch (rme32->pci->device) { |
1642 | case PCI_DEVICE_ID_DIGI32: | 1642 | case PCI_DEVICE_ID_RME_DIGI32: |
1643 | case PCI_DEVICE_ID_DIGI32_8: | 1643 | case PCI_DEVICE_ID_RME_DIGI32_8: |
1644 | uinfo->value.enumerated.items = 3; | 1644 | uinfo->value.enumerated.items = 3; |
1645 | break; | 1645 | break; |
1646 | case PCI_DEVICE_ID_DIGI32_PRO: | 1646 | case PCI_DEVICE_ID_RME_DIGI32_PRO: |
1647 | uinfo->value.enumerated.items = 4; | 1647 | uinfo->value.enumerated.items = 4; |
1648 | break; | 1648 | break; |
1649 | default: | 1649 | default: |
@@ -1670,11 +1670,11 @@ snd_rme32_get_inputtype_control(snd_kcontrol_t * kcontrol, | |||
1670 | ucontrol->value.enumerated.item[0] = snd_rme32_getinputtype(rme32); | 1670 | ucontrol->value.enumerated.item[0] = snd_rme32_getinputtype(rme32); |
1671 | 1671 | ||
1672 | switch (rme32->pci->device) { | 1672 | switch (rme32->pci->device) { |
1673 | case PCI_DEVICE_ID_DIGI32: | 1673 | case PCI_DEVICE_ID_RME_DIGI32: |
1674 | case PCI_DEVICE_ID_DIGI32_8: | 1674 | case PCI_DEVICE_ID_RME_DIGI32_8: |
1675 | items = 3; | 1675 | items = 3; |
1676 | break; | 1676 | break; |
1677 | case PCI_DEVICE_ID_DIGI32_PRO: | 1677 | case PCI_DEVICE_ID_RME_DIGI32_PRO: |
1678 | items = 4; | 1678 | items = 4; |
1679 | break; | 1679 | break; |
1680 | default: | 1680 | default: |
@@ -1697,11 +1697,11 @@ snd_rme32_put_inputtype_control(snd_kcontrol_t * kcontrol, | |||
1697 | int change, items = 3; | 1697 | int change, items = 3; |
1698 | 1698 | ||
1699 | switch (rme32->pci->device) { | 1699 | switch (rme32->pci->device) { |
1700 | case PCI_DEVICE_ID_DIGI32: | 1700 | case PCI_DEVICE_ID_RME_DIGI32: |
1701 | case PCI_DEVICE_ID_DIGI32_8: | 1701 | case PCI_DEVICE_ID_RME_DIGI32_8: |
1702 | items = 3; | 1702 | items = 3; |
1703 | break; | 1703 | break; |
1704 | case PCI_DEVICE_ID_DIGI32_PRO: | 1704 | case PCI_DEVICE_ID_RME_DIGI32_PRO: |
1705 | items = 4; | 1705 | items = 4; |
1706 | break; | 1706 | break; |
1707 | default: | 1707 | default: |
@@ -1982,13 +1982,13 @@ snd_rme32_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) | |||
1982 | 1982 | ||
1983 | strcpy(card->driver, "Digi32"); | 1983 | strcpy(card->driver, "Digi32"); |
1984 | switch (rme32->pci->device) { | 1984 | switch (rme32->pci->device) { |
1985 | case PCI_DEVICE_ID_DIGI32: | 1985 | case PCI_DEVICE_ID_RME_DIGI32: |
1986 | strcpy(card->shortname, "RME Digi32"); | 1986 | strcpy(card->shortname, "RME Digi32"); |
1987 | break; | 1987 | break; |
1988 | case PCI_DEVICE_ID_DIGI32_8: | 1988 | case PCI_DEVICE_ID_RME_DIGI32_8: |
1989 | strcpy(card->shortname, "RME Digi32/8"); | 1989 | strcpy(card->shortname, "RME Digi32/8"); |
1990 | break; | 1990 | break; |
1991 | case PCI_DEVICE_ID_DIGI32_PRO: | 1991 | case PCI_DEVICE_ID_RME_DIGI32_PRO: |
1992 | strcpy(card->shortname, "RME Digi32 PRO"); | 1992 | strcpy(card->shortname, "RME Digi32 PRO"); |
1993 | break; | 1993 | break; |
1994 | } | 1994 | } |
diff --git a/sound/pci/rme96.c b/sound/pci/rme96.c index 9983b66dc564..c495cae78dbf 100644 --- a/sound/pci/rme96.c +++ b/sound/pci/rme96.c | |||
@@ -233,13 +233,13 @@ typedef struct snd_rme96 { | |||
233 | } rme96_t; | 233 | } rme96_t; |
234 | 234 | ||
235 | static struct pci_device_id snd_rme96_ids[] = { | 235 | static struct pci_device_id snd_rme96_ids[] = { |
236 | { PCI_VENDOR_ID_XILINX, PCI_DEVICE_ID_DIGI96, | 236 | { PCI_VENDOR_ID_XILINX, PCI_DEVICE_ID_RME_DIGI96, |
237 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, | 237 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, |
238 | { PCI_VENDOR_ID_XILINX, PCI_DEVICE_ID_DIGI96_8, | 238 | { PCI_VENDOR_ID_XILINX, PCI_DEVICE_ID_RME_DIGI96_8, |
239 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, | 239 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, |
240 | { PCI_VENDOR_ID_XILINX, PCI_DEVICE_ID_DIGI96_8_PRO, | 240 | { PCI_VENDOR_ID_XILINX, PCI_DEVICE_ID_RME_DIGI96_8_PRO, |
241 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, | 241 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, |
242 | { PCI_VENDOR_ID_XILINX, PCI_DEVICE_ID_DIGI96_8_PAD_OR_PST, | 242 | { PCI_VENDOR_ID_XILINX, PCI_DEVICE_ID_RME_DIGI96_8_PAD_OR_PST, |
243 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, | 243 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, |
244 | { 0, } | 244 | { 0, } |
245 | }; | 245 | }; |
@@ -248,12 +248,12 @@ MODULE_DEVICE_TABLE(pci, snd_rme96_ids); | |||
248 | 248 | ||
249 | #define RME96_ISPLAYING(rme96) ((rme96)->wcreg & RME96_WCR_START) | 249 | #define RME96_ISPLAYING(rme96) ((rme96)->wcreg & RME96_WCR_START) |
250 | #define RME96_ISRECORDING(rme96) ((rme96)->wcreg & RME96_WCR_START_2) | 250 | #define RME96_ISRECORDING(rme96) ((rme96)->wcreg & RME96_WCR_START_2) |
251 | #define RME96_HAS_ANALOG_IN(rme96) ((rme96)->pci->device == PCI_DEVICE_ID_DIGI96_8_PAD_OR_PST) | 251 | #define RME96_HAS_ANALOG_IN(rme96) ((rme96)->pci->device == PCI_DEVICE_ID_RME_DIGI96_8_PAD_OR_PST) |
252 | #define RME96_HAS_ANALOG_OUT(rme96) ((rme96)->pci->device == PCI_DEVICE_ID_DIGI96_8_PRO || \ | 252 | #define RME96_HAS_ANALOG_OUT(rme96) ((rme96)->pci->device == PCI_DEVICE_ID_RME_DIGI96_8_PRO || \ |
253 | (rme96)->pci->device == PCI_DEVICE_ID_DIGI96_8_PAD_OR_PST) | 253 | (rme96)->pci->device == PCI_DEVICE_ID_RME_DIGI96_8_PAD_OR_PST) |
254 | #define RME96_DAC_IS_1852(rme96) (RME96_HAS_ANALOG_OUT(rme96) && (rme96)->rev >= 4) | 254 | #define RME96_DAC_IS_1852(rme96) (RME96_HAS_ANALOG_OUT(rme96) && (rme96)->rev >= 4) |
255 | #define RME96_DAC_IS_1855(rme96) (((rme96)->pci->device == PCI_DEVICE_ID_DIGI96_8_PAD_OR_PST && (rme96)->rev < 4) || \ | 255 | #define RME96_DAC_IS_1855(rme96) (((rme96)->pci->device == PCI_DEVICE_ID_RME_DIGI96_8_PAD_OR_PST && (rme96)->rev < 4) || \ |
256 | ((rme96)->pci->device == PCI_DEVICE_ID_DIGI96_8_PRO && (rme96)->rev == 2)) | 256 | ((rme96)->pci->device == PCI_DEVICE_ID_RME_DIGI96_8_PRO && (rme96)->rev == 2)) |
257 | #define RME96_185X_MAX_OUT(rme96) ((1 << (RME96_DAC_IS_1852(rme96) ? RME96_AD1852_VOL_BITS : RME96_AD1855_VOL_BITS)) - 1) | 257 | #define RME96_185X_MAX_OUT(rme96) ((1 << (RME96_DAC_IS_1852(rme96) ? RME96_AD1852_VOL_BITS : RME96_AD1855_VOL_BITS)) - 1) |
258 | 258 | ||
259 | static int | 259 | static int |
@@ -830,9 +830,9 @@ snd_rme96_setinputtype(rme96_t *rme96, | |||
830 | RME96_WCR_INP_1; | 830 | RME96_WCR_INP_1; |
831 | break; | 831 | break; |
832 | case RME96_INPUT_XLR: | 832 | case RME96_INPUT_XLR: |
833 | if ((rme96->pci->device != PCI_DEVICE_ID_DIGI96_8_PAD_OR_PST && | 833 | if ((rme96->pci->device != PCI_DEVICE_ID_RME_DIGI96_8_PAD_OR_PST && |
834 | rme96->pci->device != PCI_DEVICE_ID_DIGI96_8_PRO) || | 834 | rme96->pci->device != PCI_DEVICE_ID_RME_DIGI96_8_PRO) || |
835 | (rme96->pci->device == PCI_DEVICE_ID_DIGI96_8_PAD_OR_PST && | 835 | (rme96->pci->device == PCI_DEVICE_ID_RME_DIGI96_8_PAD_OR_PST && |
836 | rme96->rev > 4)) | 836 | rme96->rev > 4)) |
837 | { | 837 | { |
838 | /* Only Digi96/8 PRO and Digi96/8 PAD supports XLR */ | 838 | /* Only Digi96/8 PRO and Digi96/8 PAD supports XLR */ |
@@ -1598,7 +1598,7 @@ snd_rme96_create(rme96_t *rme96) | |||
1598 | rme96->spdif_pcm->info_flags = 0; | 1598 | rme96->spdif_pcm->info_flags = 0; |
1599 | 1599 | ||
1600 | /* set up ALSA pcm device for ADAT */ | 1600 | /* set up ALSA pcm device for ADAT */ |
1601 | if (pci->device == PCI_DEVICE_ID_DIGI96) { | 1601 | if (pci->device == PCI_DEVICE_ID_RME_DIGI96) { |
1602 | /* ADAT is not available on the base model */ | 1602 | /* ADAT is not available on the base model */ |
1603 | rme96->adat_pcm = NULL; | 1603 | rme96->adat_pcm = NULL; |
1604 | } else { | 1604 | } else { |
@@ -1858,14 +1858,14 @@ snd_rme96_info_inputtype_control(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * | |||
1858 | uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; | 1858 | uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; |
1859 | uinfo->count = 1; | 1859 | uinfo->count = 1; |
1860 | switch (rme96->pci->device) { | 1860 | switch (rme96->pci->device) { |
1861 | case PCI_DEVICE_ID_DIGI96: | 1861 | case PCI_DEVICE_ID_RME_DIGI96: |
1862 | case PCI_DEVICE_ID_DIGI96_8: | 1862 | case PCI_DEVICE_ID_RME_DIGI96_8: |
1863 | uinfo->value.enumerated.items = 3; | 1863 | uinfo->value.enumerated.items = 3; |
1864 | break; | 1864 | break; |
1865 | case PCI_DEVICE_ID_DIGI96_8_PRO: | 1865 | case PCI_DEVICE_ID_RME_DIGI96_8_PRO: |
1866 | uinfo->value.enumerated.items = 4; | 1866 | uinfo->value.enumerated.items = 4; |
1867 | break; | 1867 | break; |
1868 | case PCI_DEVICE_ID_DIGI96_8_PAD_OR_PST: | 1868 | case PCI_DEVICE_ID_RME_DIGI96_8_PAD_OR_PST: |
1869 | if (rme96->rev > 4) { | 1869 | if (rme96->rev > 4) { |
1870 | /* PST */ | 1870 | /* PST */ |
1871 | uinfo->value.enumerated.items = 4; | 1871 | uinfo->value.enumerated.items = 4; |
@@ -1895,14 +1895,14 @@ snd_rme96_get_inputtype_control(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t | |||
1895 | ucontrol->value.enumerated.item[0] = snd_rme96_getinputtype(rme96); | 1895 | ucontrol->value.enumerated.item[0] = snd_rme96_getinputtype(rme96); |
1896 | 1896 | ||
1897 | switch (rme96->pci->device) { | 1897 | switch (rme96->pci->device) { |
1898 | case PCI_DEVICE_ID_DIGI96: | 1898 | case PCI_DEVICE_ID_RME_DIGI96: |
1899 | case PCI_DEVICE_ID_DIGI96_8: | 1899 | case PCI_DEVICE_ID_RME_DIGI96_8: |
1900 | items = 3; | 1900 | items = 3; |
1901 | break; | 1901 | break; |
1902 | case PCI_DEVICE_ID_DIGI96_8_PRO: | 1902 | case PCI_DEVICE_ID_RME_DIGI96_8_PRO: |
1903 | items = 4; | 1903 | items = 4; |
1904 | break; | 1904 | break; |
1905 | case PCI_DEVICE_ID_DIGI96_8_PAD_OR_PST: | 1905 | case PCI_DEVICE_ID_RME_DIGI96_8_PAD_OR_PST: |
1906 | if (rme96->rev > 4) { | 1906 | if (rme96->rev > 4) { |
1907 | /* for handling PST case, (INPUT_ANALOG is moved to INPUT_XLR */ | 1907 | /* for handling PST case, (INPUT_ANALOG is moved to INPUT_XLR */ |
1908 | if (ucontrol->value.enumerated.item[0] == RME96_INPUT_ANALOG) { | 1908 | if (ucontrol->value.enumerated.item[0] == RME96_INPUT_ANALOG) { |
@@ -1932,14 +1932,14 @@ snd_rme96_put_inputtype_control(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t | |||
1932 | int change, items = 3; | 1932 | int change, items = 3; |
1933 | 1933 | ||
1934 | switch (rme96->pci->device) { | 1934 | switch (rme96->pci->device) { |
1935 | case PCI_DEVICE_ID_DIGI96: | 1935 | case PCI_DEVICE_ID_RME_DIGI96: |
1936 | case PCI_DEVICE_ID_DIGI96_8: | 1936 | case PCI_DEVICE_ID_RME_DIGI96_8: |
1937 | items = 3; | 1937 | items = 3; |
1938 | break; | 1938 | break; |
1939 | case PCI_DEVICE_ID_DIGI96_8_PRO: | 1939 | case PCI_DEVICE_ID_RME_DIGI96_8_PRO: |
1940 | items = 4; | 1940 | items = 4; |
1941 | break; | 1941 | break; |
1942 | case PCI_DEVICE_ID_DIGI96_8_PAD_OR_PST: | 1942 | case PCI_DEVICE_ID_RME_DIGI96_8_PAD_OR_PST: |
1943 | if (rme96->rev > 4) { | 1943 | if (rme96->rev > 4) { |
1944 | items = 4; | 1944 | items = 4; |
1945 | } else { | 1945 | } else { |
@@ -1953,7 +1953,7 @@ snd_rme96_put_inputtype_control(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t | |||
1953 | val = ucontrol->value.enumerated.item[0] % items; | 1953 | val = ucontrol->value.enumerated.item[0] % items; |
1954 | 1954 | ||
1955 | /* special case for PST */ | 1955 | /* special case for PST */ |
1956 | if (rme96->pci->device == PCI_DEVICE_ID_DIGI96_8_PAD_OR_PST && rme96->rev > 4) { | 1956 | if (rme96->pci->device == PCI_DEVICE_ID_RME_DIGI96_8_PAD_OR_PST && rme96->rev > 4) { |
1957 | if (val == RME96_INPUT_XLR) { | 1957 | if (val == RME96_INPUT_XLR) { |
1958 | val = RME96_INPUT_ANALOG; | 1958 | val = RME96_INPUT_ANALOG; |
1959 | } | 1959 | } |
@@ -2375,16 +2375,16 @@ snd_rme96_probe(struct pci_dev *pci, | |||
2375 | 2375 | ||
2376 | strcpy(card->driver, "Digi96"); | 2376 | strcpy(card->driver, "Digi96"); |
2377 | switch (rme96->pci->device) { | 2377 | switch (rme96->pci->device) { |
2378 | case PCI_DEVICE_ID_DIGI96: | 2378 | case PCI_DEVICE_ID_RME_DIGI96: |
2379 | strcpy(card->shortname, "RME Digi96"); | 2379 | strcpy(card->shortname, "RME Digi96"); |
2380 | break; | 2380 | break; |
2381 | case PCI_DEVICE_ID_DIGI96_8: | 2381 | case PCI_DEVICE_ID_RME_DIGI96_8: |
2382 | strcpy(card->shortname, "RME Digi96/8"); | 2382 | strcpy(card->shortname, "RME Digi96/8"); |
2383 | break; | 2383 | break; |
2384 | case PCI_DEVICE_ID_DIGI96_8_PRO: | 2384 | case PCI_DEVICE_ID_RME_DIGI96_8_PRO: |
2385 | strcpy(card->shortname, "RME Digi96/8 PRO"); | 2385 | strcpy(card->shortname, "RME Digi96/8 PRO"); |
2386 | break; | 2386 | break; |
2387 | case PCI_DEVICE_ID_DIGI96_8_PAD_OR_PST: | 2387 | case PCI_DEVICE_ID_RME_DIGI96_8_PAD_OR_PST: |
2388 | pci_read_config_byte(rme96->pci, 8, &val); | 2388 | pci_read_config_byte(rme96->pci, 8, &val); |
2389 | if (val < 5) { | 2389 | if (val < 5) { |
2390 | strcpy(card->shortname, "RME Digi96/8 PAD"); | 2390 | strcpy(card->shortname, "RME Digi96/8 PAD"); |