wm8741 179 sound/soc/codecs/wm8741.c struct wm8741_priv *wm8741 = snd_soc_component_get_drvdata(component); wm8741 181 sound/soc/codecs/wm8741.c if (wm8741->sysclk) wm8741 184 sound/soc/codecs/wm8741.c wm8741->sysclk_constraints); wm8741 194 sound/soc/codecs/wm8741.c struct wm8741_priv *wm8741 = snd_soc_component_get_drvdata(component); wm8741 201 sound/soc/codecs/wm8741.c if (!wm8741->sysclk) { wm8741 208 sound/soc/codecs/wm8741.c for (i = 0; i < wm8741->sysclk_constraints->count; i++) { wm8741 209 sound/soc/codecs/wm8741.c if (wm8741->sysclk_constraints->list[i] == params_rate(params)) wm8741 213 sound/soc/codecs/wm8741.c if (i == wm8741->sysclk_constraints->count) { wm8741 215 sound/soc/codecs/wm8741.c params_rate(params), wm8741->sysclk); wm8741 262 sound/soc/codecs/wm8741.c struct wm8741_priv *wm8741 = snd_soc_component_get_drvdata(component); wm8741 268 sound/soc/codecs/wm8741.c wm8741->sysclk_constraints = NULL; wm8741 271 sound/soc/codecs/wm8741.c wm8741->sysclk_constraints = &constraints_11289; wm8741 274 sound/soc/codecs/wm8741.c wm8741->sysclk_constraints = &constraints_12288; wm8741 277 sound/soc/codecs/wm8741.c wm8741->sysclk_constraints = &constraints_16384; wm8741 280 sound/soc/codecs/wm8741.c wm8741->sysclk_constraints = &constraints_16934; wm8741 283 sound/soc/codecs/wm8741.c wm8741->sysclk_constraints = &constraints_18432; wm8741 287 sound/soc/codecs/wm8741.c wm8741->sysclk_constraints = &constraints_22579; wm8741 290 sound/soc/codecs/wm8741.c wm8741->sysclk_constraints = &constraints_24576; wm8741 293 sound/soc/codecs/wm8741.c wm8741->sysclk_constraints = &constraints_36864; wm8741 299 sound/soc/codecs/wm8741.c wm8741->sysclk = freq; wm8741 416 sound/soc/codecs/wm8741.c struct wm8741_priv *wm8741 = snd_soc_component_get_drvdata(component); wm8741 419 sound/soc/codecs/wm8741.c switch (wm8741->pdata.diff_mode) { wm8741 426 sound/soc/codecs/wm8741.c wm8741->pdata.diff_mode << WM8741_DIFF_SHIFT); wm8741 447 sound/soc/codecs/wm8741.c struct wm8741_priv *wm8741 = snd_soc_component_get_drvdata(component); wm8741 449 sound/soc/codecs/wm8741.c switch (wm8741->pdata.diff_mode) { wm8741 475 sound/soc/codecs/wm8741.c struct wm8741_priv *wm8741 = snd_soc_component_get_drvdata(component); wm8741 478 sound/soc/codecs/wm8741.c ret = regulator_bulk_enable(ARRAY_SIZE(wm8741->supplies), wm8741 479 sound/soc/codecs/wm8741.c wm8741->supplies); wm8741 507 sound/soc/codecs/wm8741.c regulator_bulk_disable(ARRAY_SIZE(wm8741->supplies), wm8741->supplies); wm8741 514 sound/soc/codecs/wm8741.c struct wm8741_priv *wm8741 = snd_soc_component_get_drvdata(component); wm8741 516 sound/soc/codecs/wm8741.c regulator_bulk_disable(ARRAY_SIZE(wm8741->supplies), wm8741->supplies); wm8741 549 sound/soc/codecs/wm8741.c static int wm8741_set_pdata(struct device *dev, struct wm8741_priv *wm8741) wm8741 557 sound/soc/codecs/wm8741.c wm8741->pdata.diff_mode = diff_mode; wm8741 560 sound/soc/codecs/wm8741.c memcpy(&wm8741->pdata, pdata, sizeof(wm8741->pdata)); wm8741 570 sound/soc/codecs/wm8741.c struct wm8741_priv *wm8741; wm8741 573 sound/soc/codecs/wm8741.c wm8741 = devm_kzalloc(&i2c->dev, sizeof(struct wm8741_priv), wm8741 575 sound/soc/codecs/wm8741.c if (wm8741 == NULL) wm8741 578 sound/soc/codecs/wm8741.c for (i = 0; i < ARRAY_SIZE(wm8741->supplies); i++) wm8741 579 sound/soc/codecs/wm8741.c wm8741->supplies[i].supply = wm8741_supply_names[i]; wm8741 581 sound/soc/codecs/wm8741.c ret = devm_regulator_bulk_get(&i2c->dev, ARRAY_SIZE(wm8741->supplies), wm8741 582 sound/soc/codecs/wm8741.c wm8741->supplies); wm8741 588 sound/soc/codecs/wm8741.c wm8741->regmap = devm_regmap_init_i2c(i2c, &wm8741_regmap); wm8741 589 sound/soc/codecs/wm8741.c if (IS_ERR(wm8741->regmap)) { wm8741 590 sound/soc/codecs/wm8741.c ret = PTR_ERR(wm8741->regmap); wm8741 595 sound/soc/codecs/wm8741.c ret = wm8741_set_pdata(&i2c->dev, wm8741); wm8741 601 sound/soc/codecs/wm8741.c i2c_set_clientdata(i2c, wm8741); wm8741 628 sound/soc/codecs/wm8741.c struct wm8741_priv *wm8741; wm8741 631 sound/soc/codecs/wm8741.c wm8741 = devm_kzalloc(&spi->dev, sizeof(struct wm8741_priv), wm8741 633 sound/soc/codecs/wm8741.c if (wm8741 == NULL) wm8741 636 sound/soc/codecs/wm8741.c for (i = 0; i < ARRAY_SIZE(wm8741->supplies); i++) wm8741 637 sound/soc/codecs/wm8741.c wm8741->supplies[i].supply = wm8741_supply_names[i]; wm8741 639 sound/soc/codecs/wm8741.c ret = devm_regulator_bulk_get(&spi->dev, ARRAY_SIZE(wm8741->supplies), wm8741 640 sound/soc/codecs/wm8741.c wm8741->supplies); wm8741 646 sound/soc/codecs/wm8741.c wm8741->regmap = devm_regmap_init_spi(spi, &wm8741_regmap); wm8741 647 sound/soc/codecs/wm8741.c if (IS_ERR(wm8741->regmap)) { wm8741 648 sound/soc/codecs/wm8741.c ret = PTR_ERR(wm8741->regmap); wm8741 653 sound/soc/codecs/wm8741.c ret = wm8741_set_pdata(&spi->dev, wm8741); wm8741 659 sound/soc/codecs/wm8741.c spi_set_drvdata(spi, wm8741);