<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/include/sound/pcm_params.h, branch linux-5.1.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-5.1.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-5.1.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2018-11-29T11:05:19Z</updated>
<entry>
<title>ALSA: pcm: Fix interval evaluation with openmin/max</title>
<updated>2018-11-29T11:05:19Z</updated>
<author>
<name>Takashi Iwai</name>
<email>tiwai@suse.de</email>
</author>
<published>2018-11-29T11:05:19Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=5363857b916c1f48027e9b96ee8be8376bf20811'/>
<id>urn:sha1:5363857b916c1f48027e9b96ee8be8376bf20811</id>
<content type='text'>
As addressed in alsa-lib (commit b420056604f0), we need to fix the
case where the evaluation of PCM interval "(x x+1]" leading to
-EINVAL.  After applying rules, such an interval may be translated as
"(x x+1)".

Fixes: ff2d6acdf6f1 ("ALSA: pcm: Fix snd_interval_refine first/last with open min/max")
Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: pcm: Add snd_mask_set_format() helper for standard usages</title>
<updated>2018-07-26T16:09:04Z</updated>
<author>
<name>Takashi Iwai</name>
<email>tiwai@suse.de</email>
</author>
<published>2018-07-25T21:17:17Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=0b62834e73e332fea76a340d62aaf50c732b17e0'/>
<id>urn:sha1:0b62834e73e332fea76a340d62aaf50c732b17e0</id>
<content type='text'>
Many drivers calling snd_mask_set() need to do ugly cast with __force
for shutting up the sparse warnings.  Actually almost all of them are
about setting the format, so it's far better to provide a common
helper snd_mask_set_format() to pass SNDRV_PCM_FORMAT_* directly
without the cast.

There are a few other calls of snd_mask_set(), but they are in the PCM
core code, so we leave them for now.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ALSA: Add params_set_format helper</title>
<updated>2015-02-23T15:43:18Z</updated>
<author>
<name>Fang, Yang A</name>
<email>yang.a.fang@intel.com</email>
</author>
<published>2015-02-09T08:18:11Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=052a9f698268e606ca01eb1ce2a672e548f2ce11'/>
<id>urn:sha1:052a9f698268e606ca01eb1ce2a672e548f2ce11</id>
<content type='text'>
Add a helper to set pcm format directly from params

Signed-off-by: Fang, Yang A &lt;yang.a.fang@intel.com&gt;
Reviewed-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ALSA: pcm: Replace custom ld2 function with __fls</title>
<updated>2014-12-30T15:41:56Z</updated>
<author>
<name>Lars-Peter Clausen</name>
<email>lars@metafoo.de</email>
</author>
<published>2014-12-29T18:41:46Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=757b037650c9ecca79a46ab744820b1b3c1bb49d'/>
<id>urn:sha1:757b037650c9ecca79a46ab744820b1b3c1bb49d</id>
<content type='text'>
__fls has the same semantics as ld2, so there is no need to re-implement it.
Furthermore a lot of architectures have custom implementations of __fls that
are able to use special hardware instructions to compute the result. This
makes the code slightly shorter and faster.

Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: pcm: Use __ffs() instead of ffs() in snd_mask_min()</title>
<updated>2014-12-30T15:41:55Z</updated>
<author>
<name>Lars-Peter Clausen</name>
<email>lars@metafoo.de</email>
</author>
<published>2014-12-29T18:41:44Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=599ee3291ae88700749e2910a11d1c0f0532355e'/>
<id>urn:sha1:599ee3291ae88700749e2910a11d1c0f0532355e</id>
<content type='text'>
The difference between __ffs and ffs is that ffs will return a one based
index whereas __ffs will return a zero based index. Furthermore ffs will
check if the passed value is zero and return zero in that case, whereas
__ffs behavior is undefined if the passed parameter is 0.

Since we already check if the mask is 0 before calling ffs and also subtract
1 from the result __ffs is the better choice.

Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: pcm: Simplify params_period_bytes()</title>
<updated>2014-12-30T15:41:55Z</updated>
<author>
<name>Lars-Peter Clausen</name>
<email>lars@metafoo.de</email>
</author>
<published>2014-12-29T18:41:43Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=cd9978f1d3dbb9596a7ab9c652cb0d9b355489b5'/>
<id>urn:sha1:cd9978f1d3dbb9596a7ab9c652cb0d9b355489b5</id>
<content type='text'>
The hw_params struct has a parameter that contains the period size in bytes.
This can be used instead of deriving the value from other parameters. This
is similar to e.g. params_buffer_bytes()

Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: pcm: Add kernel doc for params_*() functions</title>
<updated>2014-12-30T15:41:54Z</updated>
<author>
<name>Lars-Peter Clausen</name>
<email>lars@metafoo.de</email>
</author>
<published>2014-12-29T18:41:42Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=89827ca9dd6173da7dcc035653bea67fa6ac0cbf'/>
<id>urn:sha1:89827ca9dd6173da7dcc035653bea67fa6ac0cbf</id>
<content type='text'>
Add kernel doc for the remaining undocumented params_*() functions.

Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: pcm: Convert params_* mask helpers to static inline functions</title>
<updated>2014-12-30T15:41:54Z</updated>
<author>
<name>Lars-Peter Clausen</name>
<email>lars@metafoo.de</email>
</author>
<published>2014-12-29T18:41:41Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=744c2ad2f98965473880ef85cac2f8a8ca95959f'/>
<id>urn:sha1:744c2ad2f98965473880ef85cac2f8a8ca95959f</id>
<content type='text'>
Use static inline functions instead of macros for the remaining params_*()
helpers that have not been converted yet. This is slightly cleaner and
offers better type safety.

Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: pcm_params: Remove unused add/sub functions</title>
<updated>2014-12-30T15:41:54Z</updated>
<author>
<name>Lars-Peter Clausen</name>
<email>lars@metafoo.de</email>
</author>
<published>2014-12-29T18:41:38Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=26c0d8a415e5c4a01faf24165ec9dea821f6a908'/>
<id>urn:sha1:26c0d8a415e5c4a01faf24165ec9dea821f6a908</id>
<content type='text'>
Those two functions are not used anywhere and also their name is a bit to
generic to be in a global header, so remove them.

Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: Add params_width() helpers</title>
<updated>2013-12-30T12:19:26Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@linaro.org</email>
</author>
<published>2013-12-24T12:24:28Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=8c5178fca4ce5a57711ea14b807648e19b105d0e'/>
<id>urn:sha1:8c5178fca4ce5a57711ea14b807648e19b105d0e</id>
<content type='text'>
Add helpers for obtaining the width of a format directly from params
since this is expected to become a common operation in ASoC.

Signed-off-by: Mark Brown &lt;broonie@linaro.org&gt;
Reviewed-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
</feed>
