Lines Matching refs:retval

91 	int retval;  in snd_at73c213_write_reg()  local
102 retval = spi_sync(chip->spi, &msg); in snd_at73c213_write_reg()
104 if (!retval) in snd_at73c213_write_reg()
107 return retval; in snd_at73c213_write_reg()
274 int retval = 0; in snd_at73c213_pcm_trigger() local
289 retval = -EINVAL; in snd_at73c213_pcm_trigger()
295 return retval; in snd_at73c213_pcm_trigger()
328 int retval; in snd_at73c213_pcm_new() local
330 retval = snd_pcm_new(chip->card, chip->card->shortname, in snd_at73c213_pcm_new()
332 if (retval < 0) in snd_at73c213_pcm_new()
346 return retval; in snd_at73c213_pcm_new()
357 int retval = IRQ_NONE; in snd_at73c213_interrupt() local
378 retval = IRQ_HANDLED; in snd_at73c213_interrupt()
387 return retval; in snd_at73c213_interrupt()
424 int change, retval; in snd_at73c213_mono_put() local
436 retval = snd_at73c213_write_reg(chip, reg, val); in snd_at73c213_mono_put()
440 if (retval) in snd_at73c213_mono_put()
441 return retval; in snd_at73c213_mono_put()
503 int change, retval; in snd_at73c213_stereo_put() local
521 retval = snd_at73c213_write_reg(chip, left_reg, val1); in snd_at73c213_stereo_put()
522 if (retval) { in snd_at73c213_stereo_put()
526 retval = snd_at73c213_write_reg(chip, right_reg, val2); in snd_at73c213_stereo_put()
527 if (retval) { in snd_at73c213_stereo_put()
537 return retval; in snd_at73c213_stereo_put()
572 int change, retval; in snd_at73c213_mono_switch_put() local
589 retval = snd_at73c213_write_reg(chip, reg, val); in snd_at73c213_mono_switch_put()
593 if (retval) in snd_at73c213_mono_switch_put()
594 return retval; in snd_at73c213_mono_switch_put()
771 int retval; in snd_at73c213_chip_init() local
774 retval = snd_at73c213_set_bitrate(chip); in snd_at73c213_chip_init()
775 if (retval) in snd_at73c213_chip_init()
782 retval = snd_at73c213_write_reg(chip, DAC_RST, 0x04); in snd_at73c213_chip_init()
783 if (retval) in snd_at73c213_chip_init()
786 retval = snd_at73c213_write_reg(chip, DAC_RST, 0x03); in snd_at73c213_chip_init()
787 if (retval) in snd_at73c213_chip_init()
791 retval = snd_at73c213_write_reg(chip, DAC_PRECH, 0xff); in snd_at73c213_chip_init()
792 if (retval) in snd_at73c213_chip_init()
794 retval = snd_at73c213_write_reg(chip, PA_CTRL, (1<<PA_CTRL_APAPRECH)); in snd_at73c213_chip_init()
795 if (retval) in snd_at73c213_chip_init()
797 retval = snd_at73c213_write_reg(chip, DAC_CTRL, in snd_at73c213_chip_init()
799 if (retval) in snd_at73c213_chip_init()
805 retval = snd_at73c213_write_reg(chip, PA_CTRL, in snd_at73c213_chip_init()
807 if (retval) in snd_at73c213_chip_init()
813 retval = snd_at73c213_write_reg(chip, DAC_PRECH, (1<<DAC_PRECH_ONMSTR)); in snd_at73c213_chip_init()
814 if (retval) in snd_at73c213_chip_init()
823 retval = snd_at73c213_write_reg(chip, DAC_CTRL, dac_ctrl); in snd_at73c213_chip_init()
824 if (retval) in snd_at73c213_chip_init()
828 retval = snd_at73c213_write_reg(chip, DAC_LMPG, 0x3f); in snd_at73c213_chip_init()
829 if (retval) in snd_at73c213_chip_init()
831 retval = snd_at73c213_write_reg(chip, DAC_RMPG, 0x3f); in snd_at73c213_chip_init()
832 if (retval) in snd_at73c213_chip_init()
834 retval = snd_at73c213_write_reg(chip, DAC_LLOG, 0x3f); in snd_at73c213_chip_init()
835 if (retval) in snd_at73c213_chip_init()
837 retval = snd_at73c213_write_reg(chip, DAC_RLOG, 0x3f); in snd_at73c213_chip_init()
838 if (retval) in snd_at73c213_chip_init()
840 retval = snd_at73c213_write_reg(chip, DAC_LLIG, 0x11); in snd_at73c213_chip_init()
841 if (retval) in snd_at73c213_chip_init()
843 retval = snd_at73c213_write_reg(chip, DAC_RLIG, 0x11); in snd_at73c213_chip_init()
844 if (retval) in snd_at73c213_chip_init()
846 retval = snd_at73c213_write_reg(chip, DAC_AUXG, 0x11); in snd_at73c213_chip_init()
847 if (retval) in snd_at73c213_chip_init()
858 return retval; in snd_at73c213_chip_init()
881 int irq, retval; in snd_at73c213_dev_init() local
894 retval = request_irq(irq, snd_at73c213_interrupt, 0, "at73c213", chip); in snd_at73c213_dev_init()
895 if (retval) { in snd_at73c213_dev_init()
904 retval = snd_at73c213_ssc_init(chip); in snd_at73c213_dev_init()
905 if (retval) in snd_at73c213_dev_init()
908 retval = snd_at73c213_chip_init(chip); in snd_at73c213_dev_init()
909 if (retval) in snd_at73c213_dev_init()
912 retval = snd_at73c213_pcm_new(chip, 0); in snd_at73c213_dev_init()
913 if (retval) in snd_at73c213_dev_init()
916 retval = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops); in snd_at73c213_dev_init()
917 if (retval) in snd_at73c213_dev_init()
920 retval = snd_at73c213_mixer(chip); in snd_at73c213_dev_init()
921 if (retval) in snd_at73c213_dev_init()
934 return retval; in snd_at73c213_dev_init()
942 int retval; in snd_at73c213_probe() local
963 retval = snd_card_new(&spi->dev, -1, id, THIS_MODULE, in snd_at73c213_probe()
965 if (retval < 0) in snd_at73c213_probe()
976 retval = PTR_ERR(chip->ssc); in snd_at73c213_probe()
980 retval = snd_at73c213_dev_init(card, spi); in snd_at73c213_probe()
981 if (retval) in snd_at73c213_probe()
988 retval = snd_card_register(card); in snd_at73c213_probe()
989 if (retval) in snd_at73c213_probe()
1001 return retval; in snd_at73c213_probe()
1008 int retval; in snd_at73c213_remove() local
1016 retval = snd_at73c213_write_reg(chip, DAC_LMPG, 0x3f); in snd_at73c213_remove()
1017 if (retval) in snd_at73c213_remove()
1019 retval = snd_at73c213_write_reg(chip, DAC_RMPG, 0x3f); in snd_at73c213_remove()
1020 if (retval) in snd_at73c213_remove()
1022 retval = snd_at73c213_write_reg(chip, DAC_LLOG, 0x3f); in snd_at73c213_remove()
1023 if (retval) in snd_at73c213_remove()
1025 retval = snd_at73c213_write_reg(chip, DAC_RLOG, 0x3f); in snd_at73c213_remove()
1026 if (retval) in snd_at73c213_remove()
1028 retval = snd_at73c213_write_reg(chip, DAC_LLIG, 0x11); in snd_at73c213_remove()
1029 if (retval) in snd_at73c213_remove()
1031 retval = snd_at73c213_write_reg(chip, DAC_RLIG, 0x11); in snd_at73c213_remove()
1032 if (retval) in snd_at73c213_remove()
1034 retval = snd_at73c213_write_reg(chip, DAC_AUXG, 0x11); in snd_at73c213_remove()
1035 if (retval) in snd_at73c213_remove()
1039 retval = snd_at73c213_write_reg(chip, PA_CTRL, in snd_at73c213_remove()
1041 if (retval) in snd_at73c213_remove()
1044 retval = snd_at73c213_write_reg(chip, PA_CTRL, in snd_at73c213_remove()
1046 if (retval) in snd_at73c213_remove()
1050 retval = snd_at73c213_write_reg(chip, DAC_CTRL, 0x0c); in snd_at73c213_remove()
1051 if (retval) in snd_at73c213_remove()
1054 retval = snd_at73c213_write_reg(chip, DAC_CTRL, 0x00); in snd_at73c213_remove()
1055 if (retval) in snd_at73c213_remove()
1059 retval = snd_at73c213_write_reg(chip, DAC_PRECH, 0x00); in snd_at73c213_remove()
1060 if (retval) in snd_at73c213_remove()