€•`/Œ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Œ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 ”…””}”(hjhžhhŸNh Nubh)”}”(hŒG:doc:`ALSA driver documentation <../kernel-api/writing-an-alsa-driver>`”h]”hŒinline”“”)”}”(hjh]”hŒALSA driver documentation”…””}”(hj"hžhhŸNh Nubah}”(h]”h ]”(Œxref”Œstd”Œstd-doc”eh"]”h$]”h&]”uh1j hjubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”Œsound/soc/platform”Œ refdomain”j-Œreftype”Œdoc”Œ refexplicit”ˆŒrefwarn”ˆŒ reftarget”Œ$../kernel-api/writing-an-alsa-driver”uh1hhŸh¶h K0hjubhŒ for details of audio DMA.”…””}”(hjhž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”…””}”(hjKhž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”…””}”(hjdhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¦hjahž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:-”…””}”(hjrhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K9hjahžhubhŒenumerated_list”“”)”}”(hhh]”(hŒ list_item”“”)”}”(hŒ)Digital audio interface (DAI) description”h]”h¸)”}”(hj‰h]”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€hjahž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 KAhjahž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 :-”…””}”(hj-hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KGhjhžhubj)”}”(hhh]”(j†)”}”(hŒ DAPM graph”h]”h¸)”}”(hj@h]”hŒ DAPM graph”…””}”(hjBhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KIhj>ubah}”(h]”h ]”h"]”h$]”h&]”uh1j…hj;hžhhŸh¶h Nubj†)”}”(hŒMixer controls”h]”h¸)”}”(hjWh]”hŒMixer controls”…””}”(hjYhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KJhjUubah}”(h]”h ]”h"]”h$]”h&]”uh1j…hj;hžhhŸh¶h Nubj†)”}”(hŒ*DMA IO to/from DSP buffers (if applicable)”h]”h¸)”}”(hjnh]”hŒ*DMA IO to/from DSP buffers (if applicable)”…””}”(hjphžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KKhjlubah}”(h]”h ]”h"]”h$]”h&]”uh1j…hj;hž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…hj;hžhhŸh¶h Nubeh}”(h]”h ]”h"]”h$]”h&]”jjjhjjuh1j€hjhž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¹j^j[jjj´j±uŒ nametypes”}”(j¼‰j^‰j‰j´‰uh}”(j¹h£j[hÇjjaj±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.”…””}”(hjIhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hjFubah}”(h]”h ]”h"]”h$]”h&]”Œlevel”KŒtype”ŒINFO”Œline”K Œsource”h¶uh1jDhhÇhžhhŸh¶h K ubaŒtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nhžhub.