pm860x            965 sound/soc/codecs/88pm860x-codec.c 	struct pm860x_priv *pm860x = snd_soc_component_get_drvdata(component);
pm860x            975 sound/soc/codecs/88pm860x-codec.c 		if (pm860x->dir == PM860X_CLK_DIR_OUT) {
pm860x            981 sound/soc/codecs/88pm860x-codec.c 		if (pm860x->dir == PM860X_CLK_DIR_IN) {
pm860x           1005 sound/soc/codecs/88pm860x-codec.c 	struct pm860x_priv *pm860x = snd_soc_component_get_drvdata(component);
pm860x           1008 sound/soc/codecs/88pm860x-codec.c 		pm860x->dir = PM860X_CLK_DIR_OUT;
pm860x           1070 sound/soc/codecs/88pm860x-codec.c 	struct pm860x_priv *pm860x = snd_soc_component_get_drvdata(component);
pm860x           1078 sound/soc/codecs/88pm860x-codec.c 		if (pm860x->dir == PM860X_CLK_DIR_OUT)
pm860x           1084 sound/soc/codecs/88pm860x-codec.c 		if (pm860x->dir == PM860X_CLK_DIR_IN)
pm860x           1108 sound/soc/codecs/88pm860x-codec.c 	struct pm860x_priv *pm860x = snd_soc_component_get_drvdata(component);
pm860x           1122 sound/soc/codecs/88pm860x-codec.c 			pm860x_reg_write(pm860x->i2c, REG_MISC2, data);
pm860x           1126 sound/soc/codecs/88pm860x-codec.c 			pm860x_reg_write(pm860x->i2c, REG_MISC2, data);
pm860x           1132 sound/soc/codecs/88pm860x-codec.c 		pm860x_set_bits(pm860x->i2c, REG_MISC2, data, 0);
pm860x           1203 sound/soc/codecs/88pm860x-codec.c 	struct pm860x_priv *pm860x = data;
pm860x           1207 sound/soc/codecs/88pm860x-codec.c 	status = pm860x_reg_read(pm860x->i2c, REG_STATUS_1);
pm860x           1208 sound/soc/codecs/88pm860x-codec.c 	shrt = pm860x_reg_read(pm860x->i2c, REG_SHORTS);
pm860x           1209 sound/soc/codecs/88pm860x-codec.c 	mask = pm860x->det.hs_shrt | pm860x->det.hook_det | pm860x->det.lo_shrt
pm860x           1210 sound/soc/codecs/88pm860x-codec.c 		| pm860x->det.hp_det;
pm860x           1215 sound/soc/codecs/88pm860x-codec.c 		trace_snd_soc_jack_irq(dev_name(pm860x->component->dev));
pm860x           1218 sound/soc/codecs/88pm860x-codec.c 	if ((pm860x->det.hp_det & SND_JACK_HEADPHONE)
pm860x           1222 sound/soc/codecs/88pm860x-codec.c 	if ((pm860x->det.mic_det & SND_JACK_MICROPHONE)
pm860x           1226 sound/soc/codecs/88pm860x-codec.c 	if (pm860x->det.hs_shrt && (shrt & (SHORT_HS1 | SHORT_HS2)))
pm860x           1227 sound/soc/codecs/88pm860x-codec.c 		report |= pm860x->det.hs_shrt;
pm860x           1229 sound/soc/codecs/88pm860x-codec.c 	if (pm860x->det.hook_det && (status & HOOK_STATUS))
pm860x           1230 sound/soc/codecs/88pm860x-codec.c 		report |= pm860x->det.hook_det;
pm860x           1232 sound/soc/codecs/88pm860x-codec.c 	if (pm860x->det.lo_shrt && (shrt & (SHORT_LO1 | SHORT_LO2)))
pm860x           1233 sound/soc/codecs/88pm860x-codec.c 		report |= pm860x->det.lo_shrt;
pm860x           1236 sound/soc/codecs/88pm860x-codec.c 		snd_soc_jack_report(pm860x->det.hp_jack, report, mask);
pm860x           1238 sound/soc/codecs/88pm860x-codec.c 		snd_soc_jack_report(pm860x->det.mic_jack, SND_JACK_MICROPHONE,
pm860x           1241 sound/soc/codecs/88pm860x-codec.c 	dev_dbg(pm860x->component->dev, "headphone report:0x%x, mask:%x\n",
pm860x           1243 sound/soc/codecs/88pm860x-codec.c 	dev_dbg(pm860x->component->dev, "microphone report:0x%x\n", mic_report);
pm860x           1251 sound/soc/codecs/88pm860x-codec.c 	struct pm860x_priv *pm860x = snd_soc_component_get_drvdata(component);
pm860x           1254 sound/soc/codecs/88pm860x-codec.c 	pm860x->det.hp_jack = jack;
pm860x           1255 sound/soc/codecs/88pm860x-codec.c 	pm860x->det.hp_det = det;
pm860x           1256 sound/soc/codecs/88pm860x-codec.c 	pm860x->det.hook_det = hook;
pm860x           1257 sound/soc/codecs/88pm860x-codec.c 	pm860x->det.hs_shrt = hs_shrt;
pm860x           1258 sound/soc/codecs/88pm860x-codec.c 	pm860x->det.lo_shrt = lo_shrt;
pm860x           1261 sound/soc/codecs/88pm860x-codec.c 		pm860x_set_bits(pm860x->i2c, REG_HS_DET,
pm860x           1266 sound/soc/codecs/88pm860x-codec.c 		pm860x_set_bits(pm860x->i2c, REG_SHORTS, data, data);
pm860x           1271 sound/soc/codecs/88pm860x-codec.c 		pm860x_set_bits(pm860x->i2c, REG_SHORTS, data, data);
pm860x           1275 sound/soc/codecs/88pm860x-codec.c 	pm860x_component_handler(0, pm860x);
pm860x           1283 sound/soc/codecs/88pm860x-codec.c 	struct pm860x_priv *pm860x = snd_soc_component_get_drvdata(component);
pm860x           1285 sound/soc/codecs/88pm860x-codec.c 	pm860x->det.mic_jack = jack;
pm860x           1286 sound/soc/codecs/88pm860x-codec.c 	pm860x->det.mic_det = det;
pm860x           1289 sound/soc/codecs/88pm860x-codec.c 		pm860x_set_bits(pm860x->i2c, REG_MIC_DET,
pm860x           1293 sound/soc/codecs/88pm860x-codec.c 	pm860x_component_handler(0, pm860x);
pm860x           1300 sound/soc/codecs/88pm860x-codec.c 	struct pm860x_priv *pm860x = snd_soc_component_get_drvdata(component);
pm860x           1303 sound/soc/codecs/88pm860x-codec.c 	pm860x->component = component;
pm860x           1304 sound/soc/codecs/88pm860x-codec.c 	snd_soc_component_init_regmap(component,  pm860x->regmap);
pm860x           1307 sound/soc/codecs/88pm860x-codec.c 		ret = request_threaded_irq(pm860x->irq[i], NULL,
pm860x           1309 sound/soc/codecs/88pm860x-codec.c 					   pm860x->name[i], pm860x);
pm860x           1320 sound/soc/codecs/88pm860x-codec.c 		free_irq(pm860x->irq[i], pm860x);
pm860x           1326 sound/soc/codecs/88pm860x-codec.c 	struct pm860x_priv *pm860x = snd_soc_component_get_drvdata(component);
pm860x           1330 sound/soc/codecs/88pm860x-codec.c 		free_irq(pm860x->irq[i], pm860x);
pm860x           1352 sound/soc/codecs/88pm860x-codec.c 	struct pm860x_priv *pm860x;
pm860x           1356 sound/soc/codecs/88pm860x-codec.c 	pm860x = devm_kzalloc(&pdev->dev, sizeof(struct pm860x_priv),
pm860x           1358 sound/soc/codecs/88pm860x-codec.c 	if (pm860x == NULL)
pm860x           1361 sound/soc/codecs/88pm860x-codec.c 	pm860x->chip = chip;
pm860x           1362 sound/soc/codecs/88pm860x-codec.c 	pm860x->i2c = (chip->id == CHIP_PM8607) ? chip->client
pm860x           1364 sound/soc/codecs/88pm860x-codec.c 	pm860x->regmap = (chip->id == CHIP_PM8607) ? chip->regmap
pm860x           1366 sound/soc/codecs/88pm860x-codec.c 	platform_set_drvdata(pdev, pm860x);
pm860x           1374 sound/soc/codecs/88pm860x-codec.c 		pm860x->irq[i] = res->start + chip->irq_base;
pm860x           1375 sound/soc/codecs/88pm860x-codec.c 		strncpy(pm860x->name[i], res->name, MAX_NAME_LEN);