spdif 147 drivers/clk/mxs/clk-imx23.c clks[spdif] = mxs_clk_gate("spdif", "spdif_div", SPDIF, 31); spdif 218 drivers/clk/mxs/clk-imx28.c clks[spdif] = mxs_clk_gate("spdif", "spdif_div", SPDIF, 31); spdif 110 drivers/clk/tegra/clk-tegra-audio.c AUDIO(spdif, AUDIO_SYNC_CLK_SPDIF), spdif 125 drivers/clk/tegra/clk-tegra-audio.c AUDIO2X(spdif, 118, 29), spdif 743 drivers/gpu/drm/bridge/sii902x.c .spdif = 0, spdif 1066 drivers/gpu/drm/i2c/tda998x_drv.c bool spdif = daifmt->fmt == HDMI_SPDIF; spdif 1094 drivers/gpu/drm/i2c/tda998x_drv.c if (!spdif && spdif 1104 drivers/gpu/drm/i2c/tda998x_drv.c ret = tda998x_derive_routing(priv, &audio, AUDIO_ROUTE_I2S + spdif); spdif 1108 drivers/gpu/drm/i2c/tda998x_drv.c bclk_ratio = spdif ? 64 : params->sample_width * 2; spdif 1177 drivers/gpu/drm/i2c/tda998x_drv.c codec_data.spdif = 1; spdif 1752 drivers/gpu/drm/i2c/tda998x_drv.c bool spdif = p->audio_params.format == AFMT_SPDIF; spdif 1754 drivers/gpu/drm/i2c/tda998x_drv.c route = AUDIO_ROUTE_I2S + spdif; spdif 1765 drivers/gpu/drm/i2c/tda998x_drv.c ratio = spdif ? 64 : p->audio_params.sample_width * 2; spdif 864 drivers/gpu/drm/rockchip/cdn-dp-core.c .spdif = 1, spdif 479 drivers/gpu/drm/zte/zx_hdmi.c .spdif = 1, spdif 1588 drivers/pinctrl/actions/pinctrl-s700.c [S700_MUX_SPDIF] = FUNCTION(spdif), spdif 1436 drivers/pinctrl/actions/pinctrl-s900.c [S900_MUX_SPDIF] = FUNCTION(spdif), spdif 534 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c CYGNUS_PIN_GROUP(spdif, 0xc, 20, 1), spdif 663 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c CYGNUS_PIN_FUNCTION(spdif), spdif 1051 drivers/pinctrl/meson/pinctrl-meson8.c FUNCTION(spdif), spdif 509 drivers/pinctrl/qcom/pinctrl-ipq8064.c FUNCTION(spdif), spdif 550 drivers/pinctrl/qcom/pinctrl-ipq8064.c PINGROUP(10, gsbi4, spdif, sata, ssbi, mdio, spmi, NA, NA, NA, NA), spdif 588 drivers/pinctrl/qcom/pinctrl-ipq8064.c PINGROUP(48, pcie2_rst, spdif, NA, NA, NA, NA, NA, NA, NA, NA), spdif 1515 drivers/pinctrl/tegra/pinctrl-tegra114.c FUNCTION(spdif), spdif 1679 drivers/pinctrl/tegra/pinctrl-tegra124.c FUNCTION(spdif), spdif 1946 drivers/pinctrl/tegra/pinctrl-tegra20.c FUNCTION(spdif), spdif 1246 drivers/pinctrl/tegra/pinctrl-tegra210.c FUNCTION(spdif), spdif 2073 drivers/pinctrl/tegra/pinctrl-tegra30.c FUNCTION(spdif), spdif 86 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c struct snd_pcm_substream *substream, int spdif) spdif 97 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c if (spdif && chip->opened) { spdif 100 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c } else if (!spdif && (chip->opened & (1 << idx))) { spdif 130 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c if (spdif) { spdif 343 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c u32 numchannels, bool spdif) spdif 355 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c if (!spdif) { spdif 362 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c spdif ? &snd_bcm2835_playback_spdif_ops : spdif 368 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c if (spdif) spdif 89 drivers/staging/vc04_services/bcm2835-audio/bcm2835.h u32 numchannels, bool spdif); spdif 387 include/sound/ac97_codec.h spdif: 1; /* spdif pcm */ spdif 108 include/sound/hdmi-codec.h uint spdif:1; spdif 426 sound/aoa/codecs/onyx.c SINGLE_BIT(spdif, spdif 151 sound/pci/ac97/ac97_pcm.c if (pcm->spdif) spdif 475 sound/pci/ac97/ac97_pcm.c rpcm->spdif = pcm->spdif; spdif 484 sound/pci/ac97/ac97_pcm.c if (pcm->spdif && pcm->stream == 0) spdif 37 sound/pci/ali5451/ali5451.c static bool spdif; spdif 45 sound/pci/ali5451/ali5451.c module_param(spdif, bool, 0444); spdif 46 sound/pci/ali5451/ali5451.c MODULE_PARM_DESC(spdif, "Support SPDIF I/O"); spdif 2212 sound/pci/ali5451/ali5451.c err = snd_ali_create(card, pci, pcm_channels, spdif, &codec); spdif 1206 sound/pci/atiixp.c .spdif = 1, spdif 83 sound/pci/ens1370.c static int spdif[SNDRV_CARDS]; spdif 103 sound/pci/ens1370.c module_param_array(spdif, int, NULL, 0444); spdif 104 sound/pci/ens1370.c MODULE_PARM_DESC(spdif, "S/PDIF output (-1 = none, 0 = auto, 1 = force)."); spdif 420 sound/pci/ens1370.c unsigned int spdif; spdif 1123 sound/pci/ens1370.c if (ensoniq->spdif && ensoniq->playback2_substream == NULL) spdif 1146 sound/pci/ens1370.c if (ensoniq->spdif && ensoniq->playback1_substream == NULL) spdif 2403 sound/pci/ens1370.c if ((err = snd_ensoniq_1371_mixer(ensoniq, spdif[dev], lineio[dev])) < 0) { spdif 2208 sound/pci/hda/hda_codec.c struct hda_spdif_out *spdif; spdif 2213 sound/pci/hda/hda_codec.c spdif = snd_array_elem(&codec->spdif_out, idx); spdif 2214 sound/pci/hda/hda_codec.c ucontrol->value.iec958.status[0] = spdif->status & 0xff; spdif 2215 sound/pci/hda/hda_codec.c ucontrol->value.iec958.status[1] = (spdif->status >> 8) & 0xff; spdif 2216 sound/pci/hda/hda_codec.c ucontrol->value.iec958.status[2] = (spdif->status >> 16) & 0xff; spdif 2217 sound/pci/hda/hda_codec.c ucontrol->value.iec958.status[3] = (spdif->status >> 24) & 0xff; spdif 2314 sound/pci/hda/hda_codec.c struct hda_spdif_out *spdif; spdif 2322 sound/pci/hda/hda_codec.c spdif = snd_array_elem(&codec->spdif_out, idx); spdif 2323 sound/pci/hda/hda_codec.c nid = spdif->nid; spdif 2324 sound/pci/hda/hda_codec.c spdif->status = ucontrol->value.iec958.status[0] | spdif 2328 sound/pci/hda/hda_codec.c val = convert_from_spdif_status(spdif->status); spdif 2329 sound/pci/hda/hda_codec.c val |= spdif->ctls & 1; spdif 2330 sound/pci/hda/hda_codec.c change = spdif->ctls != val; spdif 2331 sound/pci/hda/hda_codec.c spdif->ctls = val; spdif 2345 sound/pci/hda/hda_codec.c struct hda_spdif_out *spdif; spdif 2350 sound/pci/hda/hda_codec.c spdif = snd_array_elem(&codec->spdif_out, idx); spdif 2351 sound/pci/hda/hda_codec.c ucontrol->value.integer.value[0] = spdif->ctls & AC_DIG1_ENABLE; spdif 2372 sound/pci/hda/hda_codec.c struct hda_spdif_out *spdif; spdif 2380 sound/pci/hda/hda_codec.c spdif = snd_array_elem(&codec->spdif_out, idx); spdif 2381 sound/pci/hda/hda_codec.c nid = spdif->nid; spdif 2382 sound/pci/hda/hda_codec.c val = spdif->ctls & ~AC_DIG1_ENABLE; spdif 2385 sound/pci/hda/hda_codec.c change = spdif->ctls != val; spdif 2386 sound/pci/hda/hda_codec.c spdif->ctls = val; spdif 2447 sound/pci/hda/hda_codec.c struct hda_spdif_out *spdif; spdif 2472 sound/pci/hda/hda_codec.c spdif = snd_array_new(&codec->spdif_out); spdif 2473 sound/pci/hda/hda_codec.c if (!spdif) spdif 2485 sound/pci/hda/hda_codec.c spdif->nid = cvt_nid; spdif 2488 sound/pci/hda/hda_codec.c spdif->ctls = val; spdif 2489 sound/pci/hda/hda_codec.c spdif->status = convert_to_spdif_status(spdif->ctls); spdif 2504 sound/pci/hda/hda_codec.c struct hda_spdif_out *spdif; spdif 2507 sound/pci/hda/hda_codec.c snd_array_for_each(&codec->spdif_out, i, spdif) { spdif 2508 sound/pci/hda/hda_codec.c if (spdif->nid == nid) spdif 2509 sound/pci/hda/hda_codec.c return spdif; spdif 2524 sound/pci/hda/hda_codec.c struct hda_spdif_out *spdif; spdif 2529 sound/pci/hda/hda_codec.c spdif = snd_array_elem(&codec->spdif_out, idx); spdif 2530 sound/pci/hda/hda_codec.c spdif->nid = (u16)-1; spdif 2545 sound/pci/hda/hda_codec.c struct hda_spdif_out *spdif; spdif 2551 sound/pci/hda/hda_codec.c spdif = snd_array_elem(&codec->spdif_out, idx); spdif 2552 sound/pci/hda/hda_codec.c if (spdif->nid != nid) { spdif 2553 sound/pci/hda/hda_codec.c spdif->nid = nid; spdif 2554 sound/pci/hda/hda_codec.c val = spdif->ctls; spdif 3552 sound/pci/hda/hda_codec.c struct hda_spdif_out *spdif; spdif 3556 sound/pci/hda/hda_codec.c spdif = snd_hda_spdif_out_of_nid(codec, nid); spdif 3560 sound/pci/hda/hda_codec.c if (WARN_ON(spdif == NULL)) spdif 3566 sound/pci/hda/hda_codec.c (spdif->ctls & AC_DIG1_ENABLE) && spdif 3573 sound/pci/hda/hda_codec.c spdif->ctls & ~AC_DIG1_ENABLE & 0xff, spdif 3585 sound/pci/hda/hda_codec.c spdif->ctls & 0xff, -1); spdif 3740 sound/pci/hda/hda_codec.c struct hda_spdif_out *spdif; spdif 3744 sound/pci/hda/hda_codec.c spdif = snd_hda_spdif_out_of_nid(codec, mout->dig_out_nid); spdif 3747 sound/pci/hda/hda_codec.c if (chs == 2 && spdif != NULL && spdif 3750 sound/pci/hda/hda_codec.c !(spdif->status & IEC958_AES0_NONAUDIO)) { spdif 159 sound/pci/hda/hda_controller.c struct hda_spdif_out *spdif = spdif 161 sound/pci/hda/hda_controller.c unsigned short ctls = spdif ? spdif->ctls : 0; spdif 1856 sound/pci/hda/patch_hdmi.c struct hda_spdif_out *spdif; spdif 1860 sound/pci/hda/patch_hdmi.c spdif = snd_hda_spdif_out_of_nid(codec, cvt_nid); spdif 1864 sound/pci/hda/patch_hdmi.c if (WARN_ON(spdif == NULL)) { spdif 1868 sound/pci/hda/patch_hdmi.c non_pcm = !!(spdif->status & IEC958_AES0_NONAUDIO); spdif 3267 sound/pci/hda/patch_hdmi.c struct hda_spdif_out *spdif; spdif 3272 sound/pci/hda/patch_hdmi.c spdif = snd_hda_spdif_out_of_nid(codec, per_cvt->cvt_nid); spdif 3279 sound/pci/hda/patch_hdmi.c if (codec->spdif_status_reset && (spdif->ctls & AC_DIG1_ENABLE)) spdif 3284 sound/pci/hda/patch_hdmi.c spdif->ctls & ~AC_DIG1_ENABLE & 0xff); spdif 3296 sound/pci/hda/patch_hdmi.c if (codec->spdif_status_reset && (spdif->ctls & AC_DIG1_ENABLE)) { spdif 3301 sound/pci/hda/patch_hdmi.c spdif->ctls & 0xff); spdif 3318 sound/pci/hda/patch_hdmi.c (spdif->ctls & AC_DIG1_ENABLE)) spdif 3323 sound/pci/hda/patch_hdmi.c spdif->ctls & ~AC_DIG1_ENABLE & 0xff); spdif 3339 sound/pci/hda/patch_hdmi.c (spdif->ctls & AC_DIG1_ENABLE)) { spdif 3344 sound/pci/hda/patch_hdmi.c spdif->ctls & 0xff); spdif 199 sound/pci/ice1712/delta.c snd_cs8403_decode_spdif_bits(&ucontrol->value.iec958, ice->spdif.cs8403_bits); spdif 209 sound/pci/ice1712/delta.c change = ice->spdif.cs8403_bits != val; spdif 210 sound/pci/ice1712/delta.c ice->spdif.cs8403_bits = val; spdif 222 sound/pci/ice1712/delta.c snd_cs8403_decode_spdif_bits(&ucontrol->value.iec958, ice->spdif.cs8403_stream_bits); spdif 232 sound/pci/ice1712/delta.c change = ice->spdif.cs8403_stream_bits != val; spdif 233 sound/pci/ice1712/delta.c ice->spdif.cs8403_stream_bits = val; spdif 376 sound/pci/ice1712/delta.c ice->spdif.cs8403_stream_bits = ice->spdif.cs8403_bits; spdif 387 sound/pci/ice1712/delta.c tmp = ice->spdif.cs8403_stream_bits; spdif 396 sound/pci/ice1712/delta.c change = ice->spdif.cs8403_stream_bits != tmp; spdif 397 sound/pci/ice1712/delta.c ice->spdif.cs8403_stream_bits = tmp; spdif 400 sound/pci/ice1712/delta.c snd_ctl_notify(ice->card, SNDRV_CTL_EVENT_MASK_VALUE, &ice->spdif.stream_ctl->id); spdif 588 sound/pci/ice1712/delta.c snd_ice1712_delta_cs8403_spdif_write(ice, ice->spdif.cs8403_bits); spdif 696 sound/pci/ice1712/delta.c ice->spdif.ops.open = delta_open_spdif; spdif 697 sound/pci/ice1712/delta.c ice->spdif.ops.setup_rate = delta_setup_spdif; spdif 698 sound/pci/ice1712/delta.c ice->spdif.ops.default_get = delta_spdif_default_get; spdif 699 sound/pci/ice1712/delta.c ice->spdif.ops.default_put = delta_spdif_default_put; spdif 700 sound/pci/ice1712/delta.c ice->spdif.ops.stream_get = delta_spdif_stream_get; spdif 701 sound/pci/ice1712/delta.c ice->spdif.ops.stream_put = delta_spdif_stream_put; spdif 703 sound/pci/ice1712/delta.c snd_ice1712_delta_cs8403_spdif_write(ice, ice->spdif.cs8403_bits); spdif 254 sound/pci/ice1712/ews.c snd_cs8404_decode_spdif_bits(&ucontrol->value.iec958, ice->spdif.cs8403_bits); spdif 264 sound/pci/ice1712/ews.c change = ice->spdif.cs8403_bits != val; spdif 265 sound/pci/ice1712/ews.c ice->spdif.cs8403_bits = val; spdif 277 sound/pci/ice1712/ews.c snd_cs8404_decode_spdif_bits(&ucontrol->value.iec958, ice->spdif.cs8403_stream_bits); spdif 287 sound/pci/ice1712/ews.c change = ice->spdif.cs8403_stream_bits != val; spdif 288 sound/pci/ice1712/ews.c ice->spdif.cs8403_stream_bits = val; spdif 302 sound/pci/ice1712/ews.c ice->spdif.cs8403_stream_bits = ice->spdif.cs8403_bits; spdif 313 sound/pci/ice1712/ews.c tmp = ice->spdif.cs8403_stream_bits; spdif 322 sound/pci/ice1712/ews.c change = ice->spdif.cs8403_stream_bits != tmp; spdif 323 sound/pci/ice1712/ews.c ice->spdif.cs8403_stream_bits = tmp; spdif 326 sound/pci/ice1712/ews.c snd_ctl_notify(ice->card, SNDRV_CTL_EVENT_MASK_VALUE, &ice->spdif.stream_ctl->id); spdif 516 sound/pci/ice1712/ews.c ice->spdif.ops.open = ews88_open_spdif; spdif 517 sound/pci/ice1712/ews.c ice->spdif.ops.setup_rate = ews88_setup_spdif; spdif 518 sound/pci/ice1712/ews.c ice->spdif.ops.default_get = ews88_spdif_default_get; spdif 519 sound/pci/ice1712/ews.c ice->spdif.ops.default_put = ews88_spdif_default_put; spdif 520 sound/pci/ice1712/ews.c ice->spdif.ops.stream_get = ews88_spdif_stream_get; spdif 521 sound/pci/ice1712/ews.c ice->spdif.ops.stream_put = ews88_spdif_stream_put; spdif 523 sound/pci/ice1712/ews.c snd_ice1712_ews_cs8404_spdif_write(ice, ice->spdif.cs8403_bits); spdif 386 sound/pci/ice1712/ice1712.c ice->spdif.ops.open = open_cs8427; spdif 387 sound/pci/ice1712/ice1712.c ice->spdif.ops.close = close_cs8427; spdif 388 sound/pci/ice1712/ice1712.c ice->spdif.ops.setup_rate = setup_cs8427; spdif 1040 sound/pci/ice1712/ice1712.c if (ice->spdif.ops.setup_rate) spdif 1041 sound/pci/ice1712/ice1712.c ice->spdif.ops.setup_rate(ice, rate); spdif 1170 sound/pci/ice1712/ice1712.c if (ice->spdif.ops.open) spdif 1171 sound/pci/ice1712/ice1712.c ice->spdif.ops.open(ice, substream); spdif 1201 sound/pci/ice1712/ice1712.c if (ice->spdif.ops.close) spdif 1202 sound/pci/ice1712/ice1712.c ice->spdif.ops.close(ice, substream); spdif 1638 sound/pci/ice1712/ice1712.c if (ice->spdif.ops.default_get) spdif 1639 sound/pci/ice1712/ice1712.c ice->spdif.ops.default_get(ice, ucontrol); spdif 1647 sound/pci/ice1712/ice1712.c if (ice->spdif.ops.default_put) spdif 1648 sound/pci/ice1712/ice1712.c return ice->spdif.ops.default_put(ice, ucontrol); spdif 1665 sound/pci/ice1712/ice1712.c if (ice->spdif.ops.default_get) { spdif 1687 sound/pci/ice1712/ice1712.c if (ice->spdif.ops.default_get) { spdif 1725 sound/pci/ice1712/ice1712.c if (ice->spdif.ops.stream_get) spdif 1726 sound/pci/ice1712/ice1712.c ice->spdif.ops.stream_get(ice, ucontrol); spdif 1734 sound/pci/ice1712/ice1712.c if (ice->spdif.ops.stream_put) spdif 1735 sound/pci/ice1712/ice1712.c return ice->spdif.ops.stream_put(ice, ucontrol); spdif 2424 sound/pci/ice1712/ice1712.c ice->spdif.stream_ctl = kctl; spdif 2548 sound/pci/ice1712/ice1712.c ice->spdif.cs8403_bits = spdif 2549 sound/pci/ice1712/ice1712.c ice->spdif.cs8403_stream_bits = (0x01 | /* consumer format */ spdif 342 sound/pci/ice1712/ice1712.h struct snd_ice1712_spdif spdif; spdif 700 sound/pci/ice1712/ice1724.c if (ice->spdif.ops.setup_rate) spdif 701 sound/pci/ice1712/ice1724.c ice->spdif.ops.setup_rate(ice, rate); spdif 1227 sound/pci/ice1712/ice1724.c if (ice->spdif.ops.open) spdif 1228 sound/pci/ice1712/ice1724.c ice->spdif.ops.open(ice, substream); spdif 1239 sound/pci/ice1712/ice1724.c if (ice->spdif.ops.close) spdif 1240 sound/pci/ice1712/ice1724.c ice->spdif.ops.close(ice, substream); spdif 1264 sound/pci/ice1712/ice1724.c if (ice->spdif.ops.open) spdif 1265 sound/pci/ice1712/ice1724.c ice->spdif.ops.open(ice, substream); spdif 1276 sound/pci/ice1712/ice1724.c if (ice->spdif.ops.close) spdif 1277 sound/pci/ice1712/ice1724.c ice->spdif.ops.close(ice, substream); spdif 2450 sound/pci/ice1712/ice1724.c ice->spdif.stream_ctl = kctl; spdif 637 sound/pci/ice1712/juli.c ice->spdif.ops.open = juli_spdif_in_open; spdif 1006 sound/pci/ice1712/quartet.c ice->spdif.ops.open = ice->pro_open = qtet_spdif_in_open; spdif 1713 sound/pci/intel8x0.c .spdif = 1, spdif 1002 sound/pci/rme32.c int spdif = 0; spdif 1007 sound/pci/rme32.c spdif = (rme32->wcreg & RME32_WCR_ADAT) == 0; spdif 1009 sound/pci/rme32.c if (spdif) { spdif 1319 sound/pci/rme96.c int spdif = 0; spdif 1327 sound/pci/rme96.c spdif = (rme96->wcreg & RME96_WCR_ADAT) == 0; spdif 1329 sound/pci/rme96.c if (spdif) { spdif 302 sound/pci/trident/trident.h spdif: 1, spdif 381 sound/pci/trident/trident.h struct snd_pcm *spdif; /* SPDIF PCM */ spdif 1578 sound/pci/trident/trident_main.c if (voice->spdif) spdif 1900 sound/pci/trident/trident_main.c voice->spdif = 1; spdif 2267 sound/pci/trident/trident_main.c struct snd_pcm *spdif; spdif 2270 sound/pci/trident/trident_main.c if ((err = snd_pcm_new(trident->card, "trident_dx_nx IEC958", device, 1, 0, &spdif)) < 0) spdif 2273 sound/pci/trident/trident_main.c spdif->private_data = trident; spdif 2275 sound/pci/trident/trident_main.c snd_pcm_set_ops(spdif, SNDRV_PCM_STREAM_PLAYBACK, &snd_trident_spdif_ops); spdif 2277 sound/pci/trident/trident_main.c snd_pcm_set_ops(spdif, SNDRV_PCM_STREAM_PLAYBACK, &snd_trident_spdif_7018_ops); spdif 2279 sound/pci/trident/trident_main.c spdif->info_flags = 0; spdif 2280 sound/pci/trident/trident_main.c strcpy(spdif->name, "Trident 4DWave IEC958"); spdif 2281 sound/pci/trident/trident_main.c trident->spdif = spdif; spdif 2283 sound/pci/trident/trident_main.c snd_pcm_lib_preallocate_pages_for_all(spdif, SNDRV_DMA_TYPE_DEV, snd_dma_pci_data(trident->pci), 64*1024, 128*1024); spdif 2332 sound/pci/trident/trident_main.c if (trident->spdif == NULL) { spdif 2401 sound/pci/trident/trident_main.c if (trident->spdif == NULL) spdif 2492 sound/pci/trident/trident_main.c if (trident->spdif != NULL) { spdif 3817 sound/pci/trident/trident_main.c pvoice->spdif = 0; spdif 3863 sound/pci/trident/trident_main.c voice->capture = voice->spdif = 0; spdif 51 sound/soc/adi/axi-spdif.c struct axi_spdif *spdif = snd_soc_dai_get_drvdata(dai); spdif 69 sound/soc/adi/axi-spdif.c regmap_update_bits(spdif->regmap, AXI_SPDIF_REG_CTRL, spdif 78 sound/soc/adi/axi-spdif.c struct axi_spdif *spdif = snd_soc_dai_get_drvdata(dai); spdif 97 sound/soc/adi/axi-spdif.c clkdiv = DIV_ROUND_CLOSEST(clk_get_rate(spdif->clk_ref), spdif 101 sound/soc/adi/axi-spdif.c regmap_write(spdif->regmap, AXI_SPDIF_REG_STAT, stat); spdif 102 sound/soc/adi/axi-spdif.c regmap_update_bits(spdif->regmap, AXI_SPDIF_REG_CTRL, spdif 110 sound/soc/adi/axi-spdif.c struct axi_spdif *spdif = snd_soc_dai_get_drvdata(dai); spdif 112 sound/soc/adi/axi-spdif.c snd_soc_dai_init_dma_data(dai, &spdif->dma_data, NULL); spdif 120 sound/soc/adi/axi-spdif.c struct axi_spdif *spdif = snd_soc_dai_get_drvdata(dai); spdif 125 sound/soc/adi/axi-spdif.c &spdif->rate_constraints); spdif 129 sound/soc/adi/axi-spdif.c ret = clk_prepare_enable(spdif->clk_ref); spdif 133 sound/soc/adi/axi-spdif.c regmap_update_bits(spdif->regmap, AXI_SPDIF_REG_CTRL, spdif 142 sound/soc/adi/axi-spdif.c struct axi_spdif *spdif = snd_soc_dai_get_drvdata(dai); spdif 144 sound/soc/adi/axi-spdif.c regmap_update_bits(spdif->regmap, AXI_SPDIF_REG_CTRL, spdif 147 sound/soc/adi/axi-spdif.c clk_disable_unprepare(spdif->clk_ref); spdif 181 sound/soc/adi/axi-spdif.c struct axi_spdif *spdif; spdif 186 sound/soc/adi/axi-spdif.c spdif = devm_kzalloc(&pdev->dev, sizeof(*spdif), GFP_KERNEL); spdif 187 sound/soc/adi/axi-spdif.c if (!spdif) spdif 190 sound/soc/adi/axi-spdif.c platform_set_drvdata(pdev, spdif); spdif 197 sound/soc/adi/axi-spdif.c spdif->regmap = devm_regmap_init_mmio(&pdev->dev, base, spdif 199 sound/soc/adi/axi-spdif.c if (IS_ERR(spdif->regmap)) spdif 200 sound/soc/adi/axi-spdif.c return PTR_ERR(spdif->regmap); spdif 202 sound/soc/adi/axi-spdif.c spdif->clk = devm_clk_get(&pdev->dev, "axi"); spdif 203 sound/soc/adi/axi-spdif.c if (IS_ERR(spdif->clk)) spdif 204 sound/soc/adi/axi-spdif.c return PTR_ERR(spdif->clk); spdif 206 sound/soc/adi/axi-spdif.c spdif->clk_ref = devm_clk_get(&pdev->dev, "ref"); spdif 207 sound/soc/adi/axi-spdif.c if (IS_ERR(spdif->clk_ref)) spdif 208 sound/soc/adi/axi-spdif.c return PTR_ERR(spdif->clk_ref); spdif 210 sound/soc/adi/axi-spdif.c ret = clk_prepare_enable(spdif->clk); spdif 214 sound/soc/adi/axi-spdif.c spdif->dma_data.addr = res->start + AXI_SPDIF_REG_TX_FIFO; spdif 215 sound/soc/adi/axi-spdif.c spdif->dma_data.addr_width = 4; spdif 216 sound/soc/adi/axi-spdif.c spdif->dma_data.maxburst = 1; spdif 218 sound/soc/adi/axi-spdif.c spdif->ratnum.num = clk_get_rate(spdif->clk_ref) / 128; spdif 219 sound/soc/adi/axi-spdif.c spdif->ratnum.den_step = 1; spdif 220 sound/soc/adi/axi-spdif.c spdif->ratnum.den_min = 1; spdif 221 sound/soc/adi/axi-spdif.c spdif->ratnum.den_max = 64; spdif 223 sound/soc/adi/axi-spdif.c spdif->rate_constraints.rats = &spdif->ratnum; spdif 224 sound/soc/adi/axi-spdif.c spdif->rate_constraints.nrats = 1; spdif 238 sound/soc/adi/axi-spdif.c clk_disable_unprepare(spdif->clk); spdif 244 sound/soc/adi/axi-spdif.c struct axi_spdif *spdif = platform_get_drvdata(pdev); spdif 246 sound/soc/adi/axi-spdif.c clk_disable_unprepare(spdif->clk); spdif 802 sound/soc/codecs/hdmi-codec.c dai_count = hcd->i2s + hcd->spdif; spdif 824 sound/soc/codecs/hdmi-codec.c if (hcd->spdif) spdif 80 sound/soc/codecs/sti-sas.c struct sti_spdif_audio spdif; spdif 274 sound/soc/codecs/sti-sas.c drvdata->spdif.mclk = freq; spdif 294 sound/soc/codecs/sti-sas.c if ((drvdata->spdif.mclk / runtime->rate) != 128) { spdif 454 sound/soc/codecs/sti-sas.c drvdata->spdif.regmap = drvdata->dac.regmap; spdif 92 sound/soc/img/img-spdif-in.c struct img_spdif_in *spdif = dev_get_drvdata(dev); spdif 94 sound/soc/img/img-spdif-in.c clk_disable_unprepare(spdif->clk_sys); spdif 101 sound/soc/img/img-spdif-in.c struct img_spdif_in *spdif = dev_get_drvdata(dev); spdif 104 sound/soc/img/img-spdif-in.c ret = clk_prepare_enable(spdif->clk_sys); spdif 113 sound/soc/img/img-spdif-in.c static inline void img_spdif_in_writel(struct img_spdif_in *spdif, spdif 116 sound/soc/img/img-spdif-in.c writel(val, spdif->base + reg); spdif 119 sound/soc/img/img-spdif-in.c static inline u32 img_spdif_in_readl(struct img_spdif_in *spdif, u32 reg) spdif 121 sound/soc/img/img-spdif-in.c return readl(spdif->base + reg); spdif 124 sound/soc/img/img-spdif-in.c static inline void img_spdif_in_aclkgen_writel(struct img_spdif_in *spdif, spdif 127 sound/soc/img/img-spdif-in.c img_spdif_in_writel(spdif, spdif->aclkgen_regs[index], spdif 131 sound/soc/img/img-spdif-in.c static int img_spdif_in_check_max_rate(struct img_spdif_in *spdif, spdif 139 sound/soc/img/img-spdif-in.c freq_t = clk_get_rate(spdif->clk_sys); spdif 178 sound/soc/img/img-spdif-in.c static int img_spdif_in_do_clkgen_single(struct img_spdif_in *spdif, spdif 186 sound/soc/img/img-spdif-in.c ret = img_spdif_in_check_max_rate(spdif, rate, &clk_rate); spdif 199 sound/soc/img/img-spdif-in.c spin_lock_irqsave(&spdif->lock, flags); spdif 201 sound/soc/img/img-spdif-in.c if (spdif->active) { spdif 202 sound/soc/img/img-spdif-in.c spin_unlock_irqrestore(&spdif->lock, flags); spdif 206 sound/soc/img/img-spdif-in.c img_spdif_in_writel(spdif, reg, IMG_SPDIF_IN_CLKGEN); spdif 208 sound/soc/img/img-spdif-in.c spdif->single_freq = rate; spdif 210 sound/soc/img/img-spdif-in.c spin_unlock_irqrestore(&spdif->lock, flags); spdif 215 sound/soc/img/img-spdif-in.c static int img_spdif_in_do_clkgen_multi(struct img_spdif_in *spdif, spdif 227 sound/soc/img/img-spdif-in.c ret = img_spdif_in_check_max_rate(spdif, max_rate, &clk_rate); spdif 245 sound/soc/img/img-spdif-in.c spin_lock_irqsave(&spdif->lock, flags); spdif 247 sound/soc/img/img-spdif-in.c if (spdif->active) { spdif 248 sound/soc/img/img-spdif-in.c spin_unlock_irqrestore(&spdif->lock, flags); spdif 252 sound/soc/img/img-spdif-in.c trk_reg = spdif->trk << IMG_SPDIF_IN_ACLKGEN_TRK_SHIFT; spdif 255 sound/soc/img/img-spdif-in.c spdif->aclkgen_regs[i] = temp_regs[i] | trk_reg; spdif 256 sound/soc/img/img-spdif-in.c img_spdif_in_aclkgen_writel(spdif, i); spdif 259 sound/soc/img/img-spdif-in.c spdif->multi_freq = true; spdif 260 sound/soc/img/img-spdif-in.c spdif->multi_freqs[0] = multi_freqs[0]; spdif 261 sound/soc/img/img-spdif-in.c spdif->multi_freqs[1] = multi_freqs[1]; spdif 262 sound/soc/img/img-spdif-in.c spdif->multi_freqs[2] = multi_freqs[2]; spdif 263 sound/soc/img/img-spdif-in.c spdif->multi_freqs[3] = multi_freqs[3]; spdif 265 sound/soc/img/img-spdif-in.c spin_unlock_irqrestore(&spdif->lock, flags); spdif 295 sound/soc/img/img-spdif-in.c struct img_spdif_in *spdif = snd_soc_dai_get_drvdata(cpu_dai); spdif 298 sound/soc/img/img-spdif-in.c reg = img_spdif_in_readl(spdif, IMG_SPDIF_IN_CSL); spdif 303 sound/soc/img/img-spdif-in.c reg = img_spdif_in_readl(spdif, IMG_SPDIF_IN_CSH); spdif 325 sound/soc/img/img-spdif-in.c struct img_spdif_in *spdif = snd_soc_dai_get_drvdata(cpu_dai); spdif 328 sound/soc/img/img-spdif-in.c spin_lock_irqsave(&spdif->lock, flags); spdif 329 sound/soc/img/img-spdif-in.c if (spdif->multi_freq) { spdif 330 sound/soc/img/img-spdif-in.c ucontrol->value.integer.value[0] = spdif->multi_freqs[0]; spdif 331 sound/soc/img/img-spdif-in.c ucontrol->value.integer.value[1] = spdif->multi_freqs[1]; spdif 332 sound/soc/img/img-spdif-in.c ucontrol->value.integer.value[2] = spdif->multi_freqs[2]; spdif 333 sound/soc/img/img-spdif-in.c ucontrol->value.integer.value[3] = spdif->multi_freqs[3]; spdif 340 sound/soc/img/img-spdif-in.c spin_unlock_irqrestore(&spdif->lock, flags); spdif 349 sound/soc/img/img-spdif-in.c struct img_spdif_in *spdif = snd_soc_dai_get_drvdata(cpu_dai); spdif 368 sound/soc/img/img-spdif-in.c return img_spdif_in_do_clkgen_multi(spdif, multi_freqs); spdif 370 sound/soc/img/img-spdif-in.c spin_lock_irqsave(&spdif->lock, flags); spdif 372 sound/soc/img/img-spdif-in.c if (spdif->active) { spdif 373 sound/soc/img/img-spdif-in.c spin_unlock_irqrestore(&spdif->lock, flags); spdif 377 sound/soc/img/img-spdif-in.c spdif->multi_freq = false; spdif 379 sound/soc/img/img-spdif-in.c spin_unlock_irqrestore(&spdif->lock, flags); spdif 399 sound/soc/img/img-spdif-in.c struct img_spdif_in *spdif = snd_soc_dai_get_drvdata(cpu_dai); spdif 404 sound/soc/img/img-spdif-in.c spin_lock_irqsave(&spdif->lock, flags); spdif 406 sound/soc/img/img-spdif-in.c reg = img_spdif_in_readl(spdif, IMG_SPDIF_IN_STATUS); spdif 408 sound/soc/img/img-spdif-in.c if (spdif->multi_freq) { spdif 411 sound/soc/img/img-spdif-in.c uc->value.integer.value[0] = spdif->multi_freqs[i]; spdif 413 sound/soc/img/img-spdif-in.c uc->value.integer.value[0] = spdif->single_freq; spdif 419 sound/soc/img/img-spdif-in.c spin_unlock_irqrestore(&spdif->lock, flags); spdif 439 sound/soc/img/img-spdif-in.c struct img_spdif_in *spdif = snd_soc_dai_get_drvdata(cpu_dai); spdif 441 sound/soc/img/img-spdif-in.c ucontrol->value.integer.value[0] = spdif->trk; spdif 450 sound/soc/img/img-spdif-in.c struct img_spdif_in *spdif = snd_soc_dai_get_drvdata(cpu_dai); spdif 455 sound/soc/img/img-spdif-in.c spin_lock_irqsave(&spdif->lock, flags); spdif 457 sound/soc/img/img-spdif-in.c if (spdif->active) { spdif 458 sound/soc/img/img-spdif-in.c spin_unlock_irqrestore(&spdif->lock, flags); spdif 462 sound/soc/img/img-spdif-in.c spdif->trk = ucontrol->value.integer.value[0]; spdif 464 sound/soc/img/img-spdif-in.c reg = img_spdif_in_readl(spdif, IMG_SPDIF_IN_CTL); spdif 466 sound/soc/img/img-spdif-in.c reg |= spdif->trk << IMG_SPDIF_IN_CTL_TRK_SHIFT; spdif 467 sound/soc/img/img-spdif-in.c img_spdif_in_writel(spdif, reg, IMG_SPDIF_IN_CTL); spdif 470 sound/soc/img/img-spdif-in.c spdif->aclkgen_regs[i] = (spdif->aclkgen_regs[i] & spdif 472 sound/soc/img/img-spdif-in.c (spdif->trk << IMG_SPDIF_IN_ACLKGEN_TRK_SHIFT); spdif 474 sound/soc/img/img-spdif-in.c img_spdif_in_aclkgen_writel(spdif, i); spdif 477 sound/soc/img/img-spdif-in.c spin_unlock_irqrestore(&spdif->lock, flags); spdif 497 sound/soc/img/img-spdif-in.c struct img_spdif_in *spdif = snd_soc_dai_get_drvdata(cpu_dai); spdif 499 sound/soc/img/img-spdif-in.c ucontrol->value.integer.value[0] = spdif->lock_acquire; spdif 508 sound/soc/img/img-spdif-in.c struct img_spdif_in *spdif = snd_soc_dai_get_drvdata(cpu_dai); spdif 512 sound/soc/img/img-spdif-in.c spin_lock_irqsave(&spdif->lock, flags); spdif 514 sound/soc/img/img-spdif-in.c if (spdif->active) { spdif 515 sound/soc/img/img-spdif-in.c spin_unlock_irqrestore(&spdif->lock, flags); spdif 519 sound/soc/img/img-spdif-in.c spdif->lock_acquire = ucontrol->value.integer.value[0]; spdif 521 sound/soc/img/img-spdif-in.c reg = img_spdif_in_readl(spdif, IMG_SPDIF_IN_CTL); spdif 523 sound/soc/img/img-spdif-in.c reg |= (spdif->lock_acquire << IMG_SPDIF_IN_CTL_LOCKHI_SHIFT) & spdif 525 sound/soc/img/img-spdif-in.c img_spdif_in_writel(spdif, reg, IMG_SPDIF_IN_CTL); spdif 527 sound/soc/img/img-spdif-in.c spin_unlock_irqrestore(&spdif->lock, flags); spdif 536 sound/soc/img/img-spdif-in.c struct img_spdif_in *spdif = snd_soc_dai_get_drvdata(cpu_dai); spdif 538 sound/soc/img/img-spdif-in.c ucontrol->value.integer.value[0] = spdif->lock_release; spdif 547 sound/soc/img/img-spdif-in.c struct img_spdif_in *spdif = snd_soc_dai_get_drvdata(cpu_dai); spdif 551 sound/soc/img/img-spdif-in.c spin_lock_irqsave(&spdif->lock, flags); spdif 553 sound/soc/img/img-spdif-in.c if (spdif->active) { spdif 554 sound/soc/img/img-spdif-in.c spin_unlock_irqrestore(&spdif->lock, flags); spdif 558 sound/soc/img/img-spdif-in.c spdif->lock_release = ucontrol->value.integer.value[0]; spdif 560 sound/soc/img/img-spdif-in.c reg = img_spdif_in_readl(spdif, IMG_SPDIF_IN_CTL); spdif 562 sound/soc/img/img-spdif-in.c reg |= (spdif->lock_release << IMG_SPDIF_IN_CTL_LOCKLO_SHIFT) & spdif 564 sound/soc/img/img-spdif-in.c img_spdif_in_writel(spdif, reg, IMG_SPDIF_IN_CTL); spdif 566 sound/soc/img/img-spdif-in.c spin_unlock_irqrestore(&spdif->lock, flags); spdif 629 sound/soc/img/img-spdif-in.c struct img_spdif_in *spdif = snd_soc_dai_get_drvdata(dai); spdif 633 sound/soc/img/img-spdif-in.c spin_lock_irqsave(&spdif->lock, flags); spdif 639 sound/soc/img/img-spdif-in.c reg = img_spdif_in_readl(spdif, IMG_SPDIF_IN_CTL); spdif 640 sound/soc/img/img-spdif-in.c if (spdif->multi_freq) spdif 645 sound/soc/img/img-spdif-in.c img_spdif_in_writel(spdif, reg, IMG_SPDIF_IN_CTL); spdif 646 sound/soc/img/img-spdif-in.c spdif->active = true; spdif 651 sound/soc/img/img-spdif-in.c reg = img_spdif_in_readl(spdif, IMG_SPDIF_IN_CTL); spdif 653 sound/soc/img/img-spdif-in.c img_spdif_in_writel(spdif, reg, IMG_SPDIF_IN_CTL); spdif 654 sound/soc/img/img-spdif-in.c spdif->active = false; spdif 660 sound/soc/img/img-spdif-in.c spin_unlock_irqrestore(&spdif->lock, flags); spdif 668 sound/soc/img/img-spdif-in.c struct img_spdif_in *spdif = snd_soc_dai_get_drvdata(dai); spdif 682 sound/soc/img/img-spdif-in.c return img_spdif_in_do_clkgen_single(spdif, rate); spdif 692 sound/soc/img/img-spdif-in.c struct img_spdif_in *spdif = snd_soc_dai_get_drvdata(dai); spdif 694 sound/soc/img/img-spdif-in.c snd_soc_dai_init_dma_data(dai, NULL, &spdif->dma_data); spdif 719 sound/soc/img/img-spdif-in.c struct img_spdif_in *spdif; spdif 727 sound/soc/img/img-spdif-in.c spdif = devm_kzalloc(&pdev->dev, sizeof(*spdif), GFP_KERNEL); spdif 728 sound/soc/img/img-spdif-in.c if (!spdif) spdif 731 sound/soc/img/img-spdif-in.c platform_set_drvdata(pdev, spdif); spdif 733 sound/soc/img/img-spdif-in.c spdif->dev = &pdev->dev; spdif 740 sound/soc/img/img-spdif-in.c spdif->base = base; spdif 742 sound/soc/img/img-spdif-in.c spdif->clk_sys = devm_clk_get(dev, "sys"); spdif 743 sound/soc/img/img-spdif-in.c if (IS_ERR(spdif->clk_sys)) { spdif 744 sound/soc/img/img-spdif-in.c if (PTR_ERR(spdif->clk_sys) != -EPROBE_DEFER) spdif 746 sound/soc/img/img-spdif-in.c return PTR_ERR(spdif->clk_sys); spdif 766 sound/soc/img/img-spdif-in.c img_spdif_in_writel(spdif, IMG_SPDIF_IN_SOFT_RESET_MASK, spdif 768 sound/soc/img/img-spdif-in.c img_spdif_in_writel(spdif, 0, IMG_SPDIF_IN_SOFT_RESET); spdif 774 sound/soc/img/img-spdif-in.c spin_lock_init(&spdif->lock); spdif 776 sound/soc/img/img-spdif-in.c spdif->dma_data.addr = res->start + IMG_SPDIF_IN_RX_FIFO_OFFSET; spdif 777 sound/soc/img/img-spdif-in.c spdif->dma_data.addr_width = 4; spdif 778 sound/soc/img/img-spdif-in.c spdif->dma_data.maxburst = 4; spdif 779 sound/soc/img/img-spdif-in.c spdif->trk = 0x80; spdif 780 sound/soc/img/img-spdif-in.c spdif->lock_acquire = 4; spdif 781 sound/soc/img/img-spdif-in.c spdif->lock_release = -128; spdif 783 sound/soc/img/img-spdif-in.c reg = (spdif->lock_acquire << IMG_SPDIF_IN_CTL_LOCKHI_SHIFT) & spdif 785 sound/soc/img/img-spdif-in.c reg |= (spdif->lock_release << IMG_SPDIF_IN_CTL_LOCKLO_SHIFT) & spdif 787 sound/soc/img/img-spdif-in.c reg |= (spdif->trk << IMG_SPDIF_IN_CTL_TRK_SHIFT) & spdif 789 sound/soc/img/img-spdif-in.c img_spdif_in_writel(spdif, reg, IMG_SPDIF_IN_CTL); spdif 827 sound/soc/img/img-spdif-in.c struct img_spdif_in *spdif = dev_get_drvdata(dev); spdif 836 sound/soc/img/img-spdif-in.c spdif->suspend_clkgen = img_spdif_in_readl(spdif, IMG_SPDIF_IN_CLKGEN); spdif 837 sound/soc/img/img-spdif-in.c spdif->suspend_ctl = img_spdif_in_readl(spdif, IMG_SPDIF_IN_CTL); spdif 846 sound/soc/img/img-spdif-in.c struct img_spdif_in *spdif = dev_get_drvdata(dev); spdif 854 sound/soc/img/img-spdif-in.c img_spdif_in_aclkgen_writel(spdif, i); spdif 856 sound/soc/img/img-spdif-in.c img_spdif_in_writel(spdif, spdif->suspend_clkgen, IMG_SPDIF_IN_CLKGEN); spdif 857 sound/soc/img/img-spdif-in.c img_spdif_in_writel(spdif, spdif->suspend_ctl, IMG_SPDIF_IN_CTL); spdif 54 sound/soc/img/img-spdif-out.c struct img_spdif_out *spdif = dev_get_drvdata(dev); spdif 56 sound/soc/img/img-spdif-out.c clk_disable_unprepare(spdif->clk_ref); spdif 57 sound/soc/img/img-spdif-out.c clk_disable_unprepare(spdif->clk_sys); spdif 64 sound/soc/img/img-spdif-out.c struct img_spdif_out *spdif = dev_get_drvdata(dev); spdif 67 sound/soc/img/img-spdif-out.c ret = clk_prepare_enable(spdif->clk_sys); spdif 73 sound/soc/img/img-spdif-out.c ret = clk_prepare_enable(spdif->clk_ref); spdif 76 sound/soc/img/img-spdif-out.c clk_disable_unprepare(spdif->clk_sys); spdif 83 sound/soc/img/img-spdif-out.c static inline void img_spdif_out_writel(struct img_spdif_out *spdif, u32 val, spdif 86 sound/soc/img/img-spdif-out.c writel(val, spdif->base + reg); spdif 89 sound/soc/img/img-spdif-out.c static inline u32 img_spdif_out_readl(struct img_spdif_out *spdif, u32 reg) spdif 91 sound/soc/img/img-spdif-out.c return readl(spdif->base + reg); spdif 94 sound/soc/img/img-spdif-out.c static void img_spdif_out_reset(struct img_spdif_out *spdif) spdif 98 sound/soc/img/img-spdif-out.c ctl = img_spdif_out_readl(spdif, IMG_SPDIF_OUT_CTL) & spdif 100 sound/soc/img/img-spdif-out.c status_low = img_spdif_out_readl(spdif, IMG_SPDIF_OUT_CSL); spdif 101 sound/soc/img/img-spdif-out.c status_high = img_spdif_out_readl(spdif, IMG_SPDIF_OUT_CSH_UV); spdif 103 sound/soc/img/img-spdif-out.c reset_control_assert(spdif->rst); spdif 104 sound/soc/img/img-spdif-out.c reset_control_deassert(spdif->rst); spdif 106 sound/soc/img/img-spdif-out.c img_spdif_out_writel(spdif, ctl, IMG_SPDIF_OUT_CTL); spdif 107 sound/soc/img/img-spdif-out.c img_spdif_out_writel(spdif, status_low, IMG_SPDIF_OUT_CSL); spdif 108 sound/soc/img/img-spdif-out.c img_spdif_out_writel(spdif, status_high, IMG_SPDIF_OUT_CSH_UV); spdif 136 sound/soc/img/img-spdif-out.c struct img_spdif_out *spdif = snd_soc_dai_get_drvdata(cpu_dai); spdif 140 sound/soc/img/img-spdif-out.c spin_lock_irqsave(&spdif->lock, flags); spdif 142 sound/soc/img/img-spdif-out.c reg = img_spdif_out_readl(spdif, IMG_SPDIF_OUT_CSL); spdif 148 sound/soc/img/img-spdif-out.c reg = img_spdif_out_readl(spdif, IMG_SPDIF_OUT_CSH_UV); spdif 153 sound/soc/img/img-spdif-out.c spin_unlock_irqrestore(&spdif->lock, flags); spdif 162 sound/soc/img/img-spdif-out.c struct img_spdif_out *spdif = snd_soc_dai_get_drvdata(cpu_dai); spdif 171 sound/soc/img/img-spdif-out.c spin_lock_irqsave(&spdif->lock, flags); spdif 173 sound/soc/img/img-spdif-out.c img_spdif_out_writel(spdif, reg, IMG_SPDIF_OUT_CSL); spdif 175 sound/soc/img/img-spdif-out.c reg = img_spdif_out_readl(spdif, IMG_SPDIF_OUT_CSH_UV); spdif 179 sound/soc/img/img-spdif-out.c img_spdif_out_writel(spdif, reg, IMG_SPDIF_OUT_CSH_UV); spdif 181 sound/soc/img/img-spdif-out.c spin_unlock_irqrestore(&spdif->lock, flags); spdif 206 sound/soc/img/img-spdif-out.c struct img_spdif_out *spdif = snd_soc_dai_get_drvdata(dai); spdif 214 sound/soc/img/img-spdif-out.c reg = img_spdif_out_readl(spdif, IMG_SPDIF_OUT_CTL); spdif 216 sound/soc/img/img-spdif-out.c img_spdif_out_writel(spdif, reg, IMG_SPDIF_OUT_CTL); spdif 221 sound/soc/img/img-spdif-out.c spin_lock_irqsave(&spdif->lock, flags); spdif 222 sound/soc/img/img-spdif-out.c img_spdif_out_reset(spdif); spdif 223 sound/soc/img/img-spdif-out.c spin_unlock_irqrestore(&spdif->lock, flags); spdif 235 sound/soc/img/img-spdif-out.c struct img_spdif_out *spdif = snd_soc_dai_get_drvdata(dai); spdif 245 sound/soc/img/img-spdif-out.c dev_dbg(spdif->dev, "hw_params rate %ld channels %u format %u\n", spdif 254 sound/soc/img/img-spdif-out.c pre_div_a = clk_round_rate(spdif->clk_ref, rate * 256); spdif 257 sound/soc/img/img-spdif-out.c pre_div_b = clk_round_rate(spdif->clk_ref, rate * 384); spdif 266 sound/soc/img/img-spdif-out.c clk_set_rate(spdif->clk_ref, pre_div_b); spdif 268 sound/soc/img/img-spdif-out.c clk_set_rate(spdif->clk_ref, pre_div_a); spdif 275 sound/soc/img/img-spdif-out.c clk_rate = clk_get_rate(spdif->clk_ref); spdif 280 sound/soc/img/img-spdif-out.c reg = img_spdif_out_readl(spdif, IMG_SPDIF_OUT_CTL); spdif 285 sound/soc/img/img-spdif-out.c img_spdif_out_writel(spdif, reg, IMG_SPDIF_OUT_CTL); spdif 297 sound/soc/img/img-spdif-out.c struct img_spdif_out *spdif = snd_soc_dai_get_drvdata(dai); spdif 299 sound/soc/img/img-spdif-out.c snd_soc_dai_init_dma_data(dai, &spdif->dma_data, NULL); spdif 324 sound/soc/img/img-spdif-out.c struct img_spdif_out *spdif; spdif 330 sound/soc/img/img-spdif-out.c spdif = devm_kzalloc(&pdev->dev, sizeof(*spdif), GFP_KERNEL); spdif 331 sound/soc/img/img-spdif-out.c if (!spdif) spdif 334 sound/soc/img/img-spdif-out.c platform_set_drvdata(pdev, spdif); spdif 336 sound/soc/img/img-spdif-out.c spdif->dev = &pdev->dev; spdif 343 sound/soc/img/img-spdif-out.c spdif->base = base; spdif 345 sound/soc/img/img-spdif-out.c spdif->rst = devm_reset_control_get_exclusive(&pdev->dev, "rst"); spdif 346 sound/soc/img/img-spdif-out.c if (IS_ERR(spdif->rst)) { spdif 347 sound/soc/img/img-spdif-out.c if (PTR_ERR(spdif->rst) != -EPROBE_DEFER) spdif 349 sound/soc/img/img-spdif-out.c return PTR_ERR(spdif->rst); spdif 352 sound/soc/img/img-spdif-out.c spdif->clk_sys = devm_clk_get(&pdev->dev, "sys"); spdif 353 sound/soc/img/img-spdif-out.c if (IS_ERR(spdif->clk_sys)) { spdif 354 sound/soc/img/img-spdif-out.c if (PTR_ERR(spdif->clk_sys) != -EPROBE_DEFER) spdif 356 sound/soc/img/img-spdif-out.c return PTR_ERR(spdif->clk_sys); spdif 359 sound/soc/img/img-spdif-out.c spdif->clk_ref = devm_clk_get(&pdev->dev, "ref"); spdif 360 sound/soc/img/img-spdif-out.c if (IS_ERR(spdif->clk_ref)) { spdif 361 sound/soc/img/img-spdif-out.c if (PTR_ERR(spdif->clk_ref) != -EPROBE_DEFER) spdif 363 sound/soc/img/img-spdif-out.c return PTR_ERR(spdif->clk_ref); spdif 376 sound/soc/img/img-spdif-out.c img_spdif_out_writel(spdif, IMG_SPDIF_OUT_CTL_FS_MASK, spdif 379 sound/soc/img/img-spdif-out.c img_spdif_out_reset(spdif); spdif 382 sound/soc/img/img-spdif-out.c spin_lock_init(&spdif->lock); spdif 384 sound/soc/img/img-spdif-out.c spdif->dma_data.addr = res->start + IMG_SPDIF_OUT_TX_FIFO; spdif 385 sound/soc/img/img-spdif-out.c spdif->dma_data.addr_width = 4; spdif 386 sound/soc/img/img-spdif-out.c spdif->dma_data.maxburst = 4; spdif 423 sound/soc/img/img-spdif-out.c struct img_spdif_out *spdif = dev_get_drvdata(dev); spdif 432 sound/soc/img/img-spdif-out.c spdif->suspend_ctl = img_spdif_out_readl(spdif, IMG_SPDIF_OUT_CTL); spdif 433 sound/soc/img/img-spdif-out.c spdif->suspend_csl = img_spdif_out_readl(spdif, IMG_SPDIF_OUT_CSL); spdif 434 sound/soc/img/img-spdif-out.c spdif->suspend_csh = img_spdif_out_readl(spdif, IMG_SPDIF_OUT_CSH_UV); spdif 443 sound/soc/img/img-spdif-out.c struct img_spdif_out *spdif = dev_get_drvdata(dev); spdif 450 sound/soc/img/img-spdif-out.c img_spdif_out_writel(spdif, spdif->suspend_ctl, IMG_SPDIF_OUT_CTL); spdif 451 sound/soc/img/img-spdif-out.c img_spdif_out_writel(spdif, spdif->suspend_csl, IMG_SPDIF_OUT_CSL); spdif 452 sound/soc/img/img-spdif-out.c img_spdif_out_writel(spdif, spdif->suspend_csh, IMG_SPDIF_OUT_CSH_UV); spdif 67 sound/soc/rockchip/rockchip_spdif.c struct rk_spdif_dev *spdif = dev_get_drvdata(dev); spdif 69 sound/soc/rockchip/rockchip_spdif.c regcache_cache_only(spdif->regmap, true); spdif 70 sound/soc/rockchip/rockchip_spdif.c clk_disable_unprepare(spdif->mclk); spdif 71 sound/soc/rockchip/rockchip_spdif.c clk_disable_unprepare(spdif->hclk); spdif 78 sound/soc/rockchip/rockchip_spdif.c struct rk_spdif_dev *spdif = dev_get_drvdata(dev); spdif 81 sound/soc/rockchip/rockchip_spdif.c ret = clk_prepare_enable(spdif->mclk); spdif 83 sound/soc/rockchip/rockchip_spdif.c dev_err(spdif->dev, "mclk clock enable failed %d\n", ret); spdif 87 sound/soc/rockchip/rockchip_spdif.c ret = clk_prepare_enable(spdif->hclk); spdif 89 sound/soc/rockchip/rockchip_spdif.c dev_err(spdif->dev, "hclk clock enable failed %d\n", ret); spdif 93 sound/soc/rockchip/rockchip_spdif.c regcache_cache_only(spdif->regmap, false); spdif 94 sound/soc/rockchip/rockchip_spdif.c regcache_mark_dirty(spdif->regmap); spdif 96 sound/soc/rockchip/rockchip_spdif.c ret = regcache_sync(spdif->regmap); spdif 98 sound/soc/rockchip/rockchip_spdif.c clk_disable_unprepare(spdif->mclk); spdif 99 sound/soc/rockchip/rockchip_spdif.c clk_disable_unprepare(spdif->hclk); spdif 109 sound/soc/rockchip/rockchip_spdif.c struct rk_spdif_dev *spdif = snd_soc_dai_get_drvdata(dai); spdif 132 sound/soc/rockchip/rockchip_spdif.c ret = clk_set_rate(spdif->mclk, mclk); spdif 134 sound/soc/rockchip/rockchip_spdif.c dev_err(spdif->dev, "Failed to set module clock rate: %d\n", spdif 139 sound/soc/rockchip/rockchip_spdif.c ret = regmap_update_bits(spdif->regmap, SPDIF_CFGR, spdif 150 sound/soc/rockchip/rockchip_spdif.c struct rk_spdif_dev *spdif = snd_soc_dai_get_drvdata(dai); spdif 157 sound/soc/rockchip/rockchip_spdif.c ret = regmap_update_bits(spdif->regmap, SPDIF_DMACR, spdif 166 sound/soc/rockchip/rockchip_spdif.c ret = regmap_update_bits(spdif->regmap, SPDIF_XFER, spdif 173 sound/soc/rockchip/rockchip_spdif.c ret = regmap_update_bits(spdif->regmap, SPDIF_DMACR, spdif 180 sound/soc/rockchip/rockchip_spdif.c ret = regmap_update_bits(spdif->regmap, SPDIF_XFER, spdif 194 sound/soc/rockchip/rockchip_spdif.c struct rk_spdif_dev *spdif = snd_soc_dai_get_drvdata(dai); spdif 196 sound/soc/rockchip/rockchip_spdif.c dai->playback_dma_data = &spdif->playback_dma_data; spdif 281 sound/soc/rockchip/rockchip_spdif.c struct rk_spdif_dev *spdif; spdif 304 sound/soc/rockchip/rockchip_spdif.c spdif = devm_kzalloc(&pdev->dev, sizeof(*spdif), GFP_KERNEL); spdif 305 sound/soc/rockchip/rockchip_spdif.c if (!spdif) spdif 308 sound/soc/rockchip/rockchip_spdif.c spdif->hclk = devm_clk_get(&pdev->dev, "hclk"); spdif 309 sound/soc/rockchip/rockchip_spdif.c if (IS_ERR(spdif->hclk)) { spdif 311 sound/soc/rockchip/rockchip_spdif.c return PTR_ERR(spdif->hclk); spdif 313 sound/soc/rockchip/rockchip_spdif.c ret = clk_prepare_enable(spdif->hclk); spdif 315 sound/soc/rockchip/rockchip_spdif.c dev_err(spdif->dev, "hclock enable failed %d\n", ret); spdif 319 sound/soc/rockchip/rockchip_spdif.c spdif->mclk = devm_clk_get(&pdev->dev, "mclk"); spdif 320 sound/soc/rockchip/rockchip_spdif.c if (IS_ERR(spdif->mclk)) { spdif 322 sound/soc/rockchip/rockchip_spdif.c ret = PTR_ERR(spdif->mclk); spdif 326 sound/soc/rockchip/rockchip_spdif.c ret = clk_prepare_enable(spdif->mclk); spdif 328 sound/soc/rockchip/rockchip_spdif.c dev_err(spdif->dev, "clock enable failed %d\n", ret); spdif 339 sound/soc/rockchip/rockchip_spdif.c spdif->regmap = devm_regmap_init_mmio_clk(&pdev->dev, "hclk", regs, spdif 341 sound/soc/rockchip/rockchip_spdif.c if (IS_ERR(spdif->regmap)) { spdif 344 sound/soc/rockchip/rockchip_spdif.c ret = PTR_ERR(spdif->regmap); spdif 348 sound/soc/rockchip/rockchip_spdif.c spdif->playback_dma_data.addr = res->start + SPDIF_SMPDR; spdif 349 sound/soc/rockchip/rockchip_spdif.c spdif->playback_dma_data.addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; spdif 350 sound/soc/rockchip/rockchip_spdif.c spdif->playback_dma_data.maxburst = 4; spdif 352 sound/soc/rockchip/rockchip_spdif.c spdif->dev = &pdev->dev; spdif 353 sound/soc/rockchip/rockchip_spdif.c dev_set_drvdata(&pdev->dev, spdif); spdif 378 sound/soc/rockchip/rockchip_spdif.c clk_disable_unprepare(spdif->mclk); spdif 380 sound/soc/rockchip/rockchip_spdif.c clk_disable_unprepare(spdif->hclk); spdif 387 sound/soc/rockchip/rockchip_spdif.c struct rk_spdif_dev *spdif = dev_get_drvdata(&pdev->dev); spdif 393 sound/soc/rockchip/rockchip_spdif.c clk_disable_unprepare(spdif->mclk); spdif 394 sound/soc/rockchip/rockchip_spdif.c clk_disable_unprepare(spdif->hclk); spdif 145 sound/soc/samsung/smdk_spdif.c SND_SOC_DAILINK_DEFS(spdif, spdif 154 sound/soc/samsung/smdk_spdif.c SND_SOC_DAILINK_REG(spdif), spdif 99 sound/soc/samsung/spdif.c static void spdif_snd_txctrl(struct samsung_spdif_info *spdif, int on) spdif 101 sound/soc/samsung/spdif.c void __iomem *regs = spdif->regs; spdif 104 sound/soc/samsung/spdif.c dev_dbg(spdif->dev, "Entered %s\n", __func__); spdif 116 sound/soc/samsung/spdif.c struct samsung_spdif_info *spdif = to_info(cpu_dai); spdif 119 sound/soc/samsung/spdif.c dev_dbg(spdif->dev, "Entered %s\n", __func__); spdif 121 sound/soc/samsung/spdif.c clkcon = readl(spdif->regs + CLKCON); spdif 128 sound/soc/samsung/spdif.c writel(clkcon, spdif->regs + CLKCON); spdif 130 sound/soc/samsung/spdif.c spdif->clk_rate = freq; spdif 139 sound/soc/samsung/spdif.c struct samsung_spdif_info *spdif = to_info(rtd->cpu_dai); spdif 142 sound/soc/samsung/spdif.c dev_dbg(spdif->dev, "Entered %s\n", __func__); spdif 148 sound/soc/samsung/spdif.c spin_lock_irqsave(&spdif->lock, flags); spdif 149 sound/soc/samsung/spdif.c spdif_snd_txctrl(spdif, 1); spdif 150 sound/soc/samsung/spdif.c spin_unlock_irqrestore(&spdif->lock, flags); spdif 155 sound/soc/samsung/spdif.c spin_lock_irqsave(&spdif->lock, flags); spdif 156 sound/soc/samsung/spdif.c spdif_snd_txctrl(spdif, 0); spdif 157 sound/soc/samsung/spdif.c spin_unlock_irqrestore(&spdif->lock, flags); spdif 175 sound/soc/samsung/spdif.c struct samsung_spdif_info *spdif = to_info(rtd->cpu_dai); spdif 176 sound/soc/samsung/spdif.c void __iomem *regs = spdif->regs; spdif 182 sound/soc/samsung/spdif.c dev_dbg(spdif->dev, "Entered %s\n", __func__); spdif 185 sound/soc/samsung/spdif.c dma_data = spdif->dma_playback; spdif 187 sound/soc/samsung/spdif.c dev_err(spdif->dev, "Capture is not supported\n"); spdif 193 sound/soc/samsung/spdif.c spin_lock_irqsave(&spdif->lock, flags); spdif 210 sound/soc/samsung/spdif.c dev_err(spdif->dev, "Unsupported data size.\n"); spdif 214 sound/soc/samsung/spdif.c ratio = spdif->clk_rate / params_rate(params); spdif 219 sound/soc/samsung/spdif.c dev_err(spdif->dev, "Invalid clock ratio %ld/%d\n", spdif 220 sound/soc/samsung/spdif.c spdif->clk_rate, params_rate(params)); spdif 252 sound/soc/samsung/spdif.c dev_err(spdif->dev, "Invalid sampling rate %d\n", spdif 265 sound/soc/samsung/spdif.c spin_unlock_irqrestore(&spdif->lock, flags); spdif 269 sound/soc/samsung/spdif.c spin_unlock_irqrestore(&spdif->lock, flags); spdif 277 sound/soc/samsung/spdif.c struct samsung_spdif_info *spdif = to_info(rtd->cpu_dai); spdif 278 sound/soc/samsung/spdif.c void __iomem *regs = spdif->regs; spdif 281 sound/soc/samsung/spdif.c dev_dbg(spdif->dev, "Entered %s\n", __func__); spdif 295 sound/soc/samsung/spdif.c struct samsung_spdif_info *spdif = to_info(cpu_dai); spdif 296 sound/soc/samsung/spdif.c u32 con = spdif->saved_con; spdif 298 sound/soc/samsung/spdif.c dev_dbg(spdif->dev, "Entered %s\n", __func__); spdif 300 sound/soc/samsung/spdif.c spdif->saved_clkcon = readl(spdif->regs + CLKCON) & CLKCTL_MASK; spdif 301 sound/soc/samsung/spdif.c spdif->saved_con = readl(spdif->regs + CON) & CON_MASK; spdif 302 sound/soc/samsung/spdif.c spdif->saved_cstas = readl(spdif->regs + CSTAS) & CSTAS_MASK; spdif 304 sound/soc/samsung/spdif.c writel(con | CON_SW_RESET, spdif->regs + CON); spdif 312 sound/soc/samsung/spdif.c struct samsung_spdif_info *spdif = to_info(cpu_dai); spdif 314 sound/soc/samsung/spdif.c dev_dbg(spdif->dev, "Entered %s\n", __func__); spdif 316 sound/soc/samsung/spdif.c writel(spdif->saved_clkcon, spdif->regs + CLKCON); spdif 317 sound/soc/samsung/spdif.c writel(spdif->saved_con, spdif->regs + CON); spdif 318 sound/soc/samsung/spdif.c writel(spdif->saved_cstas, spdif->regs + CSTAS); spdif 358 sound/soc/samsung/spdif.c struct samsung_spdif_info *spdif; spdif 378 sound/soc/samsung/spdif.c spdif = &spdif_info; spdif 379 sound/soc/samsung/spdif.c spdif->dev = &pdev->dev; spdif 381 sound/soc/samsung/spdif.c spin_lock_init(&spdif->lock); spdif 383 sound/soc/samsung/spdif.c spdif->pclk = devm_clk_get(&pdev->dev, "spdif"); spdif 384 sound/soc/samsung/spdif.c if (IS_ERR(spdif->pclk)) { spdif 389 sound/soc/samsung/spdif.c ret = clk_prepare_enable(spdif->pclk); spdif 393 sound/soc/samsung/spdif.c spdif->sclk = devm_clk_get(&pdev->dev, "sclk_spdif"); spdif 394 sound/soc/samsung/spdif.c if (IS_ERR(spdif->sclk)) { spdif 399 sound/soc/samsung/spdif.c ret = clk_prepare_enable(spdif->sclk); spdif 411 sound/soc/samsung/spdif.c spdif->regs = ioremap(mem_res->start, 0x100); spdif 412 sound/soc/samsung/spdif.c if (spdif->regs == NULL) { spdif 425 sound/soc/samsung/spdif.c spdif->dma_playback = &spdif_stereo_out; spdif 434 sound/soc/samsung/spdif.c dev_set_drvdata(&pdev->dev, spdif); spdif 445 sound/soc/samsung/spdif.c iounmap(spdif->regs); spdif 449 sound/soc/samsung/spdif.c clk_disable_unprepare(spdif->sclk); spdif 451 sound/soc/samsung/spdif.c clk_disable_unprepare(spdif->pclk); spdif 458 sound/soc/samsung/spdif.c struct samsung_spdif_info *spdif = &spdif_info; spdif 461 sound/soc/samsung/spdif.c iounmap(spdif->regs); spdif 467 sound/soc/samsung/spdif.c clk_disable_unprepare(spdif->sclk); spdif 468 sound/soc/samsung/spdif.c clk_disable_unprepare(spdif->pclk); spdif 262 sound/soc/sh/fsi.c unsigned int spdif:1; spdif 394 sound/soc/sh/fsi.c return fsi->spdif; spdif 1858 sound/soc/sh/fsi.c fsi->spdif = 1; spdif 52 sound/soc/sh/siu_dai.c u32 spdif; spdif 68 sound/soc/sh/siu_dai.c .spdif = 0x80000000, /* not on all SIU versions */ spdif 74 sound/soc/sh/siu_dai.c .spdif = 0x08000000, spdif 82 sound/soc/sh/siu_dai.c .spdif = 0, /* impossible - turn off */ spdif 88 sound/soc/sh/siu_dai.c .spdif = 0, /* impossible - turn off */ spdif 54 sound/soc/stm/stm32_sai_sub.c #define STM_SAI_PROTOCOL_IS_SPDIF(ip) ((ip)->spdif) spdif 115 sound/soc/stm/stm32_sai_sub.c bool spdif; spdif 1398 sound/soc/stm/stm32_sai_sub.c sai->spdif = false; spdif 1406 sound/soc/stm/stm32_sai_sub.c sai->spdif = true; spdif 29 sound/soc/tegra/tegra20_spdif.c struct tegra20_spdif *spdif = dev_get_drvdata(dev); spdif 31 sound/soc/tegra/tegra20_spdif.c clk_disable_unprepare(spdif->clk_spdif_out); spdif 38 sound/soc/tegra/tegra20_spdif.c struct tegra20_spdif *spdif = dev_get_drvdata(dev); spdif 41 sound/soc/tegra/tegra20_spdif.c ret = clk_prepare_enable(spdif->clk_spdif_out); spdif 55 sound/soc/tegra/tegra20_spdif.c struct tegra20_spdif *spdif = snd_soc_dai_get_drvdata(dai); spdif 70 sound/soc/tegra/tegra20_spdif.c regmap_update_bits(spdif->regmap, TEGRA20_SPDIF_CTRL, mask, val); spdif 98 sound/soc/tegra/tegra20_spdif.c ret = clk_set_rate(spdif->clk_spdif_out, spdifclock); spdif 107 sound/soc/tegra/tegra20_spdif.c static void tegra20_spdif_start_playback(struct tegra20_spdif *spdif) spdif 109 sound/soc/tegra/tegra20_spdif.c regmap_update_bits(spdif->regmap, TEGRA20_SPDIF_CTRL, spdif 114 sound/soc/tegra/tegra20_spdif.c static void tegra20_spdif_stop_playback(struct tegra20_spdif *spdif) spdif 116 sound/soc/tegra/tegra20_spdif.c regmap_update_bits(spdif->regmap, TEGRA20_SPDIF_CTRL, spdif 123 sound/soc/tegra/tegra20_spdif.c struct tegra20_spdif *spdif = snd_soc_dai_get_drvdata(dai); spdif 129 sound/soc/tegra/tegra20_spdif.c tegra20_spdif_start_playback(spdif); spdif 134 sound/soc/tegra/tegra20_spdif.c tegra20_spdif_stop_playback(spdif); spdif 145 sound/soc/tegra/tegra20_spdif.c struct tegra20_spdif *spdif = snd_soc_dai_get_drvdata(dai); spdif 148 sound/soc/tegra/tegra20_spdif.c dai->playback_dma_data = &spdif->playback_dma_data; spdif 253 sound/soc/tegra/tegra20_spdif.c struct tegra20_spdif *spdif; spdif 258 sound/soc/tegra/tegra20_spdif.c spdif = devm_kzalloc(&pdev->dev, sizeof(struct tegra20_spdif), spdif 260 sound/soc/tegra/tegra20_spdif.c if (!spdif) spdif 263 sound/soc/tegra/tegra20_spdif.c dev_set_drvdata(&pdev->dev, spdif); spdif 265 sound/soc/tegra/tegra20_spdif.c spdif->clk_spdif_out = devm_clk_get(&pdev->dev, "spdif_out"); spdif 266 sound/soc/tegra/tegra20_spdif.c if (IS_ERR(spdif->clk_spdif_out)) { spdif 268 sound/soc/tegra/tegra20_spdif.c ret = PTR_ERR(spdif->clk_spdif_out); spdif 283 sound/soc/tegra/tegra20_spdif.c spdif->regmap = devm_regmap_init_mmio(&pdev->dev, regs, spdif 285 sound/soc/tegra/tegra20_spdif.c if (IS_ERR(spdif->regmap)) { spdif 287 sound/soc/tegra/tegra20_spdif.c ret = PTR_ERR(spdif->regmap); spdif 291 sound/soc/tegra/tegra20_spdif.c spdif->playback_dma_data.addr = mem->start + TEGRA20_SPDIF_DATA_OUT; spdif 292 sound/soc/tegra/tegra20_spdif.c spdif->playback_dma_data.addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; spdif 293 sound/soc/tegra/tegra20_spdif.c spdif->playback_dma_data.maxburst = 4; spdif 294 sound/soc/tegra/tegra20_spdif.c spdif->playback_dma_data.slave_id = dmareq->start; spdif 140 sound/soc/zte/zx-spdif.c struct zx_spdif_info *spdif = snd_soc_dai_get_drvdata(socdai); spdif 190 sound/soc/zte/zx-spdif.c return clk_set_rate(spdif->dai_clk, rate * ch_num * ZX_SPDIF_CLK_RAT);