Skip to content

Commit

Permalink
audio: slides: fix devicetree syntax highlighting
Browse files Browse the repository at this point in the history
Signed-off-by: Théo Lebrun <[email protected]>
  • Loading branch information
tleb committed Sep 30, 2024
1 parent 6f0e2d7 commit 242d849
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions slides/audio-asoc/audio-asoc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ \subsection{simple-audio-card}
First, enable the SAI and the codec:
\begin{block}{}
\fontsize{7}{6}\selectfont
\begin{minted}{c}
\begin{minted}{dts}
&sai2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sai2>;
Expand Down Expand Up @@ -86,7 +86,7 @@ \subsection{simple-audio-card}
Now, describe the sound card:
\begin{block}{}
\fontsize{7}{6}\selectfont
\begin{minted}{c}
\begin{minted}{dts}
sound {
compatible = "simple-audio-card";
simple-audio-card,name = "imx6ul-adau1372";
Expand Down Expand Up @@ -115,7 +115,7 @@ \subsection{simple-audio-card}
The ADAU1372 has actually 4 channels and can do TDM:
\begin{block}{}
\fontsize{7}{6}\selectfont
\begin{minted}{c}
\begin{minted}{dts}
sound {
compatible = "simple-audio-card";
simple-audio-card,name = "imx6ul-adau1372";
Expand Down Expand Up @@ -148,7 +148,7 @@ \subsection{simple-audio-card}
be master:
\begin{block}{}
\fontsize{7}{6}\selectfont
\begin{minted}{c}
\begin{minted}{dts}
sound {
compatible = "simple-audio-card";
simple-audio-card,name = "imx6ul-adau1372";
Expand Down Expand Up @@ -210,7 +210,7 @@ \subsection{simple-audio-card}
\code{assigned-clock-rates}.
\begin{block}{}
\fontsize{7}{6}\selectfont
\begin{minted}{c}
\begin{minted}{dts}
&sai2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sai2>;
Expand All @@ -230,7 +230,7 @@ \subsection{simple-audio-card}
clock to feed to the codec MCLK instead of the crystal:
\begin{block}{}
\fontsize{7}{6}\selectfont
\begin{minted}{c}
\begin{minted}{dts}
&sai2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sai2>;
Expand Down Expand Up @@ -265,7 +265,7 @@ \subsection{simple-audio-card}
stereo line input jack (Line0 and Line1) and a stereo jack output.
\begin{block}{}
\fontsize{7}{6}\selectfont
\begin{minted}{c}
\begin{minted}{dts}
simple-audio-card,widgets =
"Line", "Line0",
"Line", "Line1",
Expand All @@ -279,7 +279,7 @@ \subsection{simple-audio-card}
using \code{simple-audio-card,routing}
\begin{block}{}
\fontsize{7}{6}\selectfont
\begin{minted}{c}
\begin{minted}{dts}
simple-audio-card,routing =
"AIN0", "Line0",
"AIN1", "Line0",
Expand Down
8 changes: 4 additions & 4 deletions slides/audio-auxiliary/audio-auxiliary.tex
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ \subsection{Auxiliary devices}
\kfile{arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts}
\begin{block}{}
\fontsize{7}{6}\selectfont
\begin{minted}{c}
\begin{minted}{dts}

speaker_amp: audio-amplifier {
compatible = "simple-audio-amplifier";
Expand Down Expand Up @@ -75,7 +75,7 @@ \subsection{Auxiliary devices}
\begin{frame}[fragile]{simple-amplifier - example 2}
\begin{block}{}
\fontsize{7}{6}\selectfont
\begin{minted}{c}
\begin{minted}{dts}
dio2133: analog-amplifier {
compatible = "simple-audio-amplifier";
sound-name-prefix = "AU2";
Expand Down Expand Up @@ -115,7 +115,7 @@ \subsection{Auxiliary devices}
\begin{frame}[fragile]{\code{simple-mux} example}
\begin{block}{}
\fontsize{8}{8}\selectfont
\begin{minted}{c}
\begin{minted}{dts}
mic_mux: mic-mux {
compatible = "simple-audio-mux";
pinctrl-names = "default";
Expand All @@ -137,7 +137,7 @@ \subsection{Auxiliary devices}
\begin{frame}[fragile]{\code{simple-mux} example}
\begin{block}{\kfile{arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts}}
\fontsize{7}{6}\selectfont
\begin{minted}{c}
\begin{minted}{dts}
sound {
compatible = "simple-audio-card";
pinctrl-names = "default";
Expand Down

0 comments on commit 242d849

Please sign in to comment.