€•ð.Œ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Œ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:-”…””}”(hhø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&]”höh÷uh1hæhŸh¶h KhhÇhžhubh¸)”}”(hŒ›Please refer to the ALSA driver documentation for details of audio DMA. https://www.kernel.org/doc/html/latest/sound/kernel-api/writing-an-alsa-driver.html”h]”(hŒHPlease refer to the ALSA driver documentation for details of audio DMA. ”…””}”(hjhžhhŸNh NubhŒ reference”“”)”}”(hŒShttps://www.kernel.org/doc/html/latest/sound/kernel-api/writing-an-alsa-driver.html”h]”hŒShttps://www.kernel.org/doc/html/latest/sound/kernel-api/writing-an-alsa-driver.html”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j uh1jhjubeh}”(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”…””}”(hj3hž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”…””}”(hjLhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¦hjIhž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:-”…””}”(hjZhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K9hjIhžhubhŒenumerated_list”“”)”}”(hhh]”(hŒ list_item”“”)”}”(hŒ)Digital audio interface (DAI) description”h]”h¸)”}”(hjqh]”hŒ)Digital audio interface (DAI) description”…””}”(hjshžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K;hjoubah}”(h]”h ]”h"]”h$]”h&]”uh1jmhjjhžhhŸh¶h Nubjn)”}”(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&]”uh1jmhjjhžhhŸh¶h Nubjn)”}”(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&]”uh1jmhjjhžhhŸh¶h Nubeh}”(h]”h ]”h"]”h$]”h&]”Œenumtype”Œarabic”Œprefix”hŒsuffix”Œ.”uh1jhhjIhž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.”…””}”(hjîhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KAhjIhž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”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¦hjhž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 :-”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KGhjhžhubji)”}”(hhh]”(jn)”}”(hŒ DAPM graph”h]”h¸)”}”(hj(h]”hŒ DAPM graph”…””}”(hj*hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KIhj&ubah}”(h]”h ]”h"]”h$]”h&]”uh1jmhj#hžhhŸh¶h Nubjn)”}”(hŒMixer controls”h]”h¸)”}”(hj?h]”hŒMixer controls”…””}”(hjAhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KJhj=ubah}”(h]”h ]”h"]”h$]”h&]”uh1jmhj#hžhhŸh¶h Nubjn)”}”(hŒ*DMA IO to/from DSP buffers (if applicable)”h]”h¸)”}”(hjVh]”hŒ*DMA IO to/from DSP buffers (if applicable)”…””}”(hjXhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KKhjTubah}”(h]”h ]”h"]”h$]”h&]”uh1jmhj#hžhhŸh¶h Nubjn)”}”(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.”…””}”(hjohžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KLhjkubah}”(h]”h ]”h"]”h$]”h&]”uh1jmhj#hžhhŸh¶h Nubeh}”(h]”h ]”h"]”h$]”h&]”jéjêjëhjìjíuh1jhhjhž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 KNhjhž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¡jFjCjjþjœj™uŒ nametypes”}”(j¤‰jF‰j‰jœ‰uh}”(j¡h£jChÇjþjIj™juŒ 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.”…””}”(hj1hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hj.ubah}”(h]”h ]”h"]”h$]”h&]”Œlevel”KŒtype”ŒINFO”Œline”K Œsource”h¶uh1j,hhÇhžhhŸh¶h K ubaŒtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nhžhub.