sgtl5000 270 sound/soc/codecs/sgtl5000.c struct sgtl5000_priv *sgtl5000 = snd_soc_component_get_drvdata(component); sgtl5000 277 sound/soc/codecs/sgtl5000.c sgtl5000->micbias_resistor << SGTL5000_BIAS_R_SHIFT); sgtl5000 307 sound/soc/codecs/sgtl5000.c struct sgtl5000_priv *sgtl5000 = sgtl5000 312 sound/soc/codecs/sgtl5000.c sgtl5000->mute_state[event_source] = sgtl5000 318 sound/soc/codecs/sgtl5000.c sgtl5000->mute_state[event_source]); sgtl5000 321 sound/soc/codecs/sgtl5000.c sgtl5000->mute_state[event_source] = sgtl5000 327 sound/soc/codecs/sgtl5000.c sgtl5000->mute_state[event_source]); sgtl5000 798 sound/soc/codecs/sgtl5000.c struct sgtl5000_priv *sgtl5000 = snd_soc_component_get_drvdata(component); sgtl5000 801 sound/soc/codecs/sgtl5000.c sgtl5000->master = 0; sgtl5000 813 sound/soc/codecs/sgtl5000.c sgtl5000->master = 1; sgtl5000 843 sound/soc/codecs/sgtl5000.c sgtl5000->fmt = fmt & SND_SOC_DAIFMT_FORMAT_MASK; sgtl5000 866 sound/soc/codecs/sgtl5000.c struct sgtl5000_priv *sgtl5000 = snd_soc_component_get_drvdata(component); sgtl5000 870 sound/soc/codecs/sgtl5000.c sgtl5000->sysclk = freq; sgtl5000 894 sound/soc/codecs/sgtl5000.c struct sgtl5000_priv *sgtl5000 = snd_soc_component_get_drvdata(component); sgtl5000 957 sound/soc/codecs/sgtl5000.c switch (sgtl5000->sysclk / frame_rate) { sgtl5000 972 sound/soc/codecs/sgtl5000.c if (sgtl5000->master) { sgtl5000 980 sound/soc/codecs/sgtl5000.c sgtl5000->sysclk / frame_rate); sgtl5000 992 sound/soc/codecs/sgtl5000.c if (sgtl5000->sysclk > 17000000) { sgtl5000 994 sound/soc/codecs/sgtl5000.c in = sgtl5000->sysclk / 2; sgtl5000 997 sound/soc/codecs/sgtl5000.c in = sgtl5000->sysclk; sgtl5000 1052 sound/soc/codecs/sgtl5000.c struct sgtl5000_priv *sgtl5000 = snd_soc_component_get_drvdata(component); sgtl5000 1059 sound/soc/codecs/sgtl5000.c if (!sgtl5000->sysclk) { sgtl5000 1081 sound/soc/codecs/sgtl5000.c if (sgtl5000->fmt == SND_SOC_DAIFMT_RIGHT_J) sgtl5000 1098 sound/soc/codecs/sgtl5000.c if (sgtl5000->fmt == SND_SOC_DAIFMT_RIGHT_J) sgtl5000 1300 sound/soc/codecs/sgtl5000.c struct sgtl5000_priv *sgtl5000 = snd_soc_component_get_drvdata(component); sgtl5000 1302 sound/soc/codecs/sgtl5000.c vdda = regulator_get_voltage(sgtl5000->supplies[VDDA].consumer); sgtl5000 1303 sound/soc/codecs/sgtl5000.c vddio = regulator_get_voltage(sgtl5000->supplies[VDDIO].consumer); sgtl5000 1304 sound/soc/codecs/sgtl5000.c vddd = (sgtl5000->num_supplies > VDDD) sgtl5000 1305 sound/soc/codecs/sgtl5000.c ? regulator_get_voltage(sgtl5000->supplies[VDDD].consumer) sgtl5000 1347 sound/soc/codecs/sgtl5000.c if (regulator_is_equal(sgtl5000->supplies[VDDA].consumer, sgtl5000 1348 sound/soc/codecs/sgtl5000.c sgtl5000->supplies[VDDIO].consumer)) { sgtl5000 1424 sound/soc/codecs/sgtl5000.c struct sgtl5000_priv *sgtl5000 = i2c_get_clientdata(client); sgtl5000 1426 sound/soc/codecs/sgtl5000.c for (i = 0; i < ARRAY_SIZE(sgtl5000->supplies); i++) sgtl5000 1427 sound/soc/codecs/sgtl5000.c sgtl5000->supplies[i].supply = supply_names[i]; sgtl5000 1439 sound/soc/codecs/sgtl5000.c sgtl5000->num_supplies = ARRAY_SIZE(sgtl5000->supplies) sgtl5000 1441 sound/soc/codecs/sgtl5000.c ret = regulator_bulk_get(&client->dev, sgtl5000->num_supplies, sgtl5000 1442 sound/soc/codecs/sgtl5000.c sgtl5000->supplies); sgtl5000 1446 sound/soc/codecs/sgtl5000.c ret = regulator_bulk_enable(sgtl5000->num_supplies, sgtl5000 1447 sound/soc/codecs/sgtl5000.c sgtl5000->supplies); sgtl5000 1451 sound/soc/codecs/sgtl5000.c regulator_bulk_free(sgtl5000->num_supplies, sgtl5000 1452 sound/soc/codecs/sgtl5000.c sgtl5000->supplies); sgtl5000 1461 sound/soc/codecs/sgtl5000.c struct sgtl5000_priv *sgtl5000 = snd_soc_component_get_drvdata(component); sgtl5000 1485 sound/soc/codecs/sgtl5000.c reg = ((sgtl5000->lrclk_strength) << SGTL5000_PAD_I2S_LRCLK_SHIFT | sgtl5000 1486 sound/soc/codecs/sgtl5000.c (sgtl5000->sclk_strength) << SGTL5000_PAD_I2S_SCLK_SHIFT | sgtl5000 1495 sound/soc/codecs/sgtl5000.c sgtl5000->micbias_resistor << SGTL5000_BIAS_R_SHIFT); sgtl5000 1499 sound/soc/codecs/sgtl5000.c sgtl5000->micbias_voltage << SGTL5000_BIAS_VOLT_SHIFT); sgtl5000 1559 sound/soc/codecs/sgtl5000.c struct sgtl5000_priv *sgtl5000 = i2c_get_clientdata(client); sgtl5000 1565 sound/soc/codecs/sgtl5000.c ret = regmap_write(sgtl5000->regmap, index, val); sgtl5000 1576 sound/soc/codecs/sgtl5000.c struct sgtl5000_priv *sgtl5000; sgtl5000 1582 sound/soc/codecs/sgtl5000.c sgtl5000 = devm_kzalloc(&client->dev, sizeof(*sgtl5000), GFP_KERNEL); sgtl5000 1583 sound/soc/codecs/sgtl5000.c if (!sgtl5000) sgtl5000 1586 sound/soc/codecs/sgtl5000.c i2c_set_clientdata(client, sgtl5000); sgtl5000 1592 sound/soc/codecs/sgtl5000.c sgtl5000->regmap = devm_regmap_init_i2c(client, &sgtl5000_regmap); sgtl5000 1593 sound/soc/codecs/sgtl5000.c if (IS_ERR(sgtl5000->regmap)) { sgtl5000 1594 sound/soc/codecs/sgtl5000.c ret = PTR_ERR(sgtl5000->regmap); sgtl5000 1599 sound/soc/codecs/sgtl5000.c sgtl5000->mclk = devm_clk_get(&client->dev, NULL); sgtl5000 1600 sound/soc/codecs/sgtl5000.c if (IS_ERR(sgtl5000->mclk)) { sgtl5000 1601 sound/soc/codecs/sgtl5000.c ret = PTR_ERR(sgtl5000->mclk); sgtl5000 1612 sound/soc/codecs/sgtl5000.c ret = clk_prepare_enable(sgtl5000->mclk); sgtl5000 1622 sound/soc/codecs/sgtl5000.c ret = regmap_read(sgtl5000->regmap, SGTL5000_CHIP_ID, ®); sgtl5000 1638 sound/soc/codecs/sgtl5000.c sgtl5000->revision = rev; sgtl5000 1641 sound/soc/codecs/sgtl5000.c ret = regmap_write(sgtl5000->regmap, sgtl5000 1649 sound/soc/codecs/sgtl5000.c ret = regmap_write(sgtl5000->regmap, SGTL5000_CHIP_ANA_CTRL, sgtl5000 1664 sound/soc/codecs/sgtl5000.c ret = regmap_read(sgtl5000->regmap, SGTL5000_CHIP_ANA_POWER, &value); sgtl5000 1670 sound/soc/codecs/sgtl5000.c ret = regmap_update_bits(sgtl5000->regmap, sgtl5000 1684 sound/soc/codecs/sgtl5000.c if (sgtl5000->num_supplies <= VDDD) { sgtl5000 1686 sound/soc/codecs/sgtl5000.c ret = regmap_update_bits(sgtl5000->regmap, sgtl5000 1706 sound/soc/codecs/sgtl5000.c ret = regmap_write(sgtl5000->regmap, SGTL5000_CHIP_ANA_POWER, ana_pwr); sgtl5000 1717 sound/soc/codecs/sgtl5000.c sgtl5000->micbias_resistor = 0; sgtl5000 1720 sound/soc/codecs/sgtl5000.c sgtl5000->micbias_resistor = 1; sgtl5000 1723 sound/soc/codecs/sgtl5000.c sgtl5000->micbias_resistor = 2; sgtl5000 1726 sound/soc/codecs/sgtl5000.c sgtl5000->micbias_resistor = 3; sgtl5000 1729 sound/soc/codecs/sgtl5000.c sgtl5000->micbias_resistor = 2; sgtl5000 1735 sound/soc/codecs/sgtl5000.c sgtl5000->micbias_resistor = 2; sgtl5000 1742 sound/soc/codecs/sgtl5000.c sgtl5000->micbias_voltage = (value / 250) - 5; sgtl5000 1744 sound/soc/codecs/sgtl5000.c sgtl5000->micbias_voltage = 0; sgtl5000 1749 sound/soc/codecs/sgtl5000.c sgtl5000->micbias_voltage = 0; sgtl5000 1753 sound/soc/codecs/sgtl5000.c sgtl5000->lrclk_strength = I2S_LRCLK_STRENGTH_LOW; sgtl5000 1757 sound/soc/codecs/sgtl5000.c sgtl5000->lrclk_strength = value; sgtl5000 1760 sound/soc/codecs/sgtl5000.c sgtl5000->sclk_strength = I2S_SCLK_STRENGTH_LOW; sgtl5000 1764 sound/soc/codecs/sgtl5000.c sgtl5000->sclk_strength = value; sgtl5000 1778 sound/soc/codecs/sgtl5000.c clk_disable_unprepare(sgtl5000->mclk); sgtl5000 1781 sound/soc/codecs/sgtl5000.c regulator_bulk_disable(sgtl5000->num_supplies, sgtl5000->supplies); sgtl5000 1782 sound/soc/codecs/sgtl5000.c regulator_bulk_free(sgtl5000->num_supplies, sgtl5000->supplies); sgtl5000 1789 sound/soc/codecs/sgtl5000.c struct sgtl5000_priv *sgtl5000 = i2c_get_clientdata(client); sgtl5000 1791 sound/soc/codecs/sgtl5000.c clk_disable_unprepare(sgtl5000->mclk); sgtl5000 1792 sound/soc/codecs/sgtl5000.c regulator_bulk_disable(sgtl5000->num_supplies, sgtl5000->supplies); sgtl5000 1793 sound/soc/codecs/sgtl5000.c regulator_bulk_free(sgtl5000->num_supplies, sgtl5000->supplies);