max98088 383 sound/soc/codecs/max98088.c struct max98088_priv *max98088 = snd_soc_component_get_drvdata(component); max98088 386 sound/soc/codecs/max98088.c max98088->mic1pre = sel; max98088 397 sound/soc/codecs/max98088.c struct max98088_priv *max98088 = snd_soc_component_get_drvdata(component); max98088 399 sound/soc/codecs/max98088.c ucontrol->value.integer.value[0] = max98088->mic1pre; max98088 407 sound/soc/codecs/max98088.c struct max98088_priv *max98088 = snd_soc_component_get_drvdata(component); max98088 410 sound/soc/codecs/max98088.c max98088->mic2pre = sel; max98088 421 sound/soc/codecs/max98088.c struct max98088_priv *max98088 = snd_soc_component_get_drvdata(component); max98088 423 sound/soc/codecs/max98088.c ucontrol->value.integer.value[0] = max98088->mic2pre; max98088 620 sound/soc/codecs/max98088.c struct max98088_priv *max98088 = snd_soc_component_get_drvdata(component); max98088 626 sound/soc/codecs/max98088.c (1+max98088->mic1pre)<<M98088_MICPRE_SHIFT); max98088 629 sound/soc/codecs/max98088.c (1+max98088->mic2pre)<<M98088_MICPRE_SHIFT); max98088 650 sound/soc/codecs/max98088.c struct max98088_priv *max98088 = snd_soc_component_get_drvdata(component); max98088 658 sound/soc/codecs/max98088.c state = &max98088->ina_state; max98088 661 sound/soc/codecs/max98088.c state = &max98088->inb_state; max98088 966 sound/soc/codecs/max98088.c struct max98088_priv *max98088 = snd_soc_component_get_drvdata(component); max98088 972 sound/soc/codecs/max98088.c cdata = &max98088->dai[0]; max98088 1001 sound/soc/codecs/max98088.c if (max98088->sysclk == 0) { max98088 1007 sound/soc/codecs/max98088.c do_div(ni, (unsigned long long int)max98088->sysclk); max98088 1033 sound/soc/codecs/max98088.c struct max98088_priv *max98088 = snd_soc_component_get_drvdata(component); max98088 1039 sound/soc/codecs/max98088.c cdata = &max98088->dai[1]; max98088 1068 sound/soc/codecs/max98088.c if (max98088->sysclk == 0) { max98088 1074 sound/soc/codecs/max98088.c do_div(ni, (unsigned long long int)max98088->sysclk); max98088 1099 sound/soc/codecs/max98088.c struct max98088_priv *max98088 = snd_soc_component_get_drvdata(component); max98088 1102 sound/soc/codecs/max98088.c if (freq == max98088->sysclk) max98088 1105 sound/soc/codecs/max98088.c if (!IS_ERR(max98088->mclk)) { max98088 1106 sound/soc/codecs/max98088.c freq = clk_round_rate(max98088->mclk, freq); max98088 1107 sound/soc/codecs/max98088.c clk_set_rate(max98088->mclk, freq); max98088 1132 sound/soc/codecs/max98088.c max98088->sysclk = freq; max98088 1140 sound/soc/codecs/max98088.c struct max98088_priv *max98088 = snd_soc_component_get_drvdata(component); max98088 1145 sound/soc/codecs/max98088.c cdata = &max98088->dai[0]; max98088 1200 sound/soc/codecs/max98088.c if (max98088->digmic) max98088 1212 sound/soc/codecs/max98088.c struct max98088_priv *max98088 = snd_soc_component_get_drvdata(component); max98088 1216 sound/soc/codecs/max98088.c cdata = &max98088->dai[1]; max98088 1310 sound/soc/codecs/max98088.c struct max98088_priv *max98088 = snd_soc_component_get_drvdata(component); max98088 1324 sound/soc/codecs/max98088.c if (!IS_ERR(max98088->mclk)) { max98088 1327 sound/soc/codecs/max98088.c clk_disable_unprepare(max98088->mclk); max98088 1329 sound/soc/codecs/max98088.c clk_prepare_enable(max98088->mclk); max98088 1335 sound/soc/codecs/max98088.c regcache_sync(max98088->regmap); max98088 1344 sound/soc/codecs/max98088.c regcache_mark_dirty(max98088->regmap); max98088 1413 sound/soc/codecs/max98088.c struct max98088_priv *max98088 = snd_soc_component_get_drvdata(component); max98088 1414 sound/soc/codecs/max98088.c struct max98088_pdata *pdata = max98088->pdata; max98088 1419 sound/soc/codecs/max98088.c cdata = &max98088->dai[0]; max98088 1421 sound/soc/codecs/max98088.c if (!pdata || !max98088->eq_textcnt) max98088 1431 sound/soc/codecs/max98088.c if (strcmp(pdata->eq_cfg[i].name, max98088->eq_texts[sel]) == 0 && max98088 1460 sound/soc/codecs/max98088.c struct max98088_priv *max98088 = snd_soc_component_get_drvdata(component); max98088 1461 sound/soc/codecs/max98088.c struct max98088_pdata *pdata = max98088->pdata; max98088 1466 sound/soc/codecs/max98088.c cdata = &max98088->dai[1]; max98088 1468 sound/soc/codecs/max98088.c if (!pdata || !max98088->eq_textcnt) max98088 1478 sound/soc/codecs/max98088.c if (strcmp(pdata->eq_cfg[i].name, max98088->eq_texts[sel]) == 0 && max98088 1510 sound/soc/codecs/max98088.c struct max98088_priv *max98088 = snd_soc_component_get_drvdata(component); max98088 1511 sound/soc/codecs/max98088.c struct max98088_pdata *pdata = max98088->pdata; max98088 1519 sound/soc/codecs/max98088.c cdata = &max98088->dai[channel]; max98088 1542 sound/soc/codecs/max98088.c struct max98088_priv *max98088 = snd_soc_component_get_drvdata(component); max98088 1549 sound/soc/codecs/max98088.c cdata = &max98088->dai[channel]; max98088 1556 sound/soc/codecs/max98088.c struct max98088_priv *max98088 = snd_soc_component_get_drvdata(component); max98088 1557 sound/soc/codecs/max98088.c struct max98088_pdata *pdata = max98088->pdata; max98088 1565 sound/soc/codecs/max98088.c max98088->eq_enum, max98088 1569 sound/soc/codecs/max98088.c max98088->eq_enum, max98088 1581 sound/soc/codecs/max98088.c max98088->eq_textcnt = 0; max98088 1582 sound/soc/codecs/max98088.c max98088->eq_texts = NULL; max98088 1584 sound/soc/codecs/max98088.c for (j = 0; j < max98088->eq_textcnt; j++) { max98088 1585 sound/soc/codecs/max98088.c if (strcmp(cfg[i].name, max98088->eq_texts[j]) == 0) max98088 1589 sound/soc/codecs/max98088.c if (j != max98088->eq_textcnt) max98088 1593 sound/soc/codecs/max98088.c t = krealloc(max98088->eq_texts, max98088 1594 sound/soc/codecs/max98088.c sizeof(char *) * (max98088->eq_textcnt + 1), max98088 1600 sound/soc/codecs/max98088.c t[max98088->eq_textcnt] = cfg[i].name; max98088 1601 sound/soc/codecs/max98088.c max98088->eq_textcnt++; max98088 1602 sound/soc/codecs/max98088.c max98088->eq_texts = t; max98088 1606 sound/soc/codecs/max98088.c max98088->eq_enum.texts = max98088->eq_texts; max98088 1607 sound/soc/codecs/max98088.c max98088->eq_enum.items = max98088->eq_textcnt; max98088 1616 sound/soc/codecs/max98088.c struct max98088_priv *max98088 = snd_soc_component_get_drvdata(component); max98088 1617 sound/soc/codecs/max98088.c struct max98088_pdata *pdata = max98088->pdata; max98088 1632 sound/soc/codecs/max98088.c max98088->digmic = (regval ? 1 : 0); max98088 1648 sound/soc/codecs/max98088.c struct max98088_priv *max98088 = snd_soc_component_get_drvdata(component); max98088 1652 sound/soc/codecs/max98088.c regcache_mark_dirty(max98088->regmap); max98088 1656 sound/soc/codecs/max98088.c max98088->sysclk = (unsigned)-1; max98088 1657 sound/soc/codecs/max98088.c max98088->eq_textcnt = 0; max98088 1659 sound/soc/codecs/max98088.c cdata = &max98088->dai[0]; max98088 1664 sound/soc/codecs/max98088.c cdata = &max98088->dai[1]; max98088 1669 sound/soc/codecs/max98088.c max98088->ina_state = 0; max98088 1670 sound/soc/codecs/max98088.c max98088->inb_state = 0; max98088 1671 sound/soc/codecs/max98088.c max98088->ex_mode = 0; max98088 1672 sound/soc/codecs/max98088.c max98088->digmic = 0; max98088 1673 sound/soc/codecs/max98088.c max98088->mic1pre = 0; max98088 1674 sound/soc/codecs/max98088.c max98088->mic2pre = 0; max98088 1709 sound/soc/codecs/max98088.c struct max98088_priv *max98088 = snd_soc_component_get_drvdata(component); max98088 1711 sound/soc/codecs/max98088.c kfree(max98088->eq_texts); max98088 1734 sound/soc/codecs/max98088.c struct max98088_priv *max98088; max98088 1737 sound/soc/codecs/max98088.c max98088 = devm_kzalloc(&i2c->dev, sizeof(struct max98088_priv), max98088 1739 sound/soc/codecs/max98088.c if (max98088 == NULL) max98088 1742 sound/soc/codecs/max98088.c max98088->regmap = devm_regmap_init_i2c(i2c, &max98088_regmap); max98088 1743 sound/soc/codecs/max98088.c if (IS_ERR(max98088->regmap)) max98088 1744 sound/soc/codecs/max98088.c return PTR_ERR(max98088->regmap); max98088 1746 sound/soc/codecs/max98088.c max98088->mclk = devm_clk_get(&i2c->dev, "mclk"); max98088 1747 sound/soc/codecs/max98088.c if (IS_ERR(max98088->mclk)) max98088 1748 sound/soc/codecs/max98088.c if (PTR_ERR(max98088->mclk) == -EPROBE_DEFER) max98088 1749 sound/soc/codecs/max98088.c return PTR_ERR(max98088->mclk); max98088 1751 sound/soc/codecs/max98088.c max98088->devtype = id->driver_data; max98088 1753 sound/soc/codecs/max98088.c i2c_set_clientdata(i2c, max98088); max98088 1754 sound/soc/codecs/max98088.c max98088->pdata = i2c->dev.platform_data;