max98095 354 sound/soc/codecs/max98095.c struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); max98095 357 sound/soc/codecs/max98095.c max98095->mic1pre = sel; max98095 368 sound/soc/codecs/max98095.c struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); max98095 370 sound/soc/codecs/max98095.c ucontrol->value.integer.value[0] = max98095->mic1pre; max98095 378 sound/soc/codecs/max98095.c struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); max98095 381 sound/soc/codecs/max98095.c max98095->mic2pre = sel; max98095 392 sound/soc/codecs/max98095.c struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); max98095 394 sound/soc/codecs/max98095.c ucontrol->value.integer.value[0] = max98095->mic2pre; max98095 599 sound/soc/codecs/max98095.c struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); max98095 605 sound/soc/codecs/max98095.c (1+max98095->mic1pre)<<M98095_MICPRE_SHIFT); max98095 608 sound/soc/codecs/max98095.c (1+max98095->mic2pre)<<M98095_MICPRE_SHIFT); max98095 629 sound/soc/codecs/max98095.c struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); max98095 635 sound/soc/codecs/max98095.c state = &max98095->lin_state; max98095 943 sound/soc/codecs/max98095.c struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); max98095 949 sound/soc/codecs/max98095.c cdata = &max98095->dai[0]; max98095 975 sound/soc/codecs/max98095.c if (max98095->sysclk == 0) { max98095 981 sound/soc/codecs/max98095.c do_div(ni, (unsigned long long int)max98095->sysclk); max98095 1004 sound/soc/codecs/max98095.c struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); max98095 1010 sound/soc/codecs/max98095.c cdata = &max98095->dai[1]; max98095 1036 sound/soc/codecs/max98095.c if (max98095->sysclk == 0) { max98095 1042 sound/soc/codecs/max98095.c do_div(ni, (unsigned long long int)max98095->sysclk); max98095 1065 sound/soc/codecs/max98095.c struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); max98095 1071 sound/soc/codecs/max98095.c cdata = &max98095->dai[2]; max98095 1097 sound/soc/codecs/max98095.c if (max98095->sysclk == 0) { max98095 1103 sound/soc/codecs/max98095.c do_div(ni, (unsigned long long int)max98095->sysclk); max98095 1125 sound/soc/codecs/max98095.c struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); max98095 1128 sound/soc/codecs/max98095.c if (freq == max98095->sysclk) max98095 1131 sound/soc/codecs/max98095.c if (!IS_ERR(max98095->mclk)) { max98095 1132 sound/soc/codecs/max98095.c freq = clk_round_rate(max98095->mclk, freq); max98095 1133 sound/soc/codecs/max98095.c clk_set_rate(max98095->mclk, freq); max98095 1154 sound/soc/codecs/max98095.c max98095->sysclk = freq; max98095 1162 sound/soc/codecs/max98095.c struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); max98095 1166 sound/soc/codecs/max98095.c cdata = &max98095->dai[0]; max98095 1230 sound/soc/codecs/max98095.c struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); max98095 1234 sound/soc/codecs/max98095.c cdata = &max98095->dai[1]; max98095 1299 sound/soc/codecs/max98095.c struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); max98095 1303 sound/soc/codecs/max98095.c cdata = &max98095->dai[2]; max98095 1367 sound/soc/codecs/max98095.c struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); max98095 1382 sound/soc/codecs/max98095.c if (IS_ERR(max98095->mclk)) max98095 1386 sound/soc/codecs/max98095.c clk_disable_unprepare(max98095->mclk); max98095 1388 sound/soc/codecs/max98095.c ret = clk_prepare_enable(max98095->mclk); max98095 1396 sound/soc/codecs/max98095.c ret = regcache_sync(max98095->regmap); max98095 1411 sound/soc/codecs/max98095.c regcache_mark_dirty(max98095->regmap); max98095 1495 sound/soc/codecs/max98095.c struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); max98095 1496 sound/soc/codecs/max98095.c struct max98095_pdata *pdata = max98095->pdata; max98095 1507 sound/soc/codecs/max98095.c if (!pdata || !max98095->eq_textcnt) max98095 1513 sound/soc/codecs/max98095.c cdata = &max98095->dai[channel]; max98095 1521 sound/soc/codecs/max98095.c if (strcmp(pdata->eq_cfg[i].name, max98095->eq_texts[sel]) == 0 && max98095 1540 sound/soc/codecs/max98095.c mutex_lock(&max98095->lock); max98095 1548 sound/soc/codecs/max98095.c mutex_unlock(&max98095->lock); max98095 1559 sound/soc/codecs/max98095.c struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); max98095 1563 sound/soc/codecs/max98095.c cdata = &max98095->dai[channel]; max98095 1571 sound/soc/codecs/max98095.c struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); max98095 1572 sound/soc/codecs/max98095.c struct max98095_pdata *pdata = max98095->pdata; max98095 1581 sound/soc/codecs/max98095.c max98095->eq_enum, max98095 1585 sound/soc/codecs/max98095.c max98095->eq_enum, max98095 1596 sound/soc/codecs/max98095.c max98095->eq_textcnt = 0; max98095 1597 sound/soc/codecs/max98095.c max98095->eq_texts = NULL; max98095 1599 sound/soc/codecs/max98095.c for (j = 0; j < max98095->eq_textcnt; j++) { max98095 1600 sound/soc/codecs/max98095.c if (strcmp(cfg[i].name, max98095->eq_texts[j]) == 0) max98095 1604 sound/soc/codecs/max98095.c if (j != max98095->eq_textcnt) max98095 1608 sound/soc/codecs/max98095.c t = krealloc(max98095->eq_texts, max98095 1609 sound/soc/codecs/max98095.c sizeof(char *) * (max98095->eq_textcnt + 1), max98095 1615 sound/soc/codecs/max98095.c t[max98095->eq_textcnt] = cfg[i].name; max98095 1616 sound/soc/codecs/max98095.c max98095->eq_textcnt++; max98095 1617 sound/soc/codecs/max98095.c max98095->eq_texts = t; max98095 1621 sound/soc/codecs/max98095.c max98095->eq_enum.texts = max98095->eq_texts; max98095 1622 sound/soc/codecs/max98095.c max98095->eq_enum.items = max98095->eq_textcnt; max98095 1646 sound/soc/codecs/max98095.c struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); max98095 1647 sound/soc/codecs/max98095.c struct max98095_pdata *pdata = max98095->pdata; max98095 1658 sound/soc/codecs/max98095.c if (!pdata || !max98095->bq_textcnt) max98095 1664 sound/soc/codecs/max98095.c cdata = &max98095->dai[channel]; max98095 1672 sound/soc/codecs/max98095.c if (strcmp(pdata->bq_cfg[i].name, max98095->bq_texts[sel]) == 0 && max98095 1691 sound/soc/codecs/max98095.c mutex_lock(&max98095->lock); max98095 1696 sound/soc/codecs/max98095.c mutex_unlock(&max98095->lock); max98095 1707 sound/soc/codecs/max98095.c struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); max98095 1714 sound/soc/codecs/max98095.c cdata = &max98095->dai[channel]; max98095 1722 sound/soc/codecs/max98095.c struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); max98095 1723 sound/soc/codecs/max98095.c struct max98095_pdata *pdata = max98095->pdata; max98095 1732 sound/soc/codecs/max98095.c max98095->bq_enum, max98095 1736 sound/soc/codecs/max98095.c max98095->bq_enum, max98095 1748 sound/soc/codecs/max98095.c max98095->bq_textcnt = 0; max98095 1749 sound/soc/codecs/max98095.c max98095->bq_texts = NULL; max98095 1751 sound/soc/codecs/max98095.c for (j = 0; j < max98095->bq_textcnt; j++) { max98095 1752 sound/soc/codecs/max98095.c if (strcmp(cfg[i].name, max98095->bq_texts[j]) == 0) max98095 1756 sound/soc/codecs/max98095.c if (j != max98095->bq_textcnt) max98095 1760 sound/soc/codecs/max98095.c t = krealloc(max98095->bq_texts, max98095 1761 sound/soc/codecs/max98095.c sizeof(char *) * (max98095->bq_textcnt + 1), max98095 1767 sound/soc/codecs/max98095.c t[max98095->bq_textcnt] = cfg[i].name; max98095 1768 sound/soc/codecs/max98095.c max98095->bq_textcnt++; max98095 1769 sound/soc/codecs/max98095.c max98095->bq_texts = t; max98095 1773 sound/soc/codecs/max98095.c max98095->bq_enum.texts = max98095->bq_texts; max98095 1774 sound/soc/codecs/max98095.c max98095->bq_enum.items = max98095->bq_textcnt; max98095 1783 sound/soc/codecs/max98095.c struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); max98095 1784 sound/soc/codecs/max98095.c struct max98095_pdata *pdata = max98095->pdata; max98095 1813 sound/soc/codecs/max98095.c struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); max98095 1827 sound/soc/codecs/max98095.c max98095->headphone_jack) max98095 1831 sound/soc/codecs/max98095.c if ((value & M98095_MIC_IN) && max98095->mic_jack) max98095 1834 sound/soc/codecs/max98095.c if (max98095->headphone_jack == max98095->mic_jack) { max98095 1835 sound/soc/codecs/max98095.c snd_soc_jack_report(max98095->headphone_jack, max98095 1839 sound/soc/codecs/max98095.c if (max98095->headphone_jack) max98095 1840 sound/soc/codecs/max98095.c snd_soc_jack_report(max98095->headphone_jack, max98095 1842 sound/soc/codecs/max98095.c if (max98095->mic_jack) max98095 1843 sound/soc/codecs/max98095.c snd_soc_jack_report(max98095->mic_jack, max98095 1852 sound/soc/codecs/max98095.c struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); max98095 1857 sound/soc/codecs/max98095.c if (max98095->pdata->jack_detect_pin5en) max98095 1860 sound/soc/codecs/max98095.c if (max98095->pdata->jack_detect_delay) max98095 1861 sound/soc/codecs/max98095.c slew = max98095->pdata->jack_detect_delay; max98095 1896 sound/soc/codecs/max98095.c struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); max98095 1900 sound/soc/codecs/max98095.c max98095->headphone_jack = hp_jack; max98095 1901 sound/soc/codecs/max98095.c max98095->mic_jack = mic_jack; max98095 1925 sound/soc/codecs/max98095.c struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); max98095 1927 sound/soc/codecs/max98095.c if (max98095->headphone_jack || max98095->mic_jack) max98095 1937 sound/soc/codecs/max98095.c struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); max98095 1942 sound/soc/codecs/max98095.c if (max98095->headphone_jack || max98095->mic_jack) { max98095 1987 sound/soc/codecs/max98095.c struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); max98095 1992 sound/soc/codecs/max98095.c max98095->mclk = devm_clk_get(component->dev, "mclk"); max98095 1993 sound/soc/codecs/max98095.c if (PTR_ERR(max98095->mclk) == -EPROBE_DEFER) max98095 2003 sound/soc/codecs/max98095.c max98095->sysclk = (unsigned)-1; max98095 2004 sound/soc/codecs/max98095.c max98095->eq_textcnt = 0; max98095 2005 sound/soc/codecs/max98095.c max98095->bq_textcnt = 0; max98095 2007 sound/soc/codecs/max98095.c cdata = &max98095->dai[0]; max98095 2013 sound/soc/codecs/max98095.c cdata = &max98095->dai[1]; max98095 2019 sound/soc/codecs/max98095.c cdata = &max98095->dai[2]; max98095 2025 sound/soc/codecs/max98095.c max98095->lin_state = 0; max98095 2026 sound/soc/codecs/max98095.c max98095->mic1pre = 0; max98095 2027 sound/soc/codecs/max98095.c max98095->mic2pre = 0; max98095 2087 sound/soc/codecs/max98095.c struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); max98095 2090 sound/soc/codecs/max98095.c if (max98095->headphone_jack || max98095->mic_jack) max98095 2118 sound/soc/codecs/max98095.c struct max98095_priv *max98095; max98095 2121 sound/soc/codecs/max98095.c max98095 = devm_kzalloc(&i2c->dev, sizeof(struct max98095_priv), max98095 2123 sound/soc/codecs/max98095.c if (max98095 == NULL) max98095 2126 sound/soc/codecs/max98095.c mutex_init(&max98095->lock); max98095 2128 sound/soc/codecs/max98095.c max98095->regmap = devm_regmap_init_i2c(i2c, &max98095_regmap); max98095 2129 sound/soc/codecs/max98095.c if (IS_ERR(max98095->regmap)) { max98095 2130 sound/soc/codecs/max98095.c ret = PTR_ERR(max98095->regmap); max98095 2135 sound/soc/codecs/max98095.c max98095->devtype = id->driver_data; max98095 2136 sound/soc/codecs/max98095.c i2c_set_clientdata(i2c, max98095); max98095 2137 sound/soc/codecs/max98095.c max98095->pdata = i2c->dev.platform_data;