wm8731             90 sound/soc/codecs/wm8731.c 	struct wm8731_priv *wm8731 = snd_soc_component_get_drvdata(component);
wm8731             96 sound/soc/codecs/wm8731.c 	if (wm8731->deemph) {
wm8731             99 sound/soc/codecs/wm8731.c 			if (abs(wm8731_deemph[i] - wm8731->playback_fs) <
wm8731            100 sound/soc/codecs/wm8731.c 			    abs(wm8731_deemph[best] - wm8731->playback_fs))
wm8731            120 sound/soc/codecs/wm8731.c 	struct wm8731_priv *wm8731 = snd_soc_component_get_drvdata(component);
wm8731            122 sound/soc/codecs/wm8731.c 	ucontrol->value.integer.value[0] = wm8731->deemph;
wm8731            131 sound/soc/codecs/wm8731.c 	struct wm8731_priv *wm8731 = snd_soc_component_get_drvdata(component);
wm8731            138 sound/soc/codecs/wm8731.c 	mutex_lock(&wm8731->lock);
wm8731            139 sound/soc/codecs/wm8731.c 	if (wm8731->deemph != deemph) {
wm8731            140 sound/soc/codecs/wm8731.c 		wm8731->deemph = deemph;
wm8731            146 sound/soc/codecs/wm8731.c 	mutex_unlock(&wm8731->lock);
wm8731            215 sound/soc/codecs/wm8731.c 	struct wm8731_priv *wm8731 = snd_soc_component_get_drvdata(component);
wm8731            217 sound/soc/codecs/wm8731.c 	return wm8731->sysclk_type == WM8731_SYSCLK_XTAL;
wm8731            338 sound/soc/codecs/wm8731.c 	struct wm8731_priv *wm8731 = snd_soc_component_get_drvdata(component);
wm8731            340 sound/soc/codecs/wm8731.c 	int i = get_coeff(wm8731->sysclk, params_rate(params));
wm8731            344 sound/soc/codecs/wm8731.c 	wm8731->playback_fs = params_rate(params);
wm8731            386 sound/soc/codecs/wm8731.c 	struct wm8731_priv *wm8731 = snd_soc_component_get_drvdata(component);
wm8731            391 sound/soc/codecs/wm8731.c 		if (wm8731->mclk && clk_set_rate(wm8731->mclk, freq))
wm8731            393 sound/soc/codecs/wm8731.c 		wm8731->sysclk_type = clk_id;
wm8731            401 sound/soc/codecs/wm8731.c 		wm8731->constraints = NULL;
wm8731            404 sound/soc/codecs/wm8731.c 		wm8731->constraints = &wm8731_constraints_12000000;
wm8731            408 sound/soc/codecs/wm8731.c 		wm8731->constraints = &wm8731_constraints_12288000_18432000;
wm8731            412 sound/soc/codecs/wm8731.c 		wm8731->constraints = &wm8731_constraints_11289600_16934400;
wm8731            418 sound/soc/codecs/wm8731.c 	wm8731->sysclk = freq;
wm8731            488 sound/soc/codecs/wm8731.c 	struct wm8731_priv *wm8731 = snd_soc_component_get_drvdata(component);
wm8731            494 sound/soc/codecs/wm8731.c 		if (wm8731->mclk) {
wm8731            495 sound/soc/codecs/wm8731.c 			ret = clk_prepare_enable(wm8731->mclk);
wm8731            504 sound/soc/codecs/wm8731.c 			ret = regulator_bulk_enable(ARRAY_SIZE(wm8731->supplies),
wm8731            505 sound/soc/codecs/wm8731.c 						    wm8731->supplies);
wm8731            509 sound/soc/codecs/wm8731.c 			regcache_sync(wm8731->regmap);
wm8731            517 sound/soc/codecs/wm8731.c 		if (wm8731->mclk)
wm8731            518 sound/soc/codecs/wm8731.c 			clk_disable_unprepare(wm8731->mclk);
wm8731            520 sound/soc/codecs/wm8731.c 		regulator_bulk_disable(ARRAY_SIZE(wm8731->supplies),
wm8731            521 sound/soc/codecs/wm8731.c 				       wm8731->supplies);
wm8731            522 sound/soc/codecs/wm8731.c 		regcache_mark_dirty(wm8731->regmap);
wm8731            531 sound/soc/codecs/wm8731.c 	struct wm8731_priv *wm8731 = snd_soc_component_get_drvdata(dai->component);
wm8731            533 sound/soc/codecs/wm8731.c 	if (wm8731->constraints)
wm8731            536 sound/soc/codecs/wm8731.c 					   wm8731->constraints);
wm8731            573 sound/soc/codecs/wm8731.c 		struct wm8731_priv *wm8731)
wm8731            577 sound/soc/codecs/wm8731.c 	for (i = 0; i < ARRAY_SIZE(wm8731->supplies); i++)
wm8731            578 sound/soc/codecs/wm8731.c 		wm8731->supplies[i].supply = wm8731_supply_names[i];
wm8731            580 sound/soc/codecs/wm8731.c 	ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(wm8731->supplies),
wm8731            581 sound/soc/codecs/wm8731.c 				 wm8731->supplies);
wm8731            587 sound/soc/codecs/wm8731.c 	ret = regulator_bulk_enable(ARRAY_SIZE(wm8731->supplies),
wm8731            588 sound/soc/codecs/wm8731.c 				    wm8731->supplies);
wm8731            597 sound/soc/codecs/wm8731.c static int wm8731_hw_init(struct device *dev, struct wm8731_priv *wm8731)
wm8731            601 sound/soc/codecs/wm8731.c 	ret = wm8731_reset(wm8731->regmap);
wm8731            608 sound/soc/codecs/wm8731.c 	regmap_write(wm8731->regmap, WM8731_PWR, 0x7f);
wm8731            611 sound/soc/codecs/wm8731.c 	regmap_update_bits(wm8731->regmap, WM8731_LOUT1V, 0x100, 0);
wm8731            612 sound/soc/codecs/wm8731.c 	regmap_update_bits(wm8731->regmap, WM8731_ROUT1V, 0x100, 0);
wm8731            613 sound/soc/codecs/wm8731.c 	regmap_update_bits(wm8731->regmap, WM8731_LINVOL, 0x100, 0);
wm8731            614 sound/soc/codecs/wm8731.c 	regmap_update_bits(wm8731->regmap, WM8731_RINVOL, 0x100, 0);
wm8731            617 sound/soc/codecs/wm8731.c 	regmap_update_bits(wm8731->regmap, WM8731_APANA, 0x8, 0);
wm8731            619 sound/soc/codecs/wm8731.c 	regcache_mark_dirty(wm8731->regmap);
wm8731            623 sound/soc/codecs/wm8731.c 	regulator_bulk_disable(ARRAY_SIZE(wm8731->supplies), wm8731->supplies);
wm8731            665 sound/soc/codecs/wm8731.c 	struct wm8731_priv *wm8731;
wm8731            668 sound/soc/codecs/wm8731.c 	wm8731 = devm_kzalloc(&spi->dev, sizeof(*wm8731), GFP_KERNEL);
wm8731            669 sound/soc/codecs/wm8731.c 	if (wm8731 == NULL)
wm8731            672 sound/soc/codecs/wm8731.c 	wm8731->mclk = devm_clk_get(&spi->dev, "mclk");
wm8731            673 sound/soc/codecs/wm8731.c 	if (IS_ERR(wm8731->mclk)) {
wm8731            674 sound/soc/codecs/wm8731.c 		ret = PTR_ERR(wm8731->mclk);
wm8731            676 sound/soc/codecs/wm8731.c 			wm8731->mclk = NULL;
wm8731            685 sound/soc/codecs/wm8731.c 	mutex_init(&wm8731->lock);
wm8731            687 sound/soc/codecs/wm8731.c 	spi_set_drvdata(spi, wm8731);
wm8731            689 sound/soc/codecs/wm8731.c 	ret = wm8731_request_supplies(&spi->dev, wm8731);
wm8731            693 sound/soc/codecs/wm8731.c 	wm8731->regmap = devm_regmap_init_spi(spi, &wm8731_regmap);
wm8731            694 sound/soc/codecs/wm8731.c 	if (IS_ERR(wm8731->regmap)) {
wm8731            695 sound/soc/codecs/wm8731.c 		ret = PTR_ERR(wm8731->regmap);
wm8731            701 sound/soc/codecs/wm8731.c 	ret = wm8731_hw_init(&spi->dev, wm8731);
wm8731            734 sound/soc/codecs/wm8731.c 	struct wm8731_priv *wm8731;
wm8731            737 sound/soc/codecs/wm8731.c 	wm8731 = devm_kzalloc(&i2c->dev, sizeof(struct wm8731_priv),
wm8731            739 sound/soc/codecs/wm8731.c 	if (wm8731 == NULL)
wm8731            742 sound/soc/codecs/wm8731.c 	wm8731->mclk = devm_clk_get(&i2c->dev, "mclk");
wm8731            743 sound/soc/codecs/wm8731.c 	if (IS_ERR(wm8731->mclk)) {
wm8731            744 sound/soc/codecs/wm8731.c 		ret = PTR_ERR(wm8731->mclk);
wm8731            746 sound/soc/codecs/wm8731.c 			wm8731->mclk = NULL;
wm8731            755 sound/soc/codecs/wm8731.c 	mutex_init(&wm8731->lock);
wm8731            757 sound/soc/codecs/wm8731.c 	i2c_set_clientdata(i2c, wm8731);
wm8731            759 sound/soc/codecs/wm8731.c 	ret = wm8731_request_supplies(&i2c->dev, wm8731);
wm8731            763 sound/soc/codecs/wm8731.c 	wm8731->regmap = devm_regmap_init_i2c(i2c, &wm8731_regmap);
wm8731            764 sound/soc/codecs/wm8731.c 	if (IS_ERR(wm8731->regmap)) {
wm8731            765 sound/soc/codecs/wm8731.c 		ret = PTR_ERR(wm8731->regmap);
wm8731            771 sound/soc/codecs/wm8731.c 	ret = wm8731_hw_init(&i2c->dev, wm8731);
wm8731            259 sound/soc/pxa/corgi.c SND_SOC_DAILINK_DEFS(wm8731,
wm8731            270 sound/soc/pxa/corgi.c 	SND_SOC_DAILINK_REG(wm8731),
wm8731            222 sound/soc/pxa/poodle.c SND_SOC_DAILINK_DEFS(wm8731,
wm8731            233 sound/soc/pxa/poodle.c 	SND_SOC_DAILINK_REG(wm8731),