<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/sound/soc/sunxi/sun4i-codec.c, branch master</title>
<subtitle>Linux kernel source tree.</subtitle>
<id>https://git.ilvokhin.com/linux.git/atom/sound/soc/sunxi/sun4i-codec.c?h=master</id>
<link rel='self' href='https://git.ilvokhin.com/linux.git/atom/sound/soc/sunxi/sun4i-codec.c?h=master'/>
<link rel='alternate' type='text/html' href='https://git.ilvokhin.com/linux.git/'/>
<updated>2026-07-14T14:23:08Z</updated>
<entry>
<title>ASoC: sun4i-codec: Set quirks.playback_only for H616 codec</title>
<updated>2026-07-14T14:23:08Z</updated>
<author>
<name>Chen-Yu Tsai</name>
<email>wens@kernel.org</email>
</author>
<published>2026-07-14T11:33:03Z</published>
<link rel='alternate' type='text/html' href='https://git.ilvokhin.com/linux.git/commit/?id=d9e96f859de3ea3e99bce927a988449a1816483c'/>
<id>urn:sha1:d9e96f859de3ea3e99bce927a988449a1816483c</id>
<content type='text'>
The H616 codec does not have capture capabilities. Set the
.playback_only quirks flag to denote this.

This was somehow missing from the original driver patch, even though
the patch prior to it in the series added this quirk.

Fixes: 9155c321a1d0 ("ASoC: sun4i-codec: support allwinner H616 codec")
Signed-off-by: Chen-Yu Tsai &lt;wens@kernel.org&gt;
Link: https://patch.msgid.link/20260714113304.270224-1-wens@kernel.org
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: sunxi: sun4i-codec: convert to snd_soc_dapm_xxx()</title>
<updated>2025-11-17T00:18:34Z</updated>
<author>
<name>Kuninori Morimoto</name>
<email>kuninori.morimoto.gx@renesas.com</email>
</author>
<published>2025-11-11T00:36:31Z</published>
<link rel='alternate' type='text/html' href='https://git.ilvokhin.com/linux.git/commit/?id=bc8ec019290f00d605423db6ba5fd9db81e83bac'/>
<id>urn:sha1:bc8ec019290f00d605423db6ba5fd9db81e83bac</id>
<content type='text'>
This patch converts below functions.

dapm-&gt;dev					-&gt; snd_soc_dapm_to_dev()
dapm-&gt;card					-&gt; snd_soc_dapm_to_card()
dapm-&gt;component					-&gt; snd_soc_dapm_to_component()

dapm_kcontrol_get_value()			-&gt; snd_soc_dapm_kcontrol_get_value()

snd_soc_component_enable_pin()			-&gt; snd_soc_dapm_enable_pin()
snd_soc_component_enable_pin_unlocked()		-&gt; snd_soc_dapm_enable_pin_unlocked()
snd_soc_component_disable_pin()			-&gt; snd_soc_dapm_disable_pin()
snd_soc_component_disable_pin_unlocked()	-&gt; snd_soc_dapm_disable_pin_unlocked()
snd_soc_component_nc_pin()			-&gt; snd_soc_dapm_nc_pin()
snd_soc_component_nc_pin_unlocked()		-&gt; snd_soc_dapm_nc_pin_unlocked()
snd_soc_component_get_pin_status()		-&gt; snd_soc_dapm_get_pin_status()
snd_soc_component_force_enable_pin()		-&gt; snd_soc_dapm_force_enable_pin()
snd_soc_component_force_enable_pin_unlocked()	-&gt; snd_soc_dapm_force_enable_pin_unlocked()
snd_soc_component_force_bias_level()		-&gt; snd_soc_dapm_force_bias_level()
snd_soc_component_get_bias_level()		-&gt; snd_soc_dapm_get_bias_level()
snd_soc_component_init_bias_level()		-&gt; snd_soc_dapm_init_bias_level()
snd_soc_component_get_dapm()			-&gt; snd_soc_component_to_dapm()

snd_soc_dapm_kcontrol_component()		-&gt; snd_soc_dapm_kcontrol_to_component()
snd_soc_dapm_kcontrol_widget()			-&gt; snd_soc_dapm_kcontrol_to_widget()
snd_soc_dapm_kcontrol_dapm()			-&gt; snd_soc_dapm_kcontrol_to_dapm()
snd_soc_dapm_np_pin()				-&gt; snd_soc_dapm_disable_pin()

