Lines Matching +full:invert +full:- +full:enable

1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * -----
10 * -----
20 * D7-D5: version
21 * D4-D0: chip id
22 * 11101 - CS4235
23 * 01011 - CS4236B
24 * 01000 - CS4237B
25 * 01001 - CS4238B
26 * 11110 - CS4239
29 * D7-D4: 3D Space (CS4235,CS4237B,CS4238B,CS4239)
30 * D3-D0: 3D Center (CS4237B); 3D Volume (CS4238B)
33 * D7: 3D Enable (CS4237B)
34 * D6: 3D Mono Enable (CS4237B)
36 * D4: 3D Enable (CS4235,CS4238B,CS4239)
39 * D7: consumer serial port enable (CS4237B,CS4238B)
41 * D5: user bit in sub-frame of digital audio data (CS4237B,CS4238B)
42 * D4: validity bit in sub-frame of digital audio data (CS4237B,CS4238B)
45 * D7-D6: first two bits of category code
47 * D4-D3: pre-emphasis (0 = none, 1 = 50/15us)
49 * D1: 0 = digital audio / 1 = non-digital audio
52 * D7-D6: sample frequency (0 = 44.1kHz)
54 * D4-D0: category code (upper bits)
59 * D7: volume control interrupt enable (CS4235,CS4239)
61 * D3: wavetable serial port enable (all chips)
111 outb(reg, chip->cport + 3); in snd_cs4236_ctrl_out()
112 outb(chip->cimage[reg] = val, chip->cport + 4); in snd_cs4236_ctrl_out()
117 outb(reg, chip->cport + 3); in snd_cs4236_ctrl_in()
118 return inb(chip->cport + 4); in snd_cs4236_ctrl_in()
173 unsigned char rate = divisor_to_rate_register(params->rate_den); in snd_cs4236_playback_format()
175 spin_lock_irqsave(&chip->reg_lock, flags); in snd_cs4236_playback_format()
178 chip->image[CS4231_ALT_FEATURE_1] | 0x10); in snd_cs4236_playback_format()
181 chip->image[CS4231_ALT_FEATURE_1] & ~0x10); in snd_cs4236_playback_format()
183 spin_unlock_irqrestore(&chip->reg_lock, flags); in snd_cs4236_playback_format()
191 unsigned char rate = divisor_to_rate_register(params->rate_den); in snd_cs4236_capture_format()
193 spin_lock_irqsave(&chip->reg_lock, flags); in snd_cs4236_capture_format()
196 chip->image[CS4231_ALT_FEATURE_1] | 0x20); in snd_cs4236_capture_format()
199 chip->image[CS4231_ALT_FEATURE_1] & ~0x20); in snd_cs4236_capture_format()
201 spin_unlock_irqrestore(&chip->reg_lock, flags); in snd_cs4236_capture_format()
211 spin_lock_irqsave(&chip->reg_lock, flags); in snd_cs4236_suspend()
213 chip->image[reg] = snd_wss_in(chip, reg); in snd_cs4236_suspend()
215 chip->eimage[reg] = snd_cs4236_ext_in(chip, CS4236_I23VAL(reg)); in snd_cs4236_suspend()
217 chip->cimage[reg] = snd_cs4236_ctrl_in(chip, reg); in snd_cs4236_suspend()
218 spin_unlock_irqrestore(&chip->reg_lock, flags); in snd_cs4236_suspend()
227 spin_lock_irqsave(&chip->reg_lock, flags); in snd_cs4236_resume()
232 case 27: /* why? CS4235 - master left */ in snd_cs4236_resume()
233 case 29: /* why? CS4235 - master right */ in snd_cs4236_resume()
236 snd_wss_out(chip, reg, chip->image[reg]); in snd_cs4236_resume()
241 snd_cs4236_ext_out(chip, CS4236_I23VAL(reg), chip->eimage[reg]); in snd_cs4236_resume()
247 snd_cs4236_ctrl_out(chip, reg, chip->cimage[reg]); in snd_cs4236_resume()
250 spin_unlock_irqrestore(&chip->reg_lock, flags); in snd_cs4236_resume()
281 if ((chip->hardware & WSS_HW_CS4236B_MASK) == 0) { in snd_cs4236_create()
283 chip->hardware); in snd_cs4236_create()
292 idx, inb(chip->cport + idx)); in snd_cs4236_create()
302 return -ENODEV; in snd_cs4236_create()
312 return -ENODEV; in snd_cs4236_create()
324 * 0x8c for C8 is valid for Turtle Beach Malibu - the IEC-958 in snd_cs4236_create()
330 chip->rate_constraint = snd_cs4236_xrate; in snd_cs4236_create()
331 chip->set_playback_format = snd_cs4236_playback_format; in snd_cs4236_create()
332 chip->set_capture_format = snd_cs4236_capture_format; in snd_cs4236_create()
334 chip->suspend = snd_cs4236_suspend; in snd_cs4236_create()
335 chip->resume = snd_cs4236_resume; in snd_cs4236_create()
353 switch (chip->hardware) { in snd_cs4236_create()
372 chip->pcm->info_flags &= ~SNDRV_PCM_INFO_JOINT_DUPLEX; in snd_cs4236_pcm()
380 #define CS4236_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument
384 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
386 #define CS4236_SINGLE_TLV(xname, xindex, reg, shift, mask, invert, xtlv) \ argument
391 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24), \
396 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_info_single()
398 uinfo->type = mask == 1 ? SNDRV_CTL_ELEM_TYPE_BOOLEAN : SNDRV_CTL_ELEM_TYPE_INTEGER; in snd_cs4236_info_single()
399 uinfo->count = 1; in snd_cs4236_info_single()
400 uinfo->value.integer.min = 0; in snd_cs4236_info_single()
401 uinfo->value.integer.max = mask; in snd_cs4236_info_single()
409 int reg = kcontrol->private_value & 0xff; in snd_cs4236_get_single()
410 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_get_single()
411 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_get_single()
412 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_get_single() local
414 spin_lock_irqsave(&chip->reg_lock, flags); in snd_cs4236_get_single()
415 ucontrol->value.integer.value[0] = (chip->eimage[CS4236_REG(reg)] >> shift) & mask; in snd_cs4236_get_single()
416 spin_unlock_irqrestore(&chip->reg_lock, flags); in snd_cs4236_get_single()
417 if (invert) in snd_cs4236_get_single()
418 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_cs4236_get_single()
426 int reg = kcontrol->private_value & 0xff; in snd_cs4236_put_single()
427 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_put_single()
428 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_put_single()
429 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_put_single() local
433 val = (ucontrol->value.integer.value[0] & mask); in snd_cs4236_put_single()
434 if (invert) in snd_cs4236_put_single()
435 val = mask - val; in snd_cs4236_put_single()
437 spin_lock_irqsave(&chip->reg_lock, flags); in snd_cs4236_put_single()
438 val = (chip->eimage[CS4236_REG(reg)] & ~(mask << shift)) | val; in snd_cs4236_put_single()
439 change = val != chip->eimage[CS4236_REG(reg)]; in snd_cs4236_put_single()
441 spin_unlock_irqrestore(&chip->reg_lock, flags); in snd_cs4236_put_single()
445 #define CS4236_SINGLEC(xname, xindex, reg, shift, mask, invert) \ argument
449 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
455 int reg = kcontrol->private_value & 0xff; in snd_cs4236_get_singlec()
456 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_get_singlec()
457 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_get_singlec()
458 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_get_singlec() local
460 spin_lock_irqsave(&chip->reg_lock, flags); in snd_cs4236_get_singlec()
461 ucontrol->value.integer.value[0] = (chip->cimage[reg] >> shift) & mask; in snd_cs4236_get_singlec()
462 spin_unlock_irqrestore(&chip->reg_lock, flags); in snd_cs4236_get_singlec()
463 if (invert) in snd_cs4236_get_singlec()
464 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_cs4236_get_singlec()
472 int reg = kcontrol->private_value & 0xff; in snd_cs4236_put_singlec()
473 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_put_singlec()
474 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_put_singlec()
475 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_put_singlec() local
479 val = (ucontrol->value.integer.value[0] & mask); in snd_cs4236_put_singlec()
480 if (invert) in snd_cs4236_put_singlec()
481 val = mask - val; in snd_cs4236_put_singlec()
483 spin_lock_irqsave(&chip->reg_lock, flags); in snd_cs4236_put_singlec()
484 val = (chip->cimage[reg] & ~(mask << shift)) | val; in snd_cs4236_put_singlec()
485 change = val != chip->cimage[reg]; in snd_cs4236_put_singlec()
487 spin_unlock_irqrestore(&chip->reg_lock, flags); in snd_cs4236_put_singlec()
491 #define CS4236_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ argument
495 …reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask << 24) | (invert << 22) }
498 shift_right, mask, invert, xtlv) \ argument
504 (shift_right << 19) | (mask << 24) | (invert << 22), \
509 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_info_double()
511 uinfo->type = mask == 1 ? SNDRV_CTL_ELEM_TYPE_BOOLEAN : SNDRV_CTL_ELEM_TYPE_INTEGER; in snd_cs4236_info_double()
512 uinfo->count = 2; in snd_cs4236_info_double()
513 uinfo->value.integer.min = 0; in snd_cs4236_info_double()
514 uinfo->value.integer.max = mask; in snd_cs4236_info_double()
522 int left_reg = kcontrol->private_value & 0xff; in snd_cs4236_get_double()
523 int right_reg = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_get_double()
524 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_cs4236_get_double()
525 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_cs4236_get_double()
526 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_get_double()
527 int invert = (kcontrol->private_value >> 22) & 1; in snd_cs4236_get_double() local
529 spin_lock_irqsave(&chip->reg_lock, flags); in snd_cs4236_get_double()
530 ucontrol->value.integer.value[0] = (chip->eimage[CS4236_REG(left_reg)] >> shift_left) & mask; in snd_cs4236_get_double()
531 ucontrol->value.integer.value[1] = (chip->eimage[CS4236_REG(right_reg)] >> shift_right) & mask; in snd_cs4236_get_double()
532 spin_unlock_irqrestore(&chip->reg_lock, flags); in snd_cs4236_get_double()
533 if (invert) { in snd_cs4236_get_double()
534 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_cs4236_get_double()
535 ucontrol->value.integer.value[1] = mask - ucontrol->value.integer.value[1]; in snd_cs4236_get_double()
544 int left_reg = kcontrol->private_value & 0xff; in snd_cs4236_put_double()
545 int right_reg = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_put_double()
546 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_cs4236_put_double()
547 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_cs4236_put_double()
548 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_put_double()
549 int invert = (kcontrol->private_value >> 22) & 1; in snd_cs4236_put_double() local
553 val1 = ucontrol->value.integer.value[0] & mask; in snd_cs4236_put_double()
554 val2 = ucontrol->value.integer.value[1] & mask; in snd_cs4236_put_double()
555 if (invert) { in snd_cs4236_put_double()
556 val1 = mask - val1; in snd_cs4236_put_double()
557 val2 = mask - val2; in snd_cs4236_put_double()
561 spin_lock_irqsave(&chip->reg_lock, flags); in snd_cs4236_put_double()
563 val1 = (chip->eimage[CS4236_REG(left_reg)] & ~(mask << shift_left)) | val1; in snd_cs4236_put_double()
564 val2 = (chip->eimage[CS4236_REG(right_reg)] & ~(mask << shift_right)) | val2; in snd_cs4236_put_double()
565 …change = val1 != chip->eimage[CS4236_REG(left_reg)] || val2 != chip->eimage[CS4236_REG(right_reg)]; in snd_cs4236_put_double()
569 …val1 = (chip->eimage[CS4236_REG(left_reg)] & ~((mask << shift_left) | (mask << shift_right))) | va… in snd_cs4236_put_double()
570 change = val1 != chip->eimage[CS4236_REG(left_reg)]; in snd_cs4236_put_double()
573 spin_unlock_irqrestore(&chip->reg_lock, flags); in snd_cs4236_put_double()
578 shift_right, mask, invert) \ argument
582 …reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask << 24) | (invert << 22) }
585 shift_right, mask, invert, xtlv) \ argument
591 (shift_right << 19) | (mask << 24) | (invert << 22), \
598 int left_reg = kcontrol->private_value & 0xff; in snd_cs4236_get_double1()
599 int right_reg = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_get_double1()
600 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_cs4236_get_double1()
601 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_cs4236_get_double1()
602 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_get_double1()
603 int invert = (kcontrol->private_value >> 22) & 1; in snd_cs4236_get_double1() local
605 spin_lock_irqsave(&chip->reg_lock, flags); in snd_cs4236_get_double1()
606 ucontrol->value.integer.value[0] = (chip->image[left_reg] >> shift_left) & mask; in snd_cs4236_get_double1()
607 ucontrol->value.integer.value[1] = (chip->eimage[CS4236_REG(right_reg)] >> shift_right) & mask; in snd_cs4236_get_double1()
608 spin_unlock_irqrestore(&chip->reg_lock, flags); in snd_cs4236_get_double1()
609 if (invert) { in snd_cs4236_get_double1()
610 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_cs4236_get_double1()
611 ucontrol->value.integer.value[1] = mask - ucontrol->value.integer.value[1]; in snd_cs4236_get_double1()
620 int left_reg = kcontrol->private_value & 0xff; in snd_cs4236_put_double1()
621 int right_reg = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_put_double1()
622 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_cs4236_put_double1()
623 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_cs4236_put_double1()
624 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_put_double1()
625 int invert = (kcontrol->private_value >> 22) & 1; in snd_cs4236_put_double1() local
629 val1 = ucontrol->value.integer.value[0] & mask; in snd_cs4236_put_double1()
630 val2 = ucontrol->value.integer.value[1] & mask; in snd_cs4236_put_double1()
631 if (invert) { in snd_cs4236_put_double1()
632 val1 = mask - val1; in snd_cs4236_put_double1()
633 val2 = mask - val2; in snd_cs4236_put_double1()
637 spin_lock_irqsave(&chip->reg_lock, flags); in snd_cs4236_put_double1()
638 val1 = (chip->image[left_reg] & ~(mask << shift_left)) | val1; in snd_cs4236_put_double1()
639 val2 = (chip->eimage[CS4236_REG(right_reg)] & ~(mask << shift_right)) | val2; in snd_cs4236_put_double1()
640 change = val1 != chip->image[left_reg] || val2 != chip->eimage[CS4236_REG(right_reg)]; in snd_cs4236_put_double1()
643 spin_unlock_irqrestore(&chip->reg_lock, flags); in snd_cs4236_put_double1()
657 return (vol < 64) ? 63 - vol : 64 + (71 - vol); in snd_cs4236_mixer_master_digital_invert_volume()
665 spin_lock_irqsave(&chip->reg_lock, flags); in snd_cs4236_get_master_digital()
666 …ucontrol->value.integer.value[0] = snd_cs4236_mixer_master_digital_invert_volume(chip->eimage[CS42… in snd_cs4236_get_master_digital()
667 …ucontrol->value.integer.value[1] = snd_cs4236_mixer_master_digital_invert_volume(chip->eimage[CS42… in snd_cs4236_get_master_digital()
668 spin_unlock_irqrestore(&chip->reg_lock, flags); in snd_cs4236_get_master_digital()
679 val1 = snd_cs4236_mixer_master_digital_invert_volume(ucontrol->value.integer.value[0] & 0x7f); in snd_cs4236_put_master_digital()
680 val2 = snd_cs4236_mixer_master_digital_invert_volume(ucontrol->value.integer.value[1] & 0x7f); in snd_cs4236_put_master_digital()
681 spin_lock_irqsave(&chip->reg_lock, flags); in snd_cs4236_put_master_digital()
682 val1 = (chip->eimage[CS4236_REG(CS4236_LEFT_MASTER)] & ~0x7f) | val1; in snd_cs4236_put_master_digital()
683 val2 = (chip->eimage[CS4236_REG(CS4236_RIGHT_MASTER)] & ~0x7f) | val2; in snd_cs4236_put_master_digital()
684 …change = val1 != chip->eimage[CS4236_REG(CS4236_LEFT_MASTER)] || val2 != chip->eimage[CS4236_REG(C… in snd_cs4236_put_master_digital()
687 spin_unlock_irqrestore(&chip->reg_lock, flags); in snd_cs4236_put_master_digital()
726 spin_lock_irqsave(&chip->reg_lock, flags); in snd_cs4235_get_output_accu()
727 …ucontrol->value.integer.value[0] = snd_cs4235_mixer_output_accu_get_volume(chip->image[CS4235_LEFT… in snd_cs4235_get_output_accu()
728 …ucontrol->value.integer.value[1] = snd_cs4235_mixer_output_accu_get_volume(chip->image[CS4235_RIGH… in snd_cs4235_get_output_accu()
729 spin_unlock_irqrestore(&chip->reg_lock, flags); in snd_cs4235_get_output_accu()
740 val1 = snd_cs4235_mixer_output_accu_set_volume(ucontrol->value.integer.value[0]); in snd_cs4235_put_output_accu()
741 val2 = snd_cs4235_mixer_output_accu_set_volume(ucontrol->value.integer.value[1]); in snd_cs4235_put_output_accu()
742 spin_lock_irqsave(&chip->reg_lock, flags); in snd_cs4235_put_output_accu()
743 val1 = (chip->image[CS4235_LEFT_MASTER] & ~(3 << 5)) | val1; in snd_cs4235_put_output_accu()
744 val2 = (chip->image[CS4235_RIGHT_MASTER] & ~(3 << 5)) | val2; in snd_cs4235_put_output_accu()
745 change = val1 != chip->image[CS4235_LEFT_MASTER] || val2 != chip->image[CS4235_RIGHT_MASTER]; in snd_cs4235_put_output_accu()
748 spin_unlock_irqrestore(&chip->reg_lock, flags); in snd_cs4235_put_output_accu()
752 static const DECLARE_TLV_DB_SCALE(db_scale_7bit, -9450, 150, 0);
753 static const DECLARE_TLV_DB_SCALE(db_scale_6bit, -9450, 150, 0);
754 static const DECLARE_TLV_DB_SCALE(db_scale_6bit_12db_max, -8250, 150, 0);
755 static const DECLARE_TLV_DB_SCALE(db_scale_5bit_12db_max, -3450, 150, 0);
756 static const DECLARE_TLV_DB_SCALE(db_scale_5bit_22db_max, -2400, 150, 0);
757 static const DECLARE_TLV_DB_SCALE(db_scale_4bit, -4500, 300, 0);
758 static const DECLARE_TLV_DB_SCALE(db_scale_2bit, -1800, 600, 0);
853 static const DECLARE_TLV_DB_SCALE(db_scale_5bit_6db_max, -5600, 200, 0);
854 static const DECLARE_TLV_DB_SCALE(db_scale_2bit_16db_max, -2400, 800, 0);
936 spin_lock_irqsave(&chip->reg_lock, flags); in snd_cs4236_get_iec958_switch()
937 ucontrol->value.integer.value[0] = chip->image[CS4231_ALT_FEATURE_1] & 0x02 ? 1 : 0; in snd_cs4236_get_iec958_switch()
948 spin_unlock_irqrestore(&chip->reg_lock, flags); in snd_cs4236_get_iec958_switch()
957 unsigned short enable, val; in snd_cs4236_put_iec958_switch() local
959 enable = ucontrol->value.integer.value[0] & 1; in snd_cs4236_put_iec958_switch()
961 mutex_lock(&chip->mce_mutex); in snd_cs4236_put_iec958_switch()
963 spin_lock_irqsave(&chip->reg_lock, flags); in snd_cs4236_put_iec958_switch()
964 val = (chip->image[CS4231_ALT_FEATURE_1] & ~0x0e) | (0<<2) | (enable << 1); in snd_cs4236_put_iec958_switch()
965 change = val != chip->image[CS4231_ALT_FEATURE_1]; in snd_cs4236_put_iec958_switch()
972 spin_unlock_irqrestore(&chip->reg_lock, flags); in snd_cs4236_put_iec958_switch()
974 mutex_unlock(&chip->mce_mutex); in snd_cs4236_put_iec958_switch()
990 CS4236_IEC958_ENABLE("IEC958 Output Enable", 0),
999 CS4236_SINGLEC("3D Control - Switch", 0, 3, 4, 1, 0),
1000 CS4236_SINGLEC("3D Control - Space", 0, 2, 4, 15, 1)
1004 CS4236_SINGLEC("3D Control - Switch", 0, 3, 7, 1, 0),
1005 CS4236_SINGLEC("3D Control - Space", 0, 2, 4, 15, 1),
1006 CS4236_SINGLEC("3D Control - Center", 0, 2, 0, 15, 1),
1007 CS4236_SINGLEC("3D Control - Mono", 0, 3, 6, 1, 0),
1008 CS4236_SINGLEC("3D Control - IEC958", 0, 3, 5, 1, 0)
1012 CS4236_SINGLEC("3D Control - Switch", 0, 3, 4, 1, 0),
1013 CS4236_SINGLEC("3D Control - Space", 0, 2, 4, 15, 1),
1014 CS4236_SINGLEC("3D Control - Volume", 0, 2, 0, 15, 1),
1015 CS4236_SINGLEC("3D Control - IEC958", 0, 3, 5, 1, 0)
1025 if (snd_BUG_ON(!chip || !chip->card)) in snd_cs4236_mixer()
1026 return -EINVAL; in snd_cs4236_mixer()
1027 card = chip->card; in snd_cs4236_mixer()
1028 strcpy(card->mixername, snd_wss_chip_id(chip)); in snd_cs4236_mixer()
1030 if (chip->hardware == WSS_HW_CS4235 || in snd_cs4236_mixer()
1031 chip->hardware == WSS_HW_CS4239) { in snd_cs4236_mixer()
1042 switch (chip->hardware) { in snd_cs4236_mixer()
1064 if (chip->hardware == WSS_HW_CS4237B || in snd_cs4236_mixer()
1065 chip->hardware == WSS_HW_CS4238B) { in snd_cs4236_mixer()