Home
last modified time | relevance | path

Searched refs:spi (Results 1 – 25 of 45) sorted by relevance

12

/sound/soc/codecs/
Dadau1781-spi.c19 struct spi_device *spi = to_spi_device(dev); in adau1781_spi_switch_mode() local
25 spi_w8r8(spi, 0x00); in adau1781_spi_switch_mode()
26 spi_w8r8(spi, 0x00); in adau1781_spi_switch_mode()
27 spi_w8r8(spi, 0x00); in adau1781_spi_switch_mode()
30 static int adau1781_spi_probe(struct spi_device *spi) in adau1781_spi_probe() argument
32 const struct spi_device_id *id = spi_get_device_id(spi); in adau1781_spi_probe()
43 return adau1781_probe(&spi->dev, in adau1781_spi_probe()
44 devm_regmap_init_spi(spi, &config), in adau1781_spi_probe()
48 static int adau1781_spi_remove(struct spi_device *spi) in adau1781_spi_remove() argument
50 adau17x1_remove(&spi->dev); in adau1781_spi_remove()
[all …]
Dadau1761-spi.c19 struct spi_device *spi = to_spi_device(dev); in adau1761_spi_switch_mode() local
25 spi_w8r8(spi, 0x00); in adau1761_spi_switch_mode()
26 spi_w8r8(spi, 0x00); in adau1761_spi_switch_mode()
27 spi_w8r8(spi, 0x00); in adau1761_spi_switch_mode()
30 static int adau1761_spi_probe(struct spi_device *spi) in adau1761_spi_probe() argument
32 const struct spi_device_id *id = spi_get_device_id(spi); in adau1761_spi_probe()
43 return adau1761_probe(&spi->dev, in adau1761_spi_probe()
44 devm_regmap_init_spi(spi, &config), in adau1761_spi_probe()
48 static int adau1761_spi_remove(struct spi_device *spi) in adau1761_spi_remove() argument
50 adau17x1_remove(&spi->dev); in adau1761_spi_remove()
[all …]
Dadau1977-spi.c21 struct spi_device *spi = to_spi_device(dev); in adau1977_spi_switch_mode() local
27 spi_w8r8(spi, 0x00); in adau1977_spi_switch_mode()
28 spi_w8r8(spi, 0x00); in adau1977_spi_switch_mode()
29 spi_w8r8(spi, 0x00); in adau1977_spi_switch_mode()
32 static int adau1977_spi_probe(struct spi_device *spi) in adau1977_spi_probe() argument
34 const struct spi_device_id *id = spi_get_device_id(spi); in adau1977_spi_probe()
45 return adau1977_probe(&spi->dev, in adau1977_spi_probe()
46 devm_regmap_init_spi(spi, &config), in adau1977_spi_probe()
56 MODULE_DEVICE_TABLE(spi, adau1977_spi_ids);
Dtlv320aic26.c32 struct spi_device *spi; member
73 dev_dbg(&aic26->spi->dev, "aic26_hw_params(substream=%p, params=%p)\n", in aic26_hw_params()
75 dev_dbg(&aic26->spi->dev, "rate=%i width=%d\n", params_rate(params), in aic26_hw_params()
89 dev_dbg(&aic26->spi->dev, "bad rate\n"); return -EINVAL; in aic26_hw_params()
99 dev_dbg(&aic26->spi->dev, "bad format\n"); return -EINVAL; in aic26_hw_params()
113 dev_dbg(&aic26->spi->dev, "Setting PLLM to %d.%04d\n", jval, dval); in aic26_hw_params()
143 dev_dbg(&aic26->spi->dev, "aic26_mute(dai=%p, mute=%i)\n", in aic26_mute()
161 dev_dbg(&aic26->spi->dev, "aic26_set_sysclk(dai=%p, clk_id==%i," in aic26_set_sysclk()
178 dev_dbg(&aic26->spi->dev, "aic26_set_fmt(dai=%p, fmt==%i)\n", in aic26_set_fmt()
186 dev_dbg(&aic26->spi->dev, "bad master\n"); return -EINVAL; in aic26_set_fmt()
[all …]
Dtlv320aic23-spi.c18 static int aic23_spi_probe(struct spi_device *spi) in aic23_spi_probe() argument
23 dev_dbg(&spi->dev, "probing tlv320aic23 spi device\n"); in aic23_spi_probe()
25 spi->mode = SPI_MODE_0; in aic23_spi_probe()
26 ret = spi_setup(spi); in aic23_spi_probe()
30 regmap = devm_regmap_init_spi(spi, &tlv320aic23_regmap); in aic23_spi_probe()
31 return tlv320aic23_probe(&spi->dev, regmap); in aic23_spi_probe()
Dpcm3168a-spi.c18 static int pcm3168a_spi_probe(struct spi_device *spi) in pcm3168a_spi_probe() argument
22 regmap = devm_regmap_init_spi(spi, &pcm3168a_regmap); in pcm3168a_spi_probe()
26 return pcm3168a_probe(&spi->dev, regmap); in pcm3168a_spi_probe()
29 static int pcm3168a_spi_remove(struct spi_device *spi) in pcm3168a_spi_remove() argument
31 pcm3168a_remove(&spi->dev); in pcm3168a_spi_remove()
40 MODULE_DEVICE_TABLE(spi, pcm3168a_spi_id);
Dpcm3060-spi.c13 static int pcm3060_spi_probe(struct spi_device *spi) in pcm3060_spi_probe() argument
17 priv = devm_kzalloc(&spi->dev, sizeof(*priv), GFP_KERNEL); in pcm3060_spi_probe()
21 spi_set_drvdata(spi, priv); in pcm3060_spi_probe()
23 priv->regmap = devm_regmap_init_spi(spi, &pcm3060_regmap); in pcm3060_spi_probe()
27 return pcm3060_probe(&spi->dev); in pcm3060_spi_probe()
34 MODULE_DEVICE_TABLE(spi, pcm3060_spi_id);
Dpcm512x-spi.c15 static int pcm512x_spi_probe(struct spi_device *spi) in pcm512x_spi_probe() argument
20 regmap = devm_regmap_init_spi(spi, &pcm512x_regmap); in pcm512x_spi_probe()
26 return pcm512x_probe(&spi->dev, regmap); in pcm512x_spi_probe()
29 static int pcm512x_spi_remove(struct spi_device *spi) in pcm512x_spi_remove() argument
31 pcm512x_remove(&spi->dev); in pcm512x_spi_remove()
42 MODULE_DEVICE_TABLE(spi, pcm512x_spi_id);
Dtlv320aic32x4-spi.c19 static int aic32x4_spi_probe(struct spi_device *spi) in aic32x4_spi_probe() argument
30 regmap = devm_regmap_init_spi(spi, &config); in aic32x4_spi_probe()
31 return aic32x4_probe(&spi->dev, regmap); in aic32x4_spi_probe()
34 static int aic32x4_spi_remove(struct spi_device *spi) in aic32x4_spi_remove() argument
36 return aic32x4_remove(&spi->dev); in aic32x4_spi_remove()
44 MODULE_DEVICE_TABLE(spi, aic32x4_spi_id);
Dak4104.c265 static int ak4104_spi_probe(struct spi_device *spi) in ak4104_spi_probe() argument
272 spi->bits_per_word = 8; in ak4104_spi_probe()
273 spi->mode = SPI_MODE_0; in ak4104_spi_probe()
274 ret = spi_setup(spi); in ak4104_spi_probe()
278 ak4104 = devm_kzalloc(&spi->dev, sizeof(struct ak4104_private), in ak4104_spi_probe()
283 ak4104->regulator = devm_regulator_get(&spi->dev, "vdd"); in ak4104_spi_probe()
286 dev_err(&spi->dev, "Unable to get Vdd regulator: %d\n", ret); in ak4104_spi_probe()
290 ak4104->regmap = devm_regmap_init_spi(spi, &ak4104_regmap); in ak4104_spi_probe()
296 reset_gpiod = devm_gpiod_get_optional(&spi->dev, "reset", in ak4104_spi_probe()
310 spi_set_drvdata(spi, ak4104); in ak4104_spi_probe()
[all …]
Dpcm186x-spi.c25 static int pcm186x_spi_probe(struct spi_device *spi) in pcm186x_spi_probe() argument
28 (enum pcm186x_type)spi_get_device_id(spi)->driver_data; in pcm186x_spi_probe()
29 int irq = spi->irq; in pcm186x_spi_probe()
32 regmap = devm_regmap_init_spi(spi, &pcm186x_regmap); in pcm186x_spi_probe()
36 return pcm186x_probe(&spi->dev, type, irq, regmap); in pcm186x_spi_probe()
46 MODULE_DEVICE_TABLE(spi, pcm186x_spi_id);
Dwm8804-spi.c16 static int wm8804_spi_probe(struct spi_device *spi) in wm8804_spi_probe() argument
20 regmap = devm_regmap_init_spi(spi, &wm8804_regmap_config); in wm8804_spi_probe()
24 return wm8804_probe(&spi->dev, regmap); in wm8804_spi_probe()
27 static int wm8804_spi_remove(struct spi_device *spi) in wm8804_spi_remove() argument
29 wm8804_remove(&spi->dev); in wm8804_spi_remove()
Dpcm179x-spi.c17 static int pcm179x_spi_probe(struct spi_device *spi) in pcm179x_spi_probe() argument
22 regmap = devm_regmap_init_spi(spi, &pcm179x_regmap_config); in pcm179x_spi_probe()
25 dev_err(&spi->dev, "Failed to allocate regmap: %d\n", ret); in pcm179x_spi_probe()
29 return pcm179x_common_init(&spi->dev, regmap); in pcm179x_spi_probe()
42 MODULE_DEVICE_TABLE(spi, pcm179x_spi_ids);
Dad193x-spi.c16 static int ad193x_spi_probe(struct spi_device *spi) in ad193x_spi_probe() argument
18 const struct spi_device_id *id = spi_get_device_id(spi); in ad193x_spi_probe()
27 return ad193x_probe(&spi->dev, devm_regmap_init_spi(spi, &config), in ad193x_spi_probe()
40 MODULE_DEVICE_TABLE(spi, ad193x_spi_id);
Dcs4341.c274 static int cs4341_spi_probe(struct spi_device *spi) in cs4341_spi_probe() argument
279 cs4341 = devm_kzalloc(&spi->dev, sizeof(*cs4341), GFP_KERNEL); in cs4341_spi_probe()
283 if (!spi->bits_per_word) in cs4341_spi_probe()
284 spi->bits_per_word = 8; in cs4341_spi_probe()
285 if (!spi->max_speed_hz) in cs4341_spi_probe()
286 spi->max_speed_hz = 6000000; in cs4341_spi_probe()
287 ret = spi_setup(spi); in cs4341_spi_probe()
291 spi_set_drvdata(spi, cs4341); in cs4341_spi_probe()
301 cs4341->regmap = devm_regmap_init_spi(spi, &cs4341->regcfg); in cs4341_spi_probe()
305 return cs4341_probe(&spi->dev); in cs4341_spi_probe()
Dadav801.c20 MODULE_DEVICE_TABLE(spi, adav80x_spi_id);
22 static int adav80x_spi_probe(struct spi_device *spi) in adav80x_spi_probe() argument
29 return adav80x_bus_probe(&spi->dev, devm_regmap_init_spi(spi, &config)); in adav80x_spi_probe()
DMakefile7 snd-soc-ad193x-spi-objs := ad193x-spi.o
17 snd-soc-adau1761-spi-objs := adau1761-spi.o
20 snd-soc-adau1781-spi-objs := adau1781-spi.o
22 snd-soc-adau1977-spi-objs := adau1977-spi.o
65 snd-soc-cs4271-spi-objs := cs4271-spi.o
92 snd-soc-es8328-spi-objs := es8328-spi.o
143 snd-soc-pcm179x-spi-objs := pcm179x-spi.o
146 snd-soc-pcm186x-spi-objs := pcm186x-spi.o
150 snd-soc-pcm3060-spi-objs := pcm3060-spi.o
153 snd-soc-pcm3168a-spi-objs := pcm3168a-spi.o
[all …]
Dwm0010.c344 struct spi_device *spi = to_spi_device(component->dev); in wm0010_firmware_load() local
463 ret = spi_async(spi, &xfer->m); in wm0010_firmware_load()
497 struct spi_device *spi = to_spi_device(component->dev); in wm0010_stage2_load() local
541 ret = spi_sync(spi, &m); in wm0010_stage2_load()
569 struct spi_device *spi = to_spi_device(component->dev); in wm0010_boot() local
600 dev_err(&spi->dev, "Failed to enable core supplies: %d\n", in wm0010_boot()
608 dev_err(&spi->dev, "Failed to enable DBVDD: %d\n", ret); in wm0010_boot()
671 ret = spi_sync(spi, &m); in wm0010_boot()
678 ret = spi_sync(spi, &m); in wm0010_boot()
865 static int wm0010_spi_probe(struct spi_device *spi) in wm0010_spi_probe() argument
[all …]
Des8328-spi.c22 static int es8328_spi_probe(struct spi_device *spi) in es8328_spi_probe() argument
24 return es8328_probe(&spi->dev, in es8328_spi_probe()
25 devm_regmap_init_spi(spi, &es8328_regmap_config)); in es8328_spi_probe()
Dssm2602-spi.c16 static int ssm2602_spi_probe(struct spi_device *spi) in ssm2602_spi_probe() argument
18 return ssm2602_probe(&spi->dev, SSM2602, in ssm2602_spi_probe()
19 devm_regmap_init_spi(spi, &ssm2602_regmap_config)); in ssm2602_spi_probe()
Dcs4271-spi.c14 static int cs4271_spi_probe(struct spi_device *spi) in cs4271_spi_probe() argument
24 return cs4271_probe(&spi->dev, devm_regmap_init_spi(spi, &config)); in cs4271_spi_probe()
Dwm8731.c661 static int wm8731_spi_probe(struct spi_device *spi) in wm8731_spi_probe() argument
666 wm8731 = devm_kzalloc(&spi->dev, sizeof(*wm8731), GFP_KERNEL); in wm8731_spi_probe()
670 wm8731->mclk = devm_clk_get(&spi->dev, "mclk"); in wm8731_spi_probe()
675 dev_warn(&spi->dev, "Assuming static MCLK\n"); in wm8731_spi_probe()
677 dev_err(&spi->dev, "Failed to get MCLK: %d\n", in wm8731_spi_probe()
685 spi_set_drvdata(spi, wm8731); in wm8731_spi_probe()
687 ret = wm8731_request_supplies(&spi->dev, wm8731); in wm8731_spi_probe()
691 wm8731->regmap = devm_regmap_init_spi(spi, &wm8731_regmap); in wm8731_spi_probe()
694 dev_err(&spi->dev, "Failed to allocate register map: %d\n", in wm8731_spi_probe()
699 ret = wm8731_hw_init(&spi->dev, wm8731); in wm8731_spi_probe()
[all …]
Dad1836.c367 static int ad1836_spi_probe(struct spi_device *spi) in ad1836_spi_probe() argument
372 ad1836 = devm_kzalloc(&spi->dev, sizeof(struct ad1836_priv), in ad1836_spi_probe()
377 ad1836->regmap = devm_regmap_init_spi(spi, &ad1836_regmap_config); in ad1836_spi_probe()
381 ad1836->type = spi_get_device_id(spi)->driver_data; in ad1836_spi_probe()
383 spi_set_drvdata(spi, ad1836); in ad1836_spi_probe()
385 ret = devm_snd_soc_register_component(&spi->dev, in ad1836_spi_probe()
398 MODULE_DEVICE_TABLE(spi, ad1836_ids);
Dwm8741.c627 static int wm8741_spi_probe(struct spi_device *spi) in wm8741_spi_probe() argument
632 wm8741 = devm_kzalloc(&spi->dev, sizeof(struct wm8741_priv), in wm8741_spi_probe()
640 ret = devm_regulator_bulk_get(&spi->dev, ARRAY_SIZE(wm8741->supplies), in wm8741_spi_probe()
643 dev_err(&spi->dev, "Failed to request supplies: %d\n", ret); in wm8741_spi_probe()
647 wm8741->regmap = devm_regmap_init_spi(spi, &wm8741_regmap); in wm8741_spi_probe()
650 dev_err(&spi->dev, "Failed to init regmap: %d\n", ret); in wm8741_spi_probe()
654 ret = wm8741_set_pdata(&spi->dev, wm8741); in wm8741_spi_probe()
656 dev_err(&spi->dev, "Failed to set pdata: %d\n", ret); in wm8741_spi_probe()
660 spi_set_drvdata(spi, wm8741); in wm8741_spi_probe()
662 ret = devm_snd_soc_register_component(&spi->dev, in wm8741_spi_probe()
/sound/spi/
Dat73c213.c70 struct spi_device *spi; member
102 retval = spi_sync(chip->spi, &msg); in snd_at73c213_write_reg()
198 dev_info(&chip->spi->dev, in snd_at73c213_set_bitrate()
290 dev_dbg(&chip->spi->dev, "spurious command %x\n", cmd); in snd_at73c213_pcm_trigger()
879 struct spi_device *spi) in snd_at73c213_dev_init() argument
902 dev_dbg(&chip->spi->dev, "unable to request irq %d\n", irq); in snd_at73c213_dev_init()
943 static int snd_at73c213_probe(struct spi_device *spi) in snd_at73c213_probe() argument
951 board = spi->dev.platform_data; in snd_at73c213_probe()
953 dev_dbg(&spi->dev, "no platform_data\n"); in snd_at73c213_probe()
958 dev_dbg(&spi->dev, "no DAC clk\n"); in snd_at73c213_probe()
[all …]

12