aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Bollinger <bollinger@digigram.com>2012-08-24 08:54:57 -0400
committerTakashi Iwai <tiwai@suse.de>2012-08-27 10:10:29 -0400
commit8c3f1b1cbc32d1fa899e3bd9edf427f0f2e7a843 (patch)
tree0a2b5c00ec8165bf50a19c7c1e4112a0529a93d5
parent56244d0868f48f233d1735541e7da3fd33434b3d (diff)
ALSA: pcxhr: Add 8 new sound cards
add new sound cards VX442HR VX442e PCX442HR PCX442e VX822HR VX822e PCX822HR and PCX822e Signed-off-by: Markus Bollinger <bollinger@digigram.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/pci/pcxhr/pcxhr.c24
-rw-r--r--sound/pci/pcxhr/pcxhr_hwdep.c6
2 files changed, 27 insertions, 3 deletions
diff --git a/sound/pci/pcxhr/pcxhr.c b/sound/pci/pcxhr/pcxhr.c
index e3ac1f768ff6..be4f1456009a 100644
--- a/sound/pci/pcxhr/pcxhr.c
+++ b/sound/pci/pcxhr/pcxhr.c
@@ -91,6 +91,14 @@ enum {
91 PCI_ID_PCX924E, 91 PCI_ID_PCX924E,
92 PCI_ID_PCX924HRMIC, 92 PCI_ID_PCX924HRMIC,
93 PCI_ID_PCX924E_MIC, 93 PCI_ID_PCX924E_MIC,
94 PCI_ID_VX442HR,
95 PCI_ID_PCX442HR,
96 PCI_ID_VX442E,
97 PCI_ID_PCX442E,
98 PCI_ID_VX822HR,
99 PCI_ID_PCX822HR,
100 PCI_ID_VX822E,
101 PCI_ID_PCX822E,
94 PCI_ID_LAST 102 PCI_ID_LAST
95}; 103};
96 104
@@ -121,6 +129,14 @@ static DEFINE_PCI_DEVICE_TABLE(pcxhr_ids) = {
121 { 0x10b5, 0x9056, 0x1369, 0xbb21, 0, 0, PCI_ID_PCX924E, }, 129 { 0x10b5, 0x9056, 0x1369, 0xbb21, 0, 0, PCI_ID_PCX924E, },
122 { 0x10b5, 0x9056, 0x1369, 0xbf01, 0, 0, PCI_ID_PCX924HRMIC, }, 130 { 0x10b5, 0x9056, 0x1369, 0xbf01, 0, 0, PCI_ID_PCX924HRMIC, },
123 { 0x10b5, 0x9056, 0x1369, 0xbf21, 0, 0, PCI_ID_PCX924E_MIC, }, 131 { 0x10b5, 0x9056, 0x1369, 0xbf21, 0, 0, PCI_ID_PCX924E_MIC, },
132 { 0x10b5, 0x9656, 0x1369, 0xd001, 0, 0, PCI_ID_VX442HR, },
133 { 0x10b5, 0x9656, 0x1369, 0xd101, 0, 0, PCI_ID_PCX442HR, },
134 { 0x10b5, 0x9056, 0x1369, 0xd021, 0, 0, PCI_ID_VX442E, },
135 { 0x10b5, 0x9056, 0x1369, 0xd121, 0, 0, PCI_ID_PCX442E, },
136 { 0x10b5, 0x9656, 0x1369, 0xd201, 0, 0, PCI_ID_VX822HR, },
137 { 0x10b5, 0x9656, 0x1369, 0xd301, 0, 0, PCI_ID_PCX822HR, },
138 { 0x10b5, 0x9056, 0x1369, 0xd221, 0, 0, PCI_ID_VX822E, },
139 { 0x10b5, 0x9056, 0x1369, 0xd321, 0, 0, PCI_ID_PCX822E, },
124 { 0, } 140 { 0, }
125}; 141};
126 142
@@ -160,6 +176,14 @@ static struct board_parameters pcxhr_board_params[] = {
160[PCI_ID_PCX924E] = { "PCX924e", 1, 1, 5, 44 }, 176[PCI_ID_PCX924E] = { "PCX924e", 1, 1, 5, 44 },
161[PCI_ID_PCX924HRMIC] = { "PCX924HR-Mic", 1, 1, 5, 44 }, 177[PCI_ID_PCX924HRMIC] = { "PCX924HR-Mic", 1, 1, 5, 44 },
162[PCI_ID_PCX924E_MIC] = { "PCX924e-Mic", 1, 1, 5, 44 }, 178[PCI_ID_PCX924E_MIC] = { "PCX924e-Mic", 1, 1, 5, 44 },
179[PCI_ID_VX442HR] = { "VX442HR", 2, 2, 0, 41 },
180[PCI_ID_PCX442HR] = { "PCX442HR", 2, 2, 0, 41 },
181[PCI_ID_VX442E] = { "VX442e", 2, 2, 1, 41 },
182[PCI_ID_PCX442E] = { "PCX442e", 2, 2, 1, 41 },
183[PCI_ID_VX822HR] = { "VX822HR", 4, 1, 2, 42 },
184[PCI_ID_PCX822HR] = { "PCX822HR", 4, 1, 2, 42 },
185[PCI_ID_VX822E] = { "VX822e", 4, 1, 3, 42 },
186[PCI_ID_PCX822E] = { "PCX822e", 4, 1, 3, 42 },
163}; 187};
164 188
165/* boards without hw AES1 and SRC onboard are all using fw_file_set==4 */ 189/* boards without hw AES1 and SRC onboard are all using fw_file_set==4 */
diff --git a/sound/pci/pcxhr/pcxhr_hwdep.c b/sound/pci/pcxhr/pcxhr_hwdep.c
index ec1587cddb0c..bf207e317f71 100644
--- a/sound/pci/pcxhr/pcxhr_hwdep.c
+++ b/sound/pci/pcxhr/pcxhr_hwdep.c
@@ -66,10 +66,10 @@ static int pcxhr_init_board(struct pcxhr_mgr *mgr)
66 err = pcxhr_send_msg(mgr, &rmh); 66 err = pcxhr_send_msg(mgr, &rmh);
67 if (err) 67 if (err)
68 return err; 68 return err;
69 /* test 8 or 12 phys out */ 69 /* test 4, 8 or 12 phys out */
70 if ((rmh.stat[0] & MASK_FIRST_FIELD) != mgr->playback_chips * 2) 70 if ((rmh.stat[0] & MASK_FIRST_FIELD) < mgr->playback_chips * 2)
71 return -EINVAL; 71 return -EINVAL;
72 /* test 8 or 2 phys in */ 72 /* test 4, 8 or 2 phys in */
73 if (((rmh.stat[0] >> (2 * FIELD_SIZE)) & MASK_FIRST_FIELD) < 73 if (((rmh.stat[0] >> (2 * FIELD_SIZE)) & MASK_FIRST_FIELD) <
74 mgr->capture_chips * 2) 74 mgr->capture_chips * 2)
75 return -EINVAL; 75 return -EINVAL;