Signed-off-by: Kuninori Morimoto &lt;kuninori.morimoto.gx@renesas.com&gt;
Reviewed-by: Charles Keepax &lt;ckeepax@opensource.cirrus.com&gt;
Link: https://patch.msgid.link/878qgdtng0.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: sun4i-codec: add h616 card long_name</title>
<updated>2025-03-13T22:50:07Z</updated>
<author>
<name>Ryan Walklin</name>
<email>ryan@testtoast.com</email>
</author>
<published>2025-02-14T22:02:27Z</published>
<link rel='alternate' type='text/html' href='https://git.ilvokhin.com/linux.git/commit/?id=d389719fb4ece17ea28c0cf908066815d3ab0e25'/>
<id>urn:sha1:d389719fb4ece17ea28c0cf908066815d3ab0e25</id>
<content type='text'>
Adding jack detection requires sound servers to act on the emitted
events, which are described by ALSA Use Case Manager configurations in
userspace. These configurations include the long card name in the file
path (falling back to card-&gt;name if this is not present), so add a long
card name for the H616 without spaces, making UCM referencing easier.

The corresponding ALSA UCM patch is here (now merged):
https://github.com/alsa-project/alsa-ucm-conf/pull/491

Signed-off-by: Ryan Walklin &lt;ryan@testtoast.com&gt;

--
Changelog v1..v2:
- Separate patch for card-&gt;long_name
- Note UCM patch link

Changelog v2..v3:
- Add card-&gt;long_name rather than change existing card-&gt;name

Link: https://patch.msgid.link/20250214220247.10810-6-ryan@testtoast.com
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: sun4i-codec: support hp-det-gpios property</title>
<updated>2025-03-13T22:50:06Z</updated>
<author>
<name>Ryan Walklin</name>
<email>ryan@testtoast.com</email>
</author>
<published>2025-02-14T22:02:25Z</published>
<link rel='alternate' type='text/html' href='https://git.ilvokhin.com/linux.git/commit/?id=a149377c033afe6557c50892ebbfc0e8b7e2e253'/>
<id>urn:sha1:a149377c033afe6557c50892ebbfc0e8b7e2e253</id>
<content type='text'>
Add support for GPIO headphone detection with the hp-det-gpios
property. In order for this to properly disable the path upon
removal of headphones, the output must be labelled Headphone which
is a common sink in the driver.

Describe a headphone jack and detection GPIO in the driver, check for
a corresponding device tree node, and enable jack detection in a new
machine init function if described.

Signed-off-by: Chris Morgan &lt;macromorgan@hotmail.com&gt;
Signed-off-by: Ryan Walklin &lt;ryan@testtoast.com&gt;

--
Changelog v1..v2:
- Separate DAPM changes into separate patch and add rationale.

Tested-by: Philippe Simons &lt;simons.philippe@gmail.com&gt;
Link: https://patch.msgid.link/20250214220247.10810-4-ryan@testtoast.com
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: sun4i-codec: correct dapm widgets and controls for h616</title>
<updated>2025-03-13T22:50:05Z</updated>
<author>
<name>Ryan Walklin</name>
<email>ryan@testtoast.com</email>
</author>
<published>2025-02-14T22:02:24Z</published>
<link rel='alternate' type='text/html' href='https://git.ilvokhin.com/linux.git/commit/?id=ae5f76d4044d1580849316c49290678605e0889d'/>
<id>urn:sha1:ae5f76d4044d1580849316c49290678605e0889d</id>
<content type='text'>
The previous H616 support patch added a single LINEOUT DAPM pin switch
to the card controls. As the codec in this SoC only has a single route,
this seemed reasonable at the time, however is redundant given the
existing DAPM codec widget definitions controlling the digital and
analog sides of the codec.

It is also insufficient to describe the scenario where separate
components (muxes, jack detection etc) are used to modify the audio
route external to the SoC. For example the Anbernic RG(##)XX series of
devices uses a headphone jack detection switch, GPIO-controlled speaker
amplifier and a passive external mux chip to route audio.

Remove the redundant LINEOUT card control, and add a Speaker pin switch
control and Headphone DAPM widget to allow control of the above
hardware.

Signed-off-by: Chris Morgan &lt;macromorgan@hotmail.com&gt;
Signed-off-by: Ryan Walklin &lt;ryan@testtoast.com&gt;
Tested-by: Philippe Simons &lt;simons.philippe@gmail.com&gt;
Link: https://patch.msgid.link/20250214220247.10810-3-ryan@testtoast.com
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: sun4i-codec: Use new devm clk and reset APIs</title>
<updated>2025-01-14T14:31:14Z</updated>
<author>
<name>Bence Csókás</name>
<email>csokas.bence@prolan.hu</email>
</author>
<published>2025-01-14T09:59:07Z</published>
<link rel='alternate' type='text/html' href='https://git.ilvokhin.com/linux.git/commit/?id=65880d32e1d7eb1ef03253c454fcd8f9d41aaa09'/>
<id>urn:sha1:65880d32e1d7eb1ef03253c454fcd8f9d41aaa09</id>
<content type='text'>
Clean up error handling by using the new devm_
clock and reset functions. This should make it
easier to add new code, as we can eliminate the
"goto ladder" in probe().

Signed-off-by: Bence Csókás &lt;csokas.bence@prolan.hu&gt;
Link: https://patch.msgid.link/20250114095909.798559-1-csokas.bence@prolan.hu
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: sun4i-codec: Add support for Allwinner suniv F1C100s</title>
<updated>2024-12-02T13:27:01Z</updated>
<author>
<name>Mesih Kilinc</name>
<email>mesihkilinc@gmail.com</email>
</author>
<published>2024-11-23T12:39:02Z</published>
<link rel='alternate' type='text/html' href='https://git.ilvokhin.com/linux.git/commit/?id=2198deb823a6ebe110b737614421a4687d3327f4'/>
<id>urn:sha1:2198deb823a6ebe110b737614421a4687d3327f4</id>
<content type='text'>
Allwinner suniv F1C100s has similar but primitive audio codec
comparared to sun4i. Add support for it.

Signed-off-by: Mesih Kilinc &lt;mesihkilinc@gmail.com&gt;
[ csokas.bence: Remove `non_legacy_dai_naming`, add `reg_dac_fifoc` ]
Signed-off-by: Csókás Bence &lt;csokas.bence@prolan.hu&gt;
Link: https://github.com/mricon/b4/issues/50
Link: https://patch.msgid.link/20241123123900.2656837-4-csokas.bence@prolan.hu
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: sun4i-codec: Add DMA Max Burst field</title>
<updated>2024-12-02T13:26:59Z</updated>
<author>
<name>Mesih Kilinc</name>
<email>mesihkilinc@gmail.com</email>
</author>
<published>2024-11-23T12:38:58Z</published>
<link rel='alternate' type='text/html' href='https://git.ilvokhin.com/linux.git/commit/?id=cabd4ac290a6ceb87c8dbfb5a3251750e24529e7'/>
<id>urn:sha1:cabd4ac290a6ceb87c8dbfb5a3251750e24529e7</id>
<content type='text'>
Allwinner suniv F1C100s has similar DMA engine to sun4i but it has
smaller max burst size compared to sun4i. Add a quirk field to
differantitate between them.

Signed-off-by: Mesih Kilinc &lt;mesihkilinc@gmail.com&gt;
[ csokas.bence: Rebased on current master ]
Signed-off-by: Csókás Bence &lt;csokas.bence@prolan.hu&gt;
Link: https://patch.msgid.link/20241123123900.2656837-2-csokas.bence@prolan.hu
Link: https://github.com/mricon/b4/issues/50
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: sun4i-codec: support allwinner H616 codec</title>
<updated>2024-10-24T12:22:18Z</updated>
<author>
<name>Ryan Walklin</name>
<email>ryan@testtoast.com</email>
</author>
<published>2024-10-23T07:57:01Z</published>
<link rel='alternate' type='text/html' href='https://git.ilvokhin.com/linux.git/commit/?id=9155c321a1d0220a60878f2c99bc79b5a7e34d95'/>
<id>urn:sha1:9155c321a1d0220a60878f2c99bc79b5a7e34d95</id>
<content type='text'>
The H616 SoC codec is playback-only with a single line-out route, and
has some register differences from prior codecs.

Add the required compatible string, registers, quirks, DAPM widgets,
codec controls and routes, based on existing devices and the H616
datasheet.

Signed-off-by: Ryan Walklin &lt;ryan@testtoast.com&gt;
Link: https://patch.msgid.link/20241023075917.186835-6-ryan@testtoast.com
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: sun4i-codec: Add playback only flag to quirks</title>
<updated>2024-10-24T12:22:17Z</updated>
<author>
<name>Marcus Cooper</name>
<email>codekipper@gmail.com</email>
</author>
<published>2024-10-23T07:57:00Z</published>
<link rel='alternate' type='text/html' href='https://git.ilvokhin.com/linux.git/commit/?id=9fde21d6c5d1f75c2651442e5aae463545136aad'/>
<id>urn:sha1:9fde21d6c5d1f75c2651442e5aae463545136aad</id>
<content type='text'>
Some devices only have the playback side of the codec implemented
so add a quirk to check for this. This flag is only required internally
within the codec driver, as the DAI is configured for playback only
(capture disabled) separately in the create_card() function for these
devices.

Signed-off-by: Marcus Cooper &lt;codekipper@gmail.com&gt;
Signed-off-by: Ryan Walklin &lt;ryan@testtoast.com&gt;
Reviewed-by: Andre Przywara &lt;andre.przywara@arm.com&gt;
Tested-by: Philippe Simons &lt;simons.philippe@gmail.com&gt;
Link: https://patch.msgid.link/20241023075917.186835-5-ryan@testtoast.com
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
</feed>
