€•;0Œsphinx.addnodes”Œdocument”“”)”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)”}”(hhh]”(hŒ pending_xref”“”)”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…””}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ&/translations/zh_CN/sound/soc/platform”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/zh_TW/sound/soc/platform”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/it_IT/sound/soc/platform”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/ja_JP/sound/soc/platform”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/ko_KR/sound/soc/platform”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒPortuguese (Brazilian)”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/pt_BR/sound/soc/platform”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/sp_SP/sound/soc/platform”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒASoC Platform Driver”h]”hŒASoC Platform Driver”…””}”(hh¼h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhh·h²hh³Œ@/var/lib/git/docbuild/linux/Documentation/sound/soc/platform.rst”h´KubhŒ paragraph”“”)”}”(hŒ¸An ASoC platform driver class can be divided into audio DMA drivers, SoC DAI drivers and DSP drivers. The platform drivers only target the SoC CPU and must have no board specific code.”h]”hŒ¸An ASoC platform driver class can be divided into audio DMA drivers, SoC DAI drivers and DSP drivers. The platform drivers only target the SoC CPU and must have no board specific code.”…””}”(hhÍh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khh·h²hubh¶)”}”(hhh]”(h»)”}”(hŒ Audio DMA”h]”hŒ Audio DMA”…””}”(hhÞh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhhÛh²hh³hÊh´K ubhÌ)”}”(hŒNThe platform DMA driver optionally supports the following ALSA operations:- ::”h]”hŒKThe platform DMA driver optionally supports the following ALSA operations:-”…””}”(hhìh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K hhÛh²hubhŒ literal_block”“”)”}”(hX|/* SoC audio ops */ struct snd_soc_ops { int (*startup)(struct snd_pcm_substream *); void (*shutdown)(struct snd_pcm_substream *); int (*hw_params)(struct snd_pcm_substream *, struct snd_pcm_hw_params *); int (*hw_free)(struct snd_pcm_substream *); int (*prepare)(struct snd_pcm_substream *); int (*trigger)(struct snd_pcm_substream *, int); };”h]”hX|/* SoC audio ops */ struct snd_soc_ops { int (*startup)(struct snd_pcm_substream *); void (*shutdown)(struct snd_pcm_substream *); int (*hw_params)(struct snd_pcm_substream *, struct snd_pcm_hw_params *); int (*hw_free)(struct snd_pcm_substream *); int (*prepare)(struct snd_pcm_substream *); int (*trigger)(struct snd_pcm_substream *, int); };”…””}”hhüsbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1húh³hÊh´KhhÛh²hubhÌ)”}”(hŒZThe platform driver exports its DMA functionality via struct snd_soc_component_driver:- ::”h]”hŒWThe platform driver exports its DMA functionality via struct snd_soc_component_driver:-”…””}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KhhÛh²hubhû)”}”(hXûstruct snd_soc_component_driver { const char *name; ... int (*probe)(struct snd_soc_component *); void (*remove)(struct snd_soc_component *); int (*suspend)(struct snd_soc_component *); int (*resume)(struct snd_soc_component *); /* pcm creation and destruction */ int (*pcm_new)(struct snd_soc_pcm_runtime *); void (*pcm_free)(struct snd_pcm *); ... const struct snd_pcm_ops *ops; const struct snd_compr_ops *compr_ops; ... };”h]”hXûstruct snd_soc_component_driver { const char *name; ... int (*probe)(struct snd_soc_component *); void (*remove)(struct snd_soc_component *); int (*suspend)(struct snd_soc_component *); int (*resume)(struct snd_soc_component *); /* pcm creation and destruction */ int (*pcm_new)(struct snd_soc_pcm_runtime *); void (*pcm_free)(struct snd_pcm *); ... const struct snd_pcm_ops *ops; const struct snd_compr_ops *compr_ops; ... };”…””}”hjsbah}”(h]”h ]”h"]”h$]”h&]”j j uh1húh³hÊh´KhhÛh²hubhÌ)”}”(hŒuPlease refer to the :doc:`ALSA driver documentation <../kernel-api/writing-an-alsa-driver>` for details of audio DMA.”h]”(hŒPlease refer to the ”…””}”(hj(h²hh³Nh´Nubh)”}”(hŒG:doc:`ALSA driver documentation <../kernel-api/writing-an-alsa-driver>`”h]”hŒinline”“”)”}”(hj2h]”hŒALSA driver documentation”…””}”(hj6h²hh³Nh´Nubah}”(h]”h ]”(Œxref”Œstd”Œstd-doc”eh"]”h$]”h&]”uh1j4hj0ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”Œsound/soc/platform”Œ refdomain”jAŒreftype”Œdoc”Œ refexplicit”ˆŒrefwarn”ˆŒ reftarget”Œ$../kernel-api/writing-an-alsa-driver”uh1hh³hÊh´K0hj(ubhŒ for details of audio DMA.”…””}”(hj(h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K0hhÛh²hubhÌ)”}”(hŒ-An example DMA driver is soc/pxa/pxa2xx-pcm.c”h]”hŒ-An example DMA driver is soc/pxa/pxa2xx-pcm.c”…””}”(hj_h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K3hhÛh²hubeh}”(h]”Œ audio-dma”ah ]”h"]”Œ audio dma”ah$]”h&]”uh1hµhh·h²hh³hÊh´K ubh¶)”}”(hhh]”(h»)”}”(hŒSoC DAI Drivers”h]”hŒSoC DAI Drivers”…””}”(hjxh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjuh²hh³hÊh´K7ubhÌ)”}”(hŒ9Each SoC DAI driver must provide the following features:-”h]”hŒ9Each SoC DAI driver must provide the following features:-”…””}”(hj†h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K9hjuh²hubhŒenumerated_list”“”)”}”(hhh]”(hŒ list_item”“”)”}”(hŒ)Digital audio interface (DAI) description”h]”hÌ)”}”(hjh]”hŒ)Digital audio interface (DAI) description”…””}”(hjŸh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K;hj›ubah}”(h]”h ]”h"]”h$]”h&]”uh1j™hj–h²hh³hÊh´Nubjš)”}”(hŒ%Digital audio interface configuration”h]”hÌ)”}”(hj´h]”hŒ%Digital audio interface configuration”…””}”(hj¶h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khjàubah}”(h]”h ]”h"]”h$]”h&]”uh1j™hj–h²hh³hÊh´Nubjš)”}”(hŒSuspend and resume (optional) ”h]”hÌ)”}”(hŒSuspend and resume (optional)”h]”hŒSuspend and resume (optional)”…””}”(hjûh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K?hj÷ubah}”(h]”h ]”h"]”h$]”h&]”uh1j™hj–h²hh³hÊh´Nubeh}”(h]”h ]”h"]”h$]”h&]”Œenumtype”Œarabic”Œprefix”hŒsuffix”Œ.”uh1j”hjuh²hh³hÊh´K;ubhÌ)”}”(hŒ6Please see codec.rst for a description of items 1 - 4.”h]”hŒ6Please see codec.rst for a description of items 1 - 4.”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KAhjuh²hubeh}”(h]”Œsoc-dai-drivers”ah ]”h"]”Œsoc dai drivers”ah$]”h&]”uh1hµhh·h²hh³hÊh´K7ubh¶)”}”(hhh]”(h»)”}”(hŒSoC DSP Drivers”h]”hŒSoC DSP Drivers”…””}”(hj3h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj0h²hh³hÊh´KEubhÌ)”}”(hŒ>Each SoC DSP driver usually supplies the following features :-”h]”hŒ>Each SoC DSP driver usually supplies the following features :-”…””}”(hjAh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KGhj0h²hubj•)”}”(hhh]”(jš)”}”(hŒ DAPM graph”h]”hÌ)”}”(hjTh]”hŒ DAPM graph”…””}”(hjVh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KIhjRubah}”(h]”h ]”h"]”h$]”h&]”uh1j™hjOh²hh³hÊh´Nubjš)”}”(hŒMixer controls”h]”hÌ)”}”(hjkh]”hŒMixer controls”…””}”(hjmh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KJhjiubah}”(h]”h ]”h"]”h$]”h&]”uh1j™hjOh²hh³hÊh´Nubjš)”}”(hŒ*DMA IO to/from DSP buffers (if applicable)”h]”hÌ)”}”(hj‚h]”hŒ*DMA IO to/from DSP buffers (if applicable)”…””}”(hj„h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KKhj€ubah}”(h]”h ]”h"]”h$]”h&]”uh1j™hjOh²hh³hÊh´Nubjš)”}”(hŒ.Definition of DSP front end (FE) PCM devices. ”h]”hÌ)”}”(hŒ-Definition of DSP front end (FE) PCM devices.”h]”hŒ-Definition of DSP front end (FE) PCM devices.”…””}”(hj›h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KLhj—ubah}”(h]”h ]”h"]”h$]”h&]”uh1j™hjOh²hh³hÊh´Nubeh}”(h]”h ]”h"]”h$]”h&]”jjjhjjuh1j”hj0h²hh³hÊh´KIubhÌ)”}”(hŒ0Please see DPCM.txt for a description of item 4.”h]”hŒ0Please see DPCM.txt for a description of item 4.”…””}”(hjµh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KNhj0h²hubeh}”(h]”Œsoc-dsp-drivers”ah ]”h"]”Œsoc dsp drivers”ah$]”h&]”uh1hµhh·h²hh³hÊh´KEubeh}”(h]”Œasoc-platform-driver”ah ]”h"]”Œasoc platform driver”ah$]”h&]”uh1hµhhh²hh³hÊh´Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”hÊuh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)”}”(hºNŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”jöŒerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”hÊŒ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”Œnameids”}”(jÐjÍjrjoj-j*jÈjÅuŒ nametypes”}”(jЉjr‰j-‰jȉuh}”(jÍh·johÛj*jujÅj0uŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”hŒsystem_message”“”)”}”(hhh]”hÌ)”}”(hŒfPossible title underline, too short for the title. Treating it as ordinary text because it's so short.”h]”hŒhPossible title underline, too short for the title. Treating it as ordinary text because it’s so short.”…””}”(hj]h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËhjZubah}”(h]”h ]”h"]”h$]”h&]”Œlevel”KŒtype”ŒINFO”Œline”K Œsource”hÊuh1jXhhÛh²hh³hÊh´K ubaŒtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nh²hub.