<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/sound/core/init.c, branch linux-2.6.21.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.21.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.21.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2007-02-12T17:48:46Z</updated>
<entry>
<title>[PATCH] mark struct file_operations const 9</title>
<updated>2007-02-12T17:48:46Z</updated>
<author>
<name>Arjan van de Ven</name>
</author>
<published>2007-02-12T08:55:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9c2e08c592cd357a8330c34def1e8ecfdcf53275'/>
<id>urn:sha1:9c2e08c592cd357a8330c34def1e8ecfdcf53275</id>
<content type='text'>
Many struct file_operations in the kernel can be "const".  Marking them const
moves these to the .rodata section, which avoids false sharing with potential
dirty data.  In addition it'll catch accidental writes at compile time to
these shared resources.

Signed-off-by: Arjan van de Ven &lt;arjan@linux.intel.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>[ALSA] cleanup and error reporting for sound/core/init.c</title>
<updated>2007-02-09T08:03:04Z</updated>
<author>
<name>Oliver Neukum</name>
</author>
<published>2007-01-16T16:49:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5c33dd70b51be0617a75562aa896d5ccf1840455'/>
<id>urn:sha1:5c33dd70b51be0617a75562aa896d5ccf1840455</id>
<content type='text'>
Make the control flow clear with indentation, adds some comments
and improves error reporting.

Signed-off-by: Oliver Neukum &lt;oneukum@suse.de&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Signed-off-by: Jaroslav Kysela &lt;perex@suse.cz&gt;
</content>
</entry>
<entry>
<title>[PATCH] ALSA: Fix sysfs breakage</title>
<updated>2007-01-29T22:32:53Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2007-01-26T11:40:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7d2aae1e88660cf09be913e9754e45189dc33412'/>
<id>urn:sha1:7d2aae1e88660cf09be913e9754e45189dc33412</id>
<content type='text'>
The recent change for a new sysfs tree with card* object breaks the
/sys/class/sound tree if CONFIG_SYSFS_DEPRECATED is enabled.
The device in each entry doesn't point the correct device object:

  /sys/class/sound
  ...
  |-- pcmC0D0c
  |   |-- dev
  |   |-- device -&gt; ../../../class/sound/card0
  |   |-- pcm_class
  |   |-- power
  |   |   `-- wakeup
  |   |-- subsystem -&gt; ../../../class/sound
  |   `-- uevent

Also, this change breaks some drivers (like sound/arm/*) referring
card-&gt;dev directly to obtain the device object for memory handling.

This patch reverts the semantics of card-&gt;dev to the former version,
which points to a real device object.  The card* object is stored in a
new card-&gt;card_dev field, instead.  The device parent is chosen either
card-&gt;dev or card-&gt;card_dev according to CONFIG_SYSFS_DEPRECATED to
keep the tree compatibility.
Also, card* isn't created if CONFIG_SYSFS_DEPRECATED is enabled.  The
reason of card* object is a root of all beloing devices, and it makes
little sense if each sound device points to the real device object
directly.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Acked-by: Monty Montgomery &lt;xiphmont@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>Driver core: convert sound core to use struct device</title>
<updated>2006-12-01T22:52:01Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
</author>
<published>2006-08-08T05:19:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d80f19fab89cba8a6d16193154c8ff3edab00942'/>
<id>urn:sha1:d80f19fab89cba8a6d16193154c8ff3edab00942</id>
<content type='text'>
Converts from using struct "class_device" to "struct device" making
everything show up properly in /sys/devices/ with symlinks from the
/sys/class directory.

It also makes the struct sound_card to show up as a "real" device
where all the different sound class devices are placed as childs
and different card attribute files can hang off of. /sys/class/sound is
still a flat directory, but the symlink targets of all devices belonging
to the same card, point the the /sys/devices tree below the new card
device object.

Thanks to Kay for the updates to this patch.

Signed-off-by: Kay Sievers &lt;kay.sievers@novell.com&gt;
Acked-by: Jaroslav Kysela &lt;perex@suse.cz&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>[ALSA] Handle file operations during snd_card disconnects using static file-&gt;f_op</title>
<updated>2006-10-06T18:23:04Z</updated>
<author>
<name>Karsten Wiese</name>
</author>
<published>2006-10-06T14:08:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a9edfc60227a1dc5c741666ff252a6055b73b184'/>
<id>urn:sha1:a9edfc60227a1dc5c741666ff252a6055b73b184</id>
<content type='text'>
Alsa used to kmalloc one file-&gt;f_op per file per disconnecting snd_card.
This led to oopses sometimes when file-&gt;f_op was freed before __fput()
finished.
Patch adds a virtual device for disconnect: VDD.
VDD consists of:
	LIST_HEAD(shutdown_files)
	    protected by DEFINE_SPINLOCK(shutdown_mutex)
	static struct file_operations snd_shutdown_f_ops
	    and functions assigned to it
	Additions to struct snd_monitor_file
	    to specify if instance is hidden by VDD or not.
A VDD's instance is
	created in snd_card_disconnect() under the card-&gt;files_lock.
	cleaned up in snd_card_file_remove() under the card-&gt;files_lock.

Signed-off-by: Karsten Wiese &lt;fzu@wemgehoertderstaat.de&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Signed-off-by: Jaroslav Kysela &lt;perex@suse.cz&gt;
</content>
</entry>
<entry>
<title>[ALSA] Deprecate snd_card_free_in_thread()</title>
<updated>2006-09-23T08:37:03Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2006-06-23T12:38:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2b29b13c5794f648cd5e839796496704d787f5a6'/>
<id>urn:sha1:2b29b13c5794f648cd5e839796496704d787f5a6</id>
<content type='text'>
Deprecated snd_card_free_in_thread(), replaced with
snd_card_free_when_closed().

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Signed-off-by: Jaroslav Kysela &lt;perex@suse.cz&gt;
</content>
</entry>
<entry>
<title>[ALSA] Unregister device files at disconnection</title>
<updated>2006-09-23T08:36:58Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2006-06-23T12:38:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c461482c8072bb073e6146db320d3da85cdc89ad'/>
<id>urn:sha1:c461482c8072bb073e6146db320d3da85cdc89ad</id>
<content type='text'>
Orignally proposed by Sam Revitch &lt;sam.revitch@gmail.com&gt;.
Unregister device files at disconnection to avoid the futher accesses.
Also, the dev_unregister callback is removed and replaced with the
combination of disconnect + free.
A new function snd_card_free_when_closed() is introduced, which is
used in USB disconnect callback.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Signed-off-by: Jaroslav Kysela &lt;perex@suse.cz&gt;
</content>
</entry>
<entry>
<title>[ALSA] Fix disconnection of proc interface</title>
<updated>2006-09-23T08:36:48Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2006-06-23T12:37:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=746d4a02e68499fc6c1f8d0c43d2271853ade181'/>
<id>urn:sha1:746d4a02e68499fc6c1f8d0c43d2271853ade181</id>
<content type='text'>
- Add the linked list to each proc entry to enable a single-shot
  disconnection (unregister)
- Deprecate snd_info_unregister(), use snd_info_free_entry()
- Removed NULL checks of snd_info_free_entry()

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Signed-off-by: Jaroslav Kysela &lt;perex@suse.cz&gt;
</content>
</entry>
<entry>
<title>[ALSA] Remove zero-initialization of static variables</title>
<updated>2006-06-22T19:33:45Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2006-05-17T15:14:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6581f4e74d8541dd7d579f64e94822622cbb1654'/>
<id>urn:sha1:6581f4e74d8541dd7d579f64e94822622cbb1654</id>
<content type='text'>
Removed zero-initializations of static variables.
A tiny optimization.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>[ALSA] Fix rwlock around snd_iprintf() in sound core</title>
<updated>2006-06-22T19:33:37Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2006-05-15T17:49:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=746df94898554b3d8e91d855e934852e626c701c'/>
<id>urn:sha1:746df94898554b3d8e91d855e934852e626c701c</id>
<content type='text'>
Fixed rwlock around snd_iprintf() in sound core part.
Replaced with mutex.
Also, make mutex and flags static variables with addition of
snd_card_locked() function (just for sound.c).

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