ak4118 154 sound/soc/codecs/ak4118.c static int ak4118_set_dai_fmt_master(struct ak4118_priv *ak4118, ak4118 176 sound/soc/codecs/ak4118.c static int ak4118_set_dai_fmt_slave(struct ak4118_priv *ak4118, ak4118 200 sound/soc/codecs/ak4118.c struct ak4118_priv *ak4118 = snd_soc_component_get_drvdata(component); ak4118 207 sound/soc/codecs/ak4118.c dif = ak4118_set_dai_fmt_master(ak4118, format); ak4118 211 sound/soc/codecs/ak4118.c dif = ak4118_set_dai_fmt_slave(ak4118, format); ak4118 224 sound/soc/codecs/ak4118.c ret = regmap_update_bits(ak4118->regmap, AK4118_REG_FORMAT_CTL, ak4118 266 sound/soc/codecs/ak4118.c struct ak4118_priv *ak4118 = data; ak4118 267 sound/soc/codecs/ak4118.c struct snd_soc_component *component = ak4118->component; ak4118 292 sound/soc/codecs/ak4118.c struct ak4118_priv *ak4118 = snd_soc_component_get_drvdata(component); ak4118 295 sound/soc/codecs/ak4118.c ak4118->component = component; ak4118 298 sound/soc/codecs/ak4118.c gpiod_set_value(ak4118->reset, 0); ak4118 301 sound/soc/codecs/ak4118.c ret = regmap_write(ak4118->regmap, AK4118_REG_INT1_MASK, 0x00); ak4118 310 sound/soc/codecs/ak4118.c ret = regmap_write(ak4118->regmap, AK4118_REG_RX_DETECT, 0xff); ak4118 331 sound/soc/codecs/ak4118.c struct ak4118_priv *ak4118 = snd_soc_component_get_drvdata(component); ak4118 334 sound/soc/codecs/ak4118.c gpiod_set_value(ak4118->reset, 1); ak4118 364 sound/soc/codecs/ak4118.c struct ak4118_priv *ak4118; ak4118 367 sound/soc/codecs/ak4118.c ak4118 = devm_kzalloc(&i2c->dev, sizeof(struct ak4118_priv), ak4118 369 sound/soc/codecs/ak4118.c if (ak4118 == NULL) ak4118 372 sound/soc/codecs/ak4118.c ak4118->regmap = devm_regmap_init_i2c(i2c, &ak4118_regmap); ak4118 373 sound/soc/codecs/ak4118.c if (IS_ERR(ak4118->regmap)) ak4118 374 sound/soc/codecs/ak4118.c return PTR_ERR(ak4118->regmap); ak4118 376 sound/soc/codecs/ak4118.c i2c_set_clientdata(i2c, ak4118); ak4118 378 sound/soc/codecs/ak4118.c ak4118->reset = devm_gpiod_get(&i2c->dev, "reset", GPIOD_OUT_HIGH); ak4118 379 sound/soc/codecs/ak4118.c if (IS_ERR(ak4118->reset)) { ak4118 380 sound/soc/codecs/ak4118.c ret = PTR_ERR(ak4118->reset); ak4118 386 sound/soc/codecs/ak4118.c ak4118->irq = devm_gpiod_get(&i2c->dev, "irq", GPIOD_IN); ak4118 387 sound/soc/codecs/ak4118.c if (IS_ERR(ak4118->irq)) { ak4118 388 sound/soc/codecs/ak4118.c ret = PTR_ERR(ak4118->irq); ak4118 394 sound/soc/codecs/ak4118.c ret = devm_request_threaded_irq(&i2c->dev, gpiod_to_irq(ak4118->irq), ak4118 397 sound/soc/codecs/ak4118.c "ak4118-irq", ak4118);