<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/sound/soc/soc-utils.c, branch linux-5.0.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.0.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.0.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2018-09-27T22:15:46Z</updated>
<entry>
<title>ASoC: soc-utils: Rename dummy_dma_ops to snd_dummy_dma_ops</title>
<updated>2018-09-27T22:15:46Z</updated>
<author>
<name>Matthias Kaehlcke</name>
</author>
<published>2018-09-25T18:09:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=42cfb412e24ffbb46d6de9590293bc44f921a0fb'/>
<id>urn:sha1:42cfb412e24ffbb46d6de9590293bc44f921a0fb</id>
<content type='text'>
The symbols 'dummy_dma_ops' is declared with different data types by
sound/soc/soc-utils.c and arch/arm64/include/asm/dma-mapping.h. This
leads to conflicts when soc-utils.c (indirectly) includes dma-mapping.h:

sound/soc/soc-utils.c:282:33: error: conflicting types for 'dummy_dma_ops'
  static const struct snd_pcm_ops dummy_dma_ops = {
                                  ^
...
arch/arm64/include/asm/dma-mapping.h:27:33: note: previous declaration of 'dummy_dma_ops' was here
  extern const struct dma_map_ops dummy_dma_ops;
                                  ^

Rename the symbol in soc-utils.c to 'snd_dummy_dma_ops' to avoid the
conflict.

Signed-off-by: Matthias Kaehlcke &lt;mka@chromium.org&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>Merge branch 'asoc-4.18' into asoc-4.19 wmadsp dep</title>
<updated>2018-08-08T16:32:10Z</updated>
<author>
<name>Mark Brown</name>
</author>
<published>2018-08-08T16:32:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=35ef57a4190d4253b73720cf0402158eda0f1bc8'/>
<id>urn:sha1:35ef57a4190d4253b73720cf0402158eda0f1bc8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ASoC: soc-utils.c: convert to SPDX identifiers</title>
<updated>2018-07-02T09:55:18Z</updated>
<author>
<name>Kuninori Morimoto</name>
</author>
<published>2018-07-02T06:23:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=632628df453ccda727fbcc1e346600162ac995e9'/>
<id>urn:sha1:632628df453ccda727fbcc1e346600162ac995e9</id>
<content type='text'>
Signed-off-by: Kuninori Morimoto &lt;kuninori.morimoto.gx@renesas.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: soc-utils: Fix unregistration order</title>
<updated>2018-06-26T14:25:46Z</updated>
<author>
<name>Fabio Estevam</name>
</author>
<published>2018-06-26T11:58:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b66c9b911fe6ca188002b342b05c43deab4491a3'/>
<id>urn:sha1:b66c9b911fe6ca188002b342b05c43deab4491a3</id>
<content type='text'>
The unregistration should happen in the opposite order of
the registration, so change it accordingly.

No real issue has been noticed, but it is good practice to
keep the correct unregistration order.

Signed-off-by: Fabio Estevam &lt;fabio.estevam@nxp.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: soc-utils: replace codec to component</title>
<updated>2018-02-12T11:46:14Z</updated>
<author>
<name>Kuninori Morimoto</name>
</author>
<published>2018-01-29T02:58:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=03a0ddeda7ebafea8e99078581a50d856e3587a4'/>
<id>urn:sha1:03a0ddeda7ebafea8e99078581a50d856e3587a4</id>
<content type='text'>
Now we can replace Codec to Component. Let's do it.

Note:
	xxx_codec_xxx()		-&gt;	xxx_component_xxx()
	.idle_bias_off = 0	-&gt;	.idle_bias_on = 1
	.ignore_pmdown_time = 0	-&gt;	.use_pmdown_time = 1
	-			-&gt;	.endianness = 1
	-			-&gt;	.non_legacy_dai_naming	= 1

Signed-off-by: Kuninori Morimoto &lt;kuninori.morimoto.gx@renesas.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: soc-utils: replace platform to component</title>
<updated>2018-02-12T11:45:07Z</updated>
<author>
<name>Kuninori Morimoto</name>
</author>
<published>2018-01-29T02:40:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2d59ebd3e2531c48298e7bee6e621e04fccc4a72'/>
<id>urn:sha1:2d59ebd3e2531c48298e7bee6e621e04fccc4a72</id>
<content type='text'>
Now platform can be replaced to component, let's do it.

Signed-off-by: Kuninori Morimoto &lt;kuninori.morimoto.gx@renesas.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: soc-utils: add const to dummy_codec</title>
<updated>2017-11-29T10:48:45Z</updated>
<author>
<name>Kuninori Morimoto</name>
</author>
<published>2017-11-20T02:45:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=494665a0f91b51443ca14ee1dca6d96cfd003b38'/>
<id>urn:sha1:494665a0f91b51443ca14ee1dca6d96cfd003b38</id>
<content type='text'>
Let's align dummy_platform and dummy_codec

Signed-off-by: Kuninori Morimoto &lt;kuninori.morimoto.gx@renesas.com&gt;
Reviewed-by: Simon Horman &lt;horms+renesas@verge.net.au&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: soc-utils: make snd_soc_platform_driver const</title>
<updated>2017-08-14T16:21:41Z</updated>
<author>
<name>Bhumika Goyal</name>
</author>
<published>2017-08-14T11:38:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c9f3d3441311792a0beb410af74e1aad4c3f715d'/>
<id>urn:sha1:c9f3d3441311792a0beb410af74e1aad4c3f715d</id>
<content type='text'>
Make this const as it is only passed as the 2nd argument to the function
snd_soc_register_platform, which is of type const.
Done using Coccinelle

Signed-off-by: Bhumika Goyal &lt;bhumirks@gmail.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: core: Add component pin control functions</title>
<updated>2016-11-30T17:16:09Z</updated>
<author>
<name>Richard Fitzgerald</name>
</author>
<published>2016-11-29T15:44:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1b4d9c22191583ef1fb7433417b2ceb2a608d887'/>
<id>urn:sha1:1b4d9c22191583ef1fb7433417b2ceb2a608d887</id>
<content type='text'>
It's often the case that a codec driver will need to control its
own pins. However, if a name_prefix has been applied to this codec it
must be included in the name passed to any of the snd_soc_dapm_x_pin()
functions.

The behaviour of the existing pin control functions is reasonable, since
you may want to search for a fully-specified name within the scope of an
entire card. This means that we can't apply the prefix in these functions
because it will break card-scope searches.

Constructing a prefixed string "manually" in codec drivers leads to a lot
of repetition of the same code.

To make this tidier in codec drivers this patch adds a new set of
equivalent functions that take a struct snd_soc_component instead of a
dapm context and automatically add the component's name_prefix to the
given name. This makes it a simple change in codec drivers to be
prefix-safe.

The new functions are not quite trivial enough to be inlines and the
compiler won't be able to compile-away any part of them.

Although it looks somewhat inefficient to have to allocate a temporary
buffer and combine strings, the current design of the widget list
doesn't lend itself to a more optimized implementation - it's a single
list of all widgets on a card and is searched linearly for a matching
string. As pin state changes are generally low-frequency events it's
unlikely to be a significant issue - at least not enough to rewrite the
widget list handling just for this.

Signed-off-by: Richard Fitzgerald &lt;rf@opensource.wolfsonmicro.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: constify snd_pcm_ops structures</title>
<updated>2016-09-12T19:04:09Z</updated>
<author>
<name>Julia Lawall</name>
</author>
<published>2016-09-08T00:35:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=115c7254882ceb965deb05510128464fef06fbfb'/>
<id>urn:sha1:115c7254882ceb965deb05510128464fef06fbfb</id>
<content type='text'>
Check for snd_pcm_ops structures that are only stored in the ops field of a
snd_soc_platform_driver structure or passed as the third argument to
snd_pcm_set_ops.  The corresponding field or parameter is declared const,
so snd_pcm_ops structures that have this property can be declared as const
also.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// &lt;smpl&gt;
@r disable optional_qualifier@
identifier i;
position p;
@@
static struct snd_pcm_ops i@p = { ... };

@ok1@
identifier r.i;
struct snd_soc_platform_driver e;
position p;
@@
e.ops = &amp;i@p;

@ok2@
identifier r.i;
expression e1, e2;
position p;
@@
snd_pcm_set_ops(e1, e2, &amp;i@p)

@bad@
position p != {r.p,ok1.p,ok2.p};
identifier r.i;
struct snd_pcm_ops e;
@@
e@i@p

@depends on !bad disable optional_qualifier@
identifier r.i;
@@
static
+const
 struct snd_pcm_ops i = { ... };
// &lt;/smpl&gt;

Signed-off-by: Julia Lawall &lt;Julia.Lawall@lip6.fr&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
</feed>
