Lines Matching refs:priv
107 struct mc13783_priv *priv = snd_soc_codec_get_drvdata(codec); in mc13783_read() local
110 mc13xxx_lock(priv->mc13xxx); in mc13783_read()
112 mc13xxx_reg_read(priv->mc13xxx, reg, &value); in mc13783_read()
114 mc13xxx_unlock(priv->mc13xxx); in mc13783_read()
122 struct mc13783_priv *priv = snd_soc_codec_get_drvdata(codec); in mc13783_write() local
125 mc13xxx_lock(priv->mc13xxx); in mc13783_write()
127 ret = mc13xxx_reg_write(priv->mc13xxx, reg, value); in mc13783_write()
129 mc13xxx_unlock(priv->mc13xxx); in mc13783_write()
586 struct mc13783_priv *priv = snd_soc_codec_get_drvdata(codec); in mc13783_probe() local
588 mc13xxx_lock(priv->mc13xxx); in mc13783_probe()
591 mc13xxx_reg_write(priv->mc13xxx, MC13783_AUDIO_RX0, 0x25893); in mc13783_probe()
592 mc13xxx_reg_write(priv->mc13xxx, MC13783_AUDIO_RX1, 0x00d35A); in mc13783_probe()
593 mc13xxx_reg_write(priv->mc13xxx, MC13783_AUDIO_TX, 0x420000); in mc13783_probe()
594 mc13xxx_reg_write(priv->mc13xxx, MC13783_SSI_NETWORK, 0x013060); in mc13783_probe()
595 mc13xxx_reg_write(priv->mc13xxx, MC13783_AUDIO_CODEC, 0x180027); in mc13783_probe()
596 mc13xxx_reg_write(priv->mc13xxx, MC13783_AUDIO_DAC, 0x0e0004); in mc13783_probe()
598 if (priv->adc_ssi_port == MC13783_SSI1_PORT) in mc13783_probe()
599 mc13xxx_reg_rmw(priv->mc13xxx, MC13783_AUDIO_CODEC, in mc13783_probe()
602 mc13xxx_reg_rmw(priv->mc13xxx, MC13783_AUDIO_CODEC, in mc13783_probe()
605 if (priv->dac_ssi_port == MC13783_SSI1_PORT) in mc13783_probe()
606 mc13xxx_reg_rmw(priv->mc13xxx, MC13783_AUDIO_DAC, in mc13783_probe()
609 mc13xxx_reg_rmw(priv->mc13xxx, MC13783_AUDIO_DAC, in mc13783_probe()
612 mc13xxx_unlock(priv->mc13xxx); in mc13783_probe()
619 struct mc13783_priv *priv = snd_soc_codec_get_drvdata(codec); in mc13783_remove() local
621 mc13xxx_lock(priv->mc13xxx); in mc13783_remove()
624 mc13xxx_reg_rmw(priv->mc13xxx, MC13783_AUDIO_RX0, 0x3, 0); in mc13783_remove()
626 mc13xxx_unlock(priv->mc13xxx); in mc13783_remove()
730 struct mc13783_priv *priv; in mc13783_codec_probe() local
737 priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); in mc13783_codec_probe()
738 if (priv == NULL) in mc13783_codec_probe()
741 dev_set_drvdata(&pdev->dev, priv); in mc13783_codec_probe()
742 priv->mc13xxx = mc13xxx; in mc13783_codec_probe()
744 priv->adc_ssi_port = pdata->adc_ssi_port; in mc13783_codec_probe()
745 priv->dac_ssi_port = pdata->dac_ssi_port; in mc13783_codec_probe()
747 priv->adc_ssi_port = MC13783_SSI1_PORT; in mc13783_codec_probe()
748 priv->dac_ssi_port = MC13783_SSI2_PORT; in mc13783_codec_probe()
751 if (priv->adc_ssi_port == priv->dac_ssi_port) in mc13783_codec_probe()