<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/sound/core/init.c, branch linux-2.6.33.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.33.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.33.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2011-04-14T23:52:46Z</updated>
<entry>
<title>ALSA: Fix yet another race in disconnection</title>
<updated>2011-04-14T23:52:46Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2011-03-24T08:50:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=03685934bacb656ac9a3512c75b3c2bc910bbedb'/>
<id>urn:sha1:03685934bacb656ac9a3512c75b3c2bc910bbedb</id>
<content type='text'>
commit a45e3d6b13e97506b616980c0f122c3389bcefa4 upstream.

This patch fixes a race between snd_card_file_remove() and
snd_card_disconnect().  When the card is added to shutdown_files list
in snd_card_disconnect(), but it's freed in snd_card_file_remove() at
the same time, the shutdown_files list gets corrupted.  The list member
must be freed in snd_card_file_remove() as well.

Reported-and-tested-by: Russ Dill &lt;russ.dill@gmail.com&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>ALSA: Remove struct snd_monitor_file from public sound/core.h</title>
<updated>2009-09-07T13:50:18Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2009-09-07T13:50:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=82a783f4bcb878e6c4f02e24c7cd0687bdea7443'/>
<id>urn:sha1:82a783f4bcb878e6c4f02e24c7cd0687bdea7443</id>
<content type='text'>
The struct snd_monitor_file is used locally only in sound/core/init.c,
thus it should be moved there from the public sound/core.h.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: Core - clean up snd_card_set_id* calls and remove possible id collision</title>
<updated>2009-06-03T23:22:07Z</updated>
<author>
<name>Jaroslav Kysela</name>
</author>
<published>2009-06-03T22:12:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5fdc18d938c99399b73fe894bc24cb9400a1a2ee'/>
<id>urn:sha1:5fdc18d938c99399b73fe894bc24cb9400a1a2ee</id>
<content type='text'>
Move locking outside snd_card_set_id_internal() function and rename it
to snd_card_set_id_no_lock() for better function description.

User defined id is just copied to card structure at allocation time.
The real unique id procedure is called in snd_card_register() to
ensure real atomicity.

Signed-off-by: Jaroslav Kysela &lt;perex@perex.cz&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: Fix double locking of card list in snd_card_register()</title>
<updated>2009-06-03T21:33:28Z</updated>
<author>
<name>Mark Brown</name>
</author>
<published>2009-06-03T19:43:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=872c78202c58d26596e25743791ee81a7d24abad'/>
<id>urn:sha1:872c78202c58d26596e25743791ee81a7d24abad</id>
<content type='text'>
The introduction of snd_card_set_id() added a lock on the card list
to the old choose_default_id() function when using it to implement
the new API call. This lock is needed to allow us to walk the list
and check to see if our new name is a duplicate. Unfortunately this
causes a lockup when called from snd_card_register() (in cases
where no ID is supplied for the card) since the card list is already
locked there.

Fix this fairly hideously by factoring out the implementation and
using a flag to indicate if the lock should be held. A better fix
would probably be to refactor snd_card_register() to move the
_set_id() outside the locking region but I can't immediately see
anything I can convince myself is safe.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: Core - add snd_card_set_id() function</title>
<updated>2009-06-02T10:47:46Z</updated>
<author>
<name>Jaroslav Kysela</name>
</author>
<published>2009-06-02T10:02:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=10a8ebbb08c4b08292598947bbe534e04d6ee705'/>
<id>urn:sha1:10a8ebbb08c4b08292598947bbe534e04d6ee705</id>
<content type='text'>
Introduce snd_card_set_id() function to allow lowlevel drivers to set
default identification name for card slot. The function checks also
for identification name collisions and tries to create unique name.

Also, the snd_card_create() function is simplified, because this new
function is used. As bonus, proper name collision checks are evaluated
at the card create time.

Signed-off-by: Jaroslav Kysela &lt;perex@perex.cz&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>Merge branch 'topic/ctl-list-cleanup' into for-linus</title>
<updated>2009-03-23T23:35:45Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2009-03-23T23:35:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=65b3864b85485a91f70988e1a222e3935bce87e4'/>
<id>urn:sha1:65b3864b85485a91f70988e1a222e3935bce87e4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ALSA: Clean up snd_monitor_file management</title>
<updated>2009-03-09T14:16:11Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2009-02-23T15:35:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=118dd6bfe7e0cddc8ab417ead19cc76000e92773'/>
<id>urn:sha1:118dd6bfe7e0cddc8ab417ead19cc76000e92773</id>
<content type='text'>
Use the standard linked list for snd_monitor_file management.
Also, move the list deletion of shutdown_list element into
snd_disconnect_release() (for simplification).

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: Introduce snd_card_create()</title>
<updated>2009-01-12T13:56:41Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2008-12-28T15:32:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=53fb1e63599438bd5f6fbb852023d80916d83983'/>
<id>urn:sha1:53fb1e63599438bd5f6fbb852023d80916d83983</id>
<content type='text'>
Introduced snd_card_create() function as a replacement of snd_card_new().
The new function returns a negative error code so that the probe callback
can return the proper error code, while snd_card_new() can give only NULL
check.

The old snd_card_new() is still provided as an inline function but with
__deprecated attribute.  It'll be removed soon later.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>sound: Fix warnings relating to ignored return value in snd_card_register</title>
<updated>2008-11-18T17:27:58Z</updated>
<author>
<name>Hannes Eder</name>
</author>
<published>2008-11-18T17:25:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2af752936b311a846622668f8b0f1893d8eccade'/>
<id>urn:sha1:2af752936b311a846622668f8b0f1893d8eccade</id>
<content type='text'>
Do not ignore the return of 'device_create_file' in
'snd_card_register' and thereby fixing the following warnings:

sound/core/init.c: In function 'snd_card_register':
sound/core/init.c:640: warning: ignoring return value of
'device_create_file', declared with attribute warn_unused_result
sound/core/init.c:641: warning: ignoring return value of
'device_create_file', declared with attribute warn_unused_result

Signed-off-by: Hannes Eder &lt;hannes@hanneseder.net&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: when card identification is changed, change also /proc/asound symlink</title>
<updated>2008-11-12T16:07:37Z</updated>
<author>
<name>Jaroslav Kysela</name>
</author>
<published>2008-11-12T15:31:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c2eb9c4ea383aee154e7139395872c4da629e715'/>
<id>urn:sha1:c2eb9c4ea383aee154e7139395872c4da629e715</id>
<content type='text'>
Signed-off-by: Jaroslav Kysela &lt;perex@perex.cz&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
</feed>
