<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/sound/core/info.c, branch linux-4.15.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.15.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.15.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2017-06-16T14:19:16Z</updated>
<entry>
<title>ALSA: core: Follow standard EXPORT_SYMBOL() declarations</title>
<updated>2017-06-16T14:19:16Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2017-06-16T14:16:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=35f8001415d301ba47124f463f98eee0e7d0792c'/>
<id>urn:sha1:35f8001415d301ba47124f463f98eee0e7d0792c</id>
<content type='text'>
Just a tidy up to follow the standard EXPORT_SYMBOL*() declarations
in order to improve grep-ability.

- Move EXPORT_SYMBOL*() to the position right after its definition
- Remove superfluous blank line before EXPORT_SYMBOL*() lines

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: info: Use kvzalloc() for a temporary write buffer</title>
<updated>2017-05-23T05:04:06Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2017-05-22T15:39:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ffb73b08e79418fbf3f2ea44a7818a6715399d2c'/>
<id>urn:sha1:ffb73b08e79418fbf3f2ea44a7818a6715399d2c</id>
<content type='text'>
We used to use kmalloc (more exactly, krealloc()) for creating and
growing the temporary buffer for text proc write.  It can grow up to
16kB, and it's already a bit doubtful whether it's always safe to use
kmalloc().  With the recent addition of kvmalloc(), we can have a
better chance for succeed of memory allocation, so let's switch to
that new API.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: info: Return error for invalid read/write</title>
<updated>2016-11-08T13:37:26Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2016-10-30T21:13:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6809cd682b82dfff47943850d1a8c714f971b5ca'/>
<id>urn:sha1:6809cd682b82dfff47943850d1a8c714f971b5ca</id>
<content type='text'>
Currently the ALSA proc handler allows read or write even if the proc
file were write-only or read-only.  It's mostly harmless, does thing
but allocating memory and ignores the input/output.  But it doesn't
tell user about the invalid use, and it's confusing and inconsistent
in comparison with other proc files.

This patch adds some sanity checks and let the proc handler returning
an -EIO error when the invalid read/write is performed.

Cc: &lt;stable@vger.kernel.org&gt; # v4.2+
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: info: Limit the proc text input size</title>
<updated>2016-11-08T12:16:40Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2016-10-30T21:18:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=027a9fe6835620422b6713892175716f3613dd9d'/>
<id>urn:sha1:027a9fe6835620422b6713892175716f3613dd9d</id>
<content type='text'>
The ALSA proc handler allows currently the write in the unlimited size
until kmalloc() fails.  But basically the write is supposed to be only
for small inputs, mostly for one line inputs, and we don't have to
handle too large sizes at all.  Since the kmalloc error results in the
kernel warning, it's better to limit the size beforehand.

This patch adds the limit of 16kB, which must be large enough for the
currently existing code.

Cc: stable@vger.kernel.org # v4.2+
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: info: Drop kerneldoc comment from snd_info_create_entry()</title>
<updated>2015-05-18T07:45:11Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2015-05-18T07:45:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c309c467edbe006f335af5947f89636bc5473a1b'/>
<id>urn:sha1:c309c467edbe006f335af5947f89636bc5473a1b</id>
<content type='text'>
It's no longer a part of API but merely a local function.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: info: Move list addition to snd_info_create_entry()</title>
<updated>2015-05-18T07:44:28Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2015-05-18T07:43:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8e7ccb7ba3b67245e7be0cadbdd2aaf4a3ba1f40'/>
<id>urn:sha1:8e7ccb7ba3b67245e7be0cadbdd2aaf4a3ba1f40</id>
<content type='text'>
Just a minor refactoring, no functional changes.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: info: Register proc entries recursively, too</title>
<updated>2015-05-18T07:20:24Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2015-05-18T07:20:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2471b6c80a70e80de69f5ff4c37187c3912e5874'/>
<id>urn:sha1:2471b6c80a70e80de69f5ff4c37187c3912e5874</id>
<content type='text'>
The commit [c560a6797e3b: ALSA: core: Remove child proc file elements
recursively] converted snd_card_proc_new() with the normal
snd_info_*() call and removed snd_device chain for such info
entries. However, it misses one point: the creation of the proc entry
was managed by snd_device chain in the former code, and now it's also
gone, which results in no proc files creation at all.  Mea culpa.

This patch makes snd_info_card_register() creating the all pending
child proc entries in a shot.  Also, since snd_card_register() might
be called multiple times, this function is also changed to be callable
multiple times.

Along with the changes above, now the linked list of snd_info_entry is
added at creation time instead of snd_info_register() for keeping eyes
of pending info entries.

Fixes: c560a6797e3b ('ALSA: core: Remove child proc file elements recursively')
Reported-by: "Lu, Han" &lt;han.lu@intel.com&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: info: Fix leaks of child entries at snd_info_free_entry()</title>
<updated>2015-05-18T07:10:45Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2015-05-18T06:59:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=90a409aad45dedc41129e0ec257b41de901b8897'/>
<id>urn:sha1:90a409aad45dedc41129e0ec257b41de901b8897</id>
<content type='text'>
snd_info_free_entry() releases the all children nodes as well, but due
to the wrong timing of releasing the link, the children nodes may be
disconnected but left unreleased.  This patch fixes it by moving the
link free at the right position.  Also it eases list_for_each_entry()
without _safe option in snd_info_disconnect() because it no longer
frees the children nodes there.

Fixes: c560a6797e3b ('ALSA: core: Remove child proc file elements recursively')
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: core: Clean up OSS proc file management</title>
<updated>2015-04-24T15:31:08Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2015-04-23T08:56:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a0dca822e923e605dbdc2f6ed4fcd96b74df9258'/>
<id>urn:sha1:a0dca822e923e605dbdc2f6ed4fcd96b74df9258</id>
<content type='text'>
A few minor cleanups:
- Move the call of snd_info_minor_register() into snd_info_init() so
  that we can call all proc-related stuff in a shot
- Add missing __init prefix to snd_info_minor_register()
- Return an error properly from snd_oss_info_register()
- Drop snd_info_minor_unregister() that is superfluous now

Acked-by: Jaroslav Kysela &lt;perex@perex.cz&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: core: Build conditionally and remove superfluous ifdefs</title>
<updated>2015-04-24T15:31:07Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2015-04-23T08:34:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=85d143180738475b89d76b18409c3125b01464e1'/>
<id>urn:sha1:85d143180738475b89d76b18409c3125b01464e1</id>
<content type='text'>
Minor cleanups of Makefile to build some codes conditionally so that
a few ifdefs can be reduced.

Acked-by: Jaroslav Kysela &lt;perex@perex.cz&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
</feed>
