<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/sound/core/init.c, branch linux-4.1.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.1.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.1.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2015-03-03T10:26:28Z</updated>
<entry>
<title>ALSA: core: Re-add snd_device_disconnect()</title>
<updated>2015-03-03T10:26:28Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2015-02-27T17:01:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e086e3035e0691b362755d1b5e24df631eee335a'/>
<id>urn:sha1:e086e3035e0691b362755d1b5e24df631eee335a</id>
<content type='text'>
Revive snd_device_disconnect() again so that it can be called from the
individual driver.  This time, HD-audio will need it.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: Add a helper to add a new attribute group to card</title>
<updated>2015-02-06T08:56:33Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2015-01-30T11:27:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6bbc7fed849597ec35ffdcaf677910dd11d71d08'/>
<id>urn:sha1:6bbc7fed849597ec35ffdcaf677910dd11d71d08</id>
<content type='text'>
For assigning sysfs entries for a card device from the driver,
introduce a new helper function, snd_card_add_dev_attr().  In this
way, we can avoid the possible race between the device registration
and the sysfs addition / removal.

The driver can pass a new attribute group to add freely.  This has to
be called before snd_card_register().

Currently, up to two extra groups can be added.  More than that, it'll
return an error.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: Add a helper to initialize device</title>
<updated>2015-02-02T13:42:33Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2015-01-29T20:32:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4b440be667c6187717c99e4d427119fa415ced29'/>
<id>urn:sha1:4b440be667c6187717c99e4d427119fa415ced29</id>
<content type='text'>
Introduce a new helper function snd_device_initialize() to initialize
the device object for sound devices.

Reviewed-by: Jaroslav Kysela &lt;perex@perex.cz&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: doc: More kerneldoc comments on core components</title>
<updated>2014-10-30T14:42:32Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2014-10-30T14:19:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=eb9c38d54c9cad72101dfe7fefe4a784dd67da86'/>
<id>urn:sha1:eb9c38d54c9cad72101dfe7fefe4a784dd67da86</id>
<content type='text'>
Some functions missed the proper kerneldoc comments.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: control: Protect user controls against concurrent access</title>
<updated>2014-06-18T13:12:33Z</updated>
<author>
<name>Lars-Peter Clausen</name>
</author>
<published>2014-06-18T11:32:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=07f4d9d74a04aa7c72c5dae0ef97565f28f17b92'/>
<id>urn:sha1:07f4d9d74a04aa7c72c5dae0ef97565f28f17b92</id>
<content type='text'>
The user-control put and get handlers as well as the tlv do not protect against
concurrent access from multiple threads. Since the state of the control is not
updated atomically it is possible that either two write operations or a write
and a read operation race against each other. Both can lead to arbitrary memory
disclosure. This patch introduces a new lock that protects user-controls from
concurrent access. Since applications typically access controls sequentially
than in parallel a single lock per card should be fine.

Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Acked-by: Jaroslav Kysela &lt;perex@perex.cz&gt;
Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: Clean up snd_device_*() codes</title>
<updated>2014-02-25T11:12:52Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2014-02-04T10:36:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=72620d6048445bda3f748c97fb2f18e47b19a9e5'/>
<id>urn:sha1:72620d6048445bda3f748c97fb2f18e47b19a9e5</id>
<content type='text'>
A few code cleanups and optimizations.  In addition, drop
snd_device_disconnect() that isn't used at all, and drop the return
values from snd_device_free*().

Another slight difference by this change is that now the device state
will become always SNDRV_DEV_REGISTERED no matter whether dev_register
ops is present or not.  It's for better consistency.  There should be
no impact for the current tree, as the state isn't checked.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: Use priority list for managing device list</title>
<updated>2014-02-25T11:12:51Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2014-01-29T14:53:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=289ca025ee1d78223e3368801fc2b984e5efbfc7'/>
<id>urn:sha1:289ca025ee1d78223e3368801fc2b984e5efbfc7</id>
<content type='text'>
Basically, the device type specifies the priority of the device to be
registered / freed, too.  However, the priority value isn't well
utilized but only it's checked as a group.  This results in
inconsistent register and free order (where each of them should be in
reversed direction).

This patch simplifies the device list management code by simply
inserting a list entry at creation time in an incremental order for
the priority value.  Since we can just follow the link for register,
disconnect and free calls, we don't have to specify the group; so the
whole enum definitions are also simplified as well.

The visible change to outside is that the priorities of some object
types are revisited.  For example, now the SNDRV_DEV_LOWLEVEL object
is registered before others (control, PCM, etc) and, in return,
released after others.  Similarly, SNDRV_DEV_CODEC is in a lower
priority than SNDRV_DEV_BUS for ensuring the dependency.

Also, the unused SNDRV_DEV_TOPLEVEL, SNDRV_DEV_LOWLEVEL_PRE and
SNDRV_DEV_LOWLEVEL_NORMAL are removed as a cleanup.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: core: Fix missing card sysfs contents</title>
<updated>2014-02-19T10:20:32Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2014-02-19T10:18:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b203dbab0838afa4b2de8b5bd880fb124446b764'/>
<id>urn:sha1:b203dbab0838afa4b2de8b5bd880fb124446b764</id>
<content type='text'>
While moving the card device into struct snd_card, the reference to
the assigned card in sysfs show/store callbacks were forgotten to be
refreshed, still accessing to the no longer used drvdata.  Fix these
places to refer correctly via container_of().

Also, remove the superfluous NULL checks since it's guaranteed to be
non-NULL now.

Fixes: 8bfb181c17d2 ('ALSA: Embed card device into struct snd_card')
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: core: Use standard printk helpers</title>
<updated>2014-02-14T07:14:15Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2014-02-04T17:21:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f2f9307a4f26a9fbe47fff486a9cee5885af748f'/>
<id>urn:sha1:f2f9307a4f26a9fbe47fff486a9cee5885af748f</id>
<content type='text'>
Use dev_err() &amp; co as much as possible.  If not available (no device
assigned at the calling point), use pr_xxx() helpers instead.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: Use standard device refcount for card accounting</title>
<updated>2014-02-14T07:14:13Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2014-01-29T11:13:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f24640648186b59bd39f8cd640d631bdb61a3197'/>
<id>urn:sha1:f24640648186b59bd39f8cd640d631bdb61a3197</id>
<content type='text'>
Drop the own refcount but use the standard device refcounting via
get_device() and put_device().  Introduce a new completion to snd_card
instead of the wait queue for syncing the last release, which is used
in snd_card_free().

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