Lines Matching refs:devc
154 static void vnc_configure_mixer(struct wavnc_info *devc,
173 waveartist_iack(struct wavnc_info *devc) in waveartist_iack() argument
175 unsigned int ctlr_port = devc->hw.io_base + CTLR; in waveartist_iack()
192 waveartist_reset(struct wavnc_info *devc) in waveartist_reset() argument
194 struct address_info *hw = &devc->hw; in waveartist_reset()
227 waveartist_cmd(struct wavnc_info *devc, in waveartist_cmd() argument
231 unsigned int io_base = devc->hw.io_base; in waveartist_cmd()
303 waveartist_cmd1(struct wavnc_info *devc, unsigned int cmd) in waveartist_cmd1() argument
305 return waveartist_cmd(devc, 1, &cmd, 0, NULL); in waveartist_cmd1()
312 waveartist_cmd1_r(struct wavnc_info *devc, unsigned int cmd) in waveartist_cmd1_r() argument
316 waveartist_cmd(devc, 1, &cmd, 1, &ret); in waveartist_cmd1_r()
326 waveartist_cmd2(struct wavnc_info *devc, unsigned int cmd, unsigned int arg) in waveartist_cmd2() argument
333 return waveartist_cmd(devc, 2, vals, 1, vals); in waveartist_cmd2()
340 waveartist_cmd3(struct wavnc_info *devc, unsigned int cmd, in waveartist_cmd3() argument
349 return waveartist_cmd(devc, 3, vals, 0, NULL); in waveartist_cmd3()
353 waveartist_getrev(struct wavnc_info *devc, char *rev) in waveartist_getrev() argument
358 waveartist_cmd(devc, 1, &cmd, 2, temp); in waveartist_getrev()
375 struct wavnc_info *devc; in waveartist_open() local
382 devc = (struct wavnc_info *) audio_devs[dev]->devc; in waveartist_open()
386 if (portc->open_mode || (devc->open_mode & mode)) { in waveartist_open()
391 devc->audio_mode = 0; in waveartist_open()
392 devc->open_mode |= mode; in waveartist_open()
397 devc->record_dev = dev; in waveartist_open()
399 devc->playback_dev = dev; in waveartist_open()
408 struct wavnc_info *devc = (struct wavnc_info *) in waveartist_close() local
409 audio_devs[dev]->devc; in waveartist_close()
418 devc->audio_mode = 0; in waveartist_close()
419 devc->open_mode &= ~portc->open_mode; in waveartist_close()
430 struct wavnc_info *devc = (struct wavnc_info *) in waveartist_output_block() local
431 audio_devs[dev]->devc; in waveartist_output_block()
449 if (devc->audio_mode & PCM_ENABLE_OUTPUT && in waveartist_output_block()
452 count == devc->xfer_count) { in waveartist_output_block()
453 devc->audio_mode |= PCM_ENABLE_OUTPUT; in waveartist_output_block()
464 waveartist_cmd2(devc, WACMD_OUTPUTSIZE, count); in waveartist_output_block()
466 devc->xfer_count = count; in waveartist_output_block()
467 devc->audio_mode |= PCM_ENABLE_OUTPUT; in waveartist_output_block()
477 struct wavnc_info *devc = (struct wavnc_info *) in waveartist_start_input() local
478 audio_devs[dev]->devc; in waveartist_start_input()
494 if (devc->audio_mode & PCM_ENABLE_INPUT && in waveartist_start_input()
497 count == devc->xfer_count) { in waveartist_start_input()
498 devc->audio_mode |= PCM_ENABLE_INPUT; in waveartist_start_input()
509 waveartist_cmd2(devc, WACMD_INPUTSIZE, count); in waveartist_start_input()
511 devc->xfer_count = count; in waveartist_start_input()
512 devc->audio_mode |= PCM_ENABLE_INPUT; in waveartist_start_input()
570 struct wavnc_info *devc = (struct wavnc_info *) in waveartist_prepare_for_input() local
571 audio_devs[dev]->devc; in waveartist_prepare_for_input()
576 if (devc->audio_mode) in waveartist_prepare_for_input()
584 if (waveartist_cmd2(devc, WACMD_INPUTFORMAT, bits)) in waveartist_prepare_for_input()
588 if (waveartist_cmd2(devc, WACMD_INPUTCHANNELS, portc->channels)) in waveartist_prepare_for_input()
595 if (waveartist_cmd2(devc, WACMD_INPUTSPEED, speed)) in waveartist_prepare_for_input()
599 if (waveartist_cmd2(devc, WACMD_INPUTDMA, 1)) in waveartist_prepare_for_input()
603 if (waveartist_cmd2(devc, WACMD_INPUTFORMAT, bits)) in waveartist_prepare_for_input()
607 devc->xfer_count = 0; in waveartist_prepare_for_input()
613 inb(devc->hw.io_base + CTLR)); in waveartist_prepare_for_input()
615 inb(devc->hw.io_base + STATR)); in waveartist_prepare_for_input()
617 inb(devc->hw.io_base + IRQSTAT)); in waveartist_prepare_for_input()
627 struct wavnc_info *devc = (struct wavnc_info *) in waveartist_prepare_for_output() local
628 audio_devs[dev]->devc; in waveartist_prepare_for_output()
641 if (waveartist_cmd2(devc, WACMD_OUTPUTSPEED, speed) && in waveartist_prepare_for_output()
642 waveartist_cmd2(devc, WACMD_OUTPUTSPEED, speed)) in waveartist_prepare_for_output()
646 if (waveartist_cmd2(devc, WACMD_OUTPUTCHANNELS, portc->channels)) in waveartist_prepare_for_output()
650 if (waveartist_cmd2(devc, WACMD_OUTPUTDMA, 0)) in waveartist_prepare_for_output()
654 if (waveartist_cmd2(devc, WACMD_OUTPUTFORMAT, bits)) in waveartist_prepare_for_output()
658 devc->xfer_count = 0; in waveartist_prepare_for_output()
663 printk("WA CTLR reg: 0x%02X.\n",inb(devc->hw.io_base + CTLR)); in waveartist_prepare_for_output()
664 printk("WA STAT reg: 0x%02X.\n",inb(devc->hw.io_base + STATR)); in waveartist_prepare_for_output()
665 printk("WA IRQS reg: 0x%02X.\n",inb(devc->hw.io_base + IRQSTAT)); in waveartist_prepare_for_output()
676 struct wavnc_info *devc; in waveartist_halt() local
684 devc = (struct wavnc_info *) audio_devs[dev]->devc; in waveartist_halt()
685 devc->audio_mode = 0; in waveartist_halt()
691 struct wavnc_info *devc = (struct wavnc_info *) in waveartist_halt_input() local
692 audio_devs[dev]->devc; in waveartist_halt_input()
700 waveartist_cmd1(devc, WACMD_INPUTSTOP); in waveartist_halt_input()
702 devc->audio_mode &= ~PCM_ENABLE_INPUT; in waveartist_halt_input()
708 if (inb(devc->hw.io_base + STATR) & IRQ_REQ) in waveartist_halt_input()
709 waveartist_iack(devc); in waveartist_halt_input()
719 struct wavnc_info *devc = (struct wavnc_info *) in waveartist_halt_output() local
720 audio_devs[dev]->devc; in waveartist_halt_output()
725 waveartist_cmd1(devc, WACMD_OUTPUTSTOP); in waveartist_halt_output()
727 devc->audio_mode &= ~PCM_ENABLE_OUTPUT; in waveartist_halt_output()
733 if (inb(devc->hw.io_base + STATR) & IRQ_REQ) in waveartist_halt_output()
734 waveartist_iack(devc); in waveartist_halt_output()
744 struct wavnc_info *devc = (struct wavnc_info *) in waveartist_trigger() local
745 audio_devs[dev]->devc; in waveartist_trigger()
761 state &= devc->audio_mode; in waveartist_trigger()
768 waveartist_cmd1(devc, WACMD_INPUTSTART); in waveartist_trigger()
775 waveartist_cmd1(devc, WACMD_OUTPUTSTART); in waveartist_trigger()
851 struct wavnc_info *devc = dev_id; in waveartist_intr() local
855 irqstatus = inb(devc->hw.io_base + IRQSTAT); in waveartist_intr()
856 status = inb(devc->hw.io_base + STATR); in waveartist_intr()
863 waveartist_iack(devc); in waveartist_intr()
872 if ((status & DMA0) && (devc->audio_mode & PCM_ENABLE_OUTPUT)) { in waveartist_intr()
873 DMAbuf_outputintr(devc->playback_dev, 1); in waveartist_intr()
876 if ((status & DMA1) && (devc->audio_mode & PCM_ENABLE_INPUT)) { in waveartist_intr()
877 DMAbuf_inputintr(devc->record_dev); in waveartist_intr()
934 waveartist_mixer_update(struct wavnc_info *devc, int whichDev) in waveartist_mixer_update() argument
938 lev_left = devc->levels[whichDev] & 0xff; in waveartist_mixer_update()
939 lev_right = devc->levels[whichDev] >> 8; in waveartist_mixer_update()
960 left = waveartist_cmd1_r(devc, WACMD_GET_LEVEL | in waveartist_mixer_update()
964 right = waveartist_cmd1_r(devc, WACMD_GET_LEVEL | in waveartist_mixer_update()
971 waveartist_cmd3(devc, WACMD_SET_MIXER, left, right); in waveartist_mixer_update()
975 waveartist_cmd3(devc, WACMD_SET_LEVEL, in waveartist_mixer_update()
981 waveartist_cmd3(devc, 0x0100 | WACMD_SET_LEVEL, in waveartist_mixer_update()
995 waveartist_set_adc_mux(struct wavnc_info *devc, char left_dev, in waveartist_set_adc_mux() argument
1000 reg_08 = waveartist_cmd1_r(devc, WACMD_GET_LEVEL | 0x0800); in waveartist_set_adc_mux()
1001 reg_09 = waveartist_cmd1_r(devc, WACMD_GET_LEVEL | 0x0900); in waveartist_set_adc_mux()
1005 waveartist_cmd3(devc, WACMD_SET_MIXER, reg_08, reg_09); in waveartist_set_adc_mux()
1019 waveartist_select_input(struct wavnc_info *devc, unsigned int recmask, in waveartist_select_input() argument
1047 waveartist_decode_mixer(struct wavnc_info *devc, int dev, in waveartist_decode_mixer() argument
1060 devc->levels[dev] = lev_l | lev_r << 8; in waveartist_decode_mixer()
1074 static int waveartist_get_mixer(struct wavnc_info *devc, int dev) in waveartist_get_mixer() argument
1076 return devc->levels[dev]; in waveartist_get_mixer()
1092 waveartist_set_recmask(struct wavnc_info *devc, unsigned int recmask) in waveartist_set_recmask() argument
1096 recmask &= devc->mix->recording_devs; in waveartist_set_recmask()
1103 recmask &= ~devc->recmask; in waveartist_set_recmask()
1109 devc->recmask = devc->mix->select_input(devc, recmask, in waveartist_set_recmask()
1112 waveartist_set_adc_mux(devc, dev_l, dev_r); in waveartist_set_recmask()
1116 waveartist_set_mixer(struct wavnc_info *devc, int dev, unsigned int level) in waveartist_set_mixer() argument
1130 if (!(devc->mix->stereo_devs & (1 << dev))) in waveartist_set_mixer()
1133 dev = devc->mix->decode_mixer(devc, dev, lev_left, lev_right); in waveartist_set_mixer()
1136 waveartist_mixer_update(devc, dev); in waveartist_set_mixer()
1144 struct wavnc_info *devc = (struct wavnc_info *)audio_devs[dev]->devc; in waveartist_mixer_ioctl() local
1171 waveartist_set_recmask(devc, val); in waveartist_mixer_ioctl()
1177 devc->mix->supported_devs & (1 << nr)) in waveartist_mixer_ioctl()
1178 ret = waveartist_set_mixer(devc, nr, val); in waveartist_mixer_ioctl()
1187 ret = devc->recmask; in waveartist_mixer_ioctl()
1191 ret = devc->mix->supported_devs; in waveartist_mixer_ioctl()
1195 ret = devc->mix->stereo_devs; in waveartist_mixer_ioctl()
1199 ret = devc->mix->recording_devs; in waveartist_mixer_ioctl()
1208 ret = devc->mix->get_mixer(devc, nr); in waveartist_mixer_ioctl()
1228 waveartist_mixer_reset(struct wavnc_info *devc) in waveartist_mixer_reset() argument
1233 printk("%s: mixer_reset\n", devc->hw.name); in waveartist_mixer_reset()
1238 waveartist_cmd1(devc, WACMD_RST_MIXER); in waveartist_mixer_reset()
1244 waveartist_cmd3(devc, WACMD_SET_MIXER, 0x9800, 0xa836); in waveartist_mixer_reset()
1249 waveartist_cmd3(devc, WACMD_SET_MIXER, 0x4c00, 0x8c00); in waveartist_mixer_reset()
1254 waveartist_cmd3(devc, WACMD_SET_MIXER, 0x2801, 0x6800); in waveartist_mixer_reset()
1259 waveartist_set_recmask(devc, 0); in waveartist_mixer_reset()
1262 waveartist_mixer_update(devc, i); in waveartist_mixer_reset()
1265 static int __init waveartist_init(struct wavnc_info *devc) in waveartist_init() argument
1271 if (waveartist_reset(devc)) in waveartist_init()
1274 sprintf(dev_name, "%s (%s", devc->hw.name, devc->chip_name); in waveartist_init()
1276 if (waveartist_getrev(devc, rev)) { in waveartist_init()
1282 conf_printf2(dev_name, devc->hw.io_base, devc->hw.irq, in waveartist_init()
1283 devc->hw.dma, devc->hw.dma2); in waveartist_init()
1291 devc->audio_flags, AFMT_U8 | AFMT_S16_LE | AFMT_S8, in waveartist_init()
1292 devc, devc->hw.dma, devc->hw.dma2); in waveartist_init()
1299 waveartist_mixer_reset(devc); in waveartist_init()
1304 waveartist_iack(devc); in waveartist_init()
1306 if (request_irq(devc->hw.irq, waveartist_intr, 0, devc->hw.name, devc) < 0) { in waveartist_init()
1308 devc->hw.name, devc->hw.irq); in waveartist_init()
1312 if (sound_alloc_dma(devc->hw.dma, devc->hw.name)) { in waveartist_init()
1314 devc->hw.name, devc->hw.dma); in waveartist_init()
1318 if (devc->hw.dma != devc->hw.dma2 && devc->hw.dma2 != NO_DMA) in waveartist_init()
1319 if (sound_alloc_dma(devc->hw.dma2, devc->hw.name)) { in waveartist_init()
1321 devc->hw.name, devc->hw.dma2); in waveartist_init()
1325 waveartist_set_ctlr(&devc->hw, 0, DMA1_IE | DMA0_IE); in waveartist_init()
1332 devc); in waveartist_init()
1337 sound_free_dma(devc->hw.dma); in waveartist_init()
1340 free_irq(devc->hw.irq, devc); in waveartist_init()
1354 struct wavnc_info *devc = &adev_info[nr_waveartist_devs]; in probe_waveartist() local
1381 devc->hw = *hw_config; in probe_waveartist()
1382 devc->open_mode = 0; in probe_waveartist()
1383 devc->chip_name = "RWA-010"; in probe_waveartist()
1391 struct wavnc_info *devc = &adev_info[nr_waveartist_devs]; in attach_waveartist() local
1398 devc->hw = *hw; in attach_waveartist()
1399 devc->hw.irq = (hw->irq > 0) ? hw->irq : 0; in attach_waveartist()
1400 devc->open_mode = 0; in attach_waveartist()
1401 devc->playback_dev = 0; in attach_waveartist()
1402 devc->record_dev = 0; in attach_waveartist()
1403 devc->audio_flags = DMA_AUTOMODE; in attach_waveartist()
1404 devc->levels = levels; in attach_waveartist()
1407 devc->audio_flags |= DMA_DUPLEX; in attach_waveartist()
1409 devc->mix = mix; in attach_waveartist()
1410 devc->dev_no = waveartist_init(devc); in attach_waveartist()
1412 if (devc->dev_no < 0) in attach_waveartist()
1421 vnc_configure_mixer(devc, 0); in attach_waveartist()
1423 devc->no_autoselect = 1; in attach_waveartist()
1432 struct wavnc_info *devc = NULL; in unload_waveartist() local
1437 devc = adev_info + i; in unload_waveartist()
1441 if (devc != NULL) { in unload_waveartist()
1449 release_region(devc->hw.io_base, 15); in unload_waveartist()
1451 waveartist_set_ctlr(&devc->hw, DMA1_IE|DMA0_IE, 0); in unload_waveartist()
1453 if (devc->hw.irq >= 0) in unload_waveartist()
1454 free_irq(devc->hw.irq, devc); in unload_waveartist()
1456 sound_free_dma(devc->hw.dma); in unload_waveartist()
1458 if (devc->hw.dma != devc->hw.dma2 && in unload_waveartist()
1459 devc->hw.dma2 != NO_DMA) in unload_waveartist()
1460 sound_free_dma(devc->hw.dma2); in unload_waveartist()
1462 mixer = audio_devs[devc->dev_no]->mixer_dev; in unload_waveartist()
1467 if (devc->dev_no >= 0) in unload_waveartist()
1468 sound_unload_audiodev(devc->dev_no); in unload_waveartist()
1500 vnc_mute_spkr(struct wavnc_info *devc) in vnc_mute_spkr() argument
1505 nw_cpld_modify(CPLD_UNMUTE, devc->spkr_mute_state ? 0 : CPLD_UNMUTE); in vnc_mute_spkr()
1510 vnc_mute_lout(struct wavnc_info *devc) in vnc_mute_lout() argument
1514 left = waveartist_cmd1_r(devc, WACMD_GET_LEVEL); in vnc_mute_lout()
1515 right = waveartist_cmd1_r(devc, WACMD_GET_LEVEL | 0x400); in vnc_mute_lout()
1517 if (devc->line_mute_state) { in vnc_mute_lout()
1524 waveartist_cmd3(devc, WACMD_SET_MIXER, left, right); in vnc_mute_lout()
1529 vnc_volume_slider(struct wavnc_info *devc) in vnc_volume_slider() argument
1589 netwinder_select_input(struct wavnc_info *devc, unsigned int recmask, in netwinder_select_input() argument
1604 waveartist_cmd1(devc, WACMD_SET_MONO); /* left */ in netwinder_select_input()
1609 waveartist_cmd1(devc, WACMD_SET_MONO); /* left */ in netwinder_select_input()
1614 waveartist_cmd1(devc, WACMD_SET_MONO | 0x100); /* right */ in netwinder_select_input()
1626 netwinder_decode_mixer(struct wavnc_info *devc, int dev, unsigned char lev_l, in netwinder_decode_mixer() argument
1635 devc->levels[dev] = lev_l | lev_r << 8; in netwinder_decode_mixer()
1639 devc->levels[SOUND_MIXER_MIC] &= 0xff; in netwinder_decode_mixer()
1640 devc->levels[SOUND_MIXER_MIC] |= lev_l << 8; in netwinder_decode_mixer()
1644 devc->levels[SOUND_MIXER_MIC] &= 0xff00; in netwinder_decode_mixer()
1645 devc->levels[SOUND_MIXER_MIC] |= lev_l; in netwinder_decode_mixer()
1650 devc->levels[SOUND_MIXER_LINE1] = lev_l; in netwinder_decode_mixer()
1665 static int netwinder_get_mixer(struct wavnc_info *devc, int dev) in netwinder_get_mixer() argument
1675 levels = devc->levels[dev]; in netwinder_get_mixer()
1679 levels = devc->levels[SOUND_MIXER_MIC] >> 8; in netwinder_get_mixer()
1684 levels = devc->levels[SOUND_MIXER_MIC] & 0xff; in netwinder_get_mixer()
1689 levels = devc->levels[SOUND_MIXER_LINE1] & 0xff; in netwinder_get_mixer()
1725 vnc_configure_mixer(struct wavnc_info *devc, unsigned int recmask) in vnc_configure_mixer() argument
1727 if (!devc->no_autoselect) { in vnc_configure_mixer()
1728 if (devc->handset_detect) { in vnc_configure_mixer()
1730 devc->spkr_mute_state = devc->line_mute_state = 1; in vnc_configure_mixer()
1731 } else if (devc->telephone_detect) { in vnc_configure_mixer()
1733 devc->spkr_mute_state = devc->line_mute_state = 1; in vnc_configure_mixer()
1738 if ((devc->recmask & SOUND_MASK_LINE) == 0) in vnc_configure_mixer()
1739 devc->recmask = SOUND_MASK_MIC; in vnc_configure_mixer()
1740 devc->spkr_mute_state = devc->line_mute_state = 0; in vnc_configure_mixer()
1742 vnc_mute_spkr(devc); in vnc_configure_mixer()
1743 vnc_mute_lout(devc); in vnc_configure_mixer()
1745 if (recmask != devc->recmask) in vnc_configure_mixer()
1746 waveartist_set_recmask(devc, recmask); in vnc_configure_mixer()
1751 vnc_slider(struct wavnc_info *devc) in vnc_slider() argument
1763 old_hs = devc->handset_detect; in vnc_slider()
1764 old_td = devc->telephone_detect; in vnc_slider()
1766 devc->handset_detect = !(temp & 0x10); in vnc_slider()
1767 devc->telephone_detect = !!(temp & 0x20); in vnc_slider()
1769 if (!devc->no_autoselect && in vnc_slider()
1770 (old_hs != devc->handset_detect || in vnc_slider()
1771 old_td != devc->telephone_detect)) in vnc_slider()
1772 vnc_configure_mixer(devc, devc->recmask); in vnc_slider()
1774 slider_volume = vnc_volume_slider(devc); in vnc_slider()
1781 if (abs(devc->slider_vol - slider_volume) > 20) in vnc_slider()
1782 devc->use_slider = 1; in vnc_slider()
1789 if (slider_volume != temp && devc->use_slider) { in vnc_slider()
1790 devc->slider_vol = slider_volume; in vnc_slider()
1792 waveartist_set_mixer(devc, SOUND_MIXER_VOLUME, in vnc_slider()
1817 struct wavnc_info *devc = (struct wavnc_info *)audio_devs[dev]->devc; in vnc_private_ioctl() local
1835 prev_auto_state = devc->no_autoselect; in vnc_private_ioctl()
1836 prev_spkr_mute = devc->spkr_mute_state; in vnc_private_ioctl()
1837 prev_line_mute = devc->line_mute_state; in vnc_private_ioctl()
1839 devc->no_autoselect = (val & VNC_DISABLE_AUTOSWITCH) ? 1 : 0; in vnc_private_ioctl()
1840 devc->spkr_mute_state = (val & VNC_MUTE_INTERNAL_SPKR) ? 1 : 0; in vnc_private_ioctl()
1841 devc->line_mute_state = (val & VNC_MUTE_LINE_OUT) ? 1 : 0; in vnc_private_ioctl()
1843 if (prev_spkr_mute != devc->spkr_mute_state) in vnc_private_ioctl()
1844 vnc_mute_spkr(devc); in vnc_private_ioctl()
1846 if (prev_line_mute != devc->line_mute_state) in vnc_private_ioctl()
1847 vnc_mute_lout(devc); in vnc_private_ioctl()
1849 if (prev_auto_state != devc->no_autoselect) in vnc_private_ioctl()
1850 vnc_configure_mixer(devc, devc->recmask); in vnc_private_ioctl()
1863 waveartist_cmd1(devc, 0x16); in vnc_private_ioctl()
1867 waveartist_cmd1(devc, 0x18); in vnc_private_ioctl()
1888 waveartist_mixer_reset(devc); in vnc_private_ioctl()
1892 waveartist_cmd3(devc, WACMD_SET_MIXER, mixer_reg[0], mixer_reg[4]); in vnc_private_ioctl()
1893 waveartist_cmd3(devc, WACMD_SET_MIXER, mixer_reg[1], mixer_reg[5]); in vnc_private_ioctl()
1894 waveartist_cmd3(devc, WACMD_SET_MIXER, mixer_reg[2], mixer_reg[6]); in vnc_private_ioctl()
1895 waveartist_cmd3(devc, WACMD_SET_MIXER, mixer_reg[3], mixer_reg[7]); in vnc_private_ioctl()
1896 waveartist_cmd3(devc, WACMD_SET_MIXER, mixer_reg[8], mixer_reg[9]); in vnc_private_ioctl()
1898 waveartist_cmd3(devc, WACMD_SET_LEVEL, mixer_reg[10], mixer_reg[11]); in vnc_private_ioctl()
1899 waveartist_cmd3(devc, WACMD_SET_LEVEL, mixer_reg[12], mixer_reg[13]); in vnc_private_ioctl()
1906 waveartist_cmd(devc, 1, &i, 1, mixer_reg + (i >> 8)); in vnc_private_ioctl()
1922 val = (devc->spkr_mute_state ? VNC_MUTE_INTERNAL_SPKR : 0) | in vnc_private_ioctl()
1923 (devc->line_mute_state ? VNC_MUTE_LINE_OUT : 0) | in vnc_private_ioctl()
1924 (devc->handset_detect ? VNC_HANDSET_DETECT : 0) | in vnc_private_ioctl()
1925 (devc->telephone_detect ? VNC_PHONE_DETECT : 0) | in vnc_private_ioctl()
1926 (devc->no_autoselect ? VNC_DISABLE_AUTOSWITCH : 0); in vnc_private_ioctl()
1941 devc->use_slider = 0; in vnc_private_ioctl()
1953 devc->levels[SOUND_MIXER_SPEAKER] = val | (val << 8); in vnc_private_ioctl()
1954 devc->spkr_mute_state = (val <= 50); in vnc_private_ioctl()
1955 vnc_mute_spkr(devc); in vnc_private_ioctl()