<feed xmlns='http://www.w3.org/2005/Atom'>
<title>BMC/Intel-BMC/linux.git/sound/synth, branch dev</title>
<subtitle>Intel OpenBMC Linux kernel source tree (mirror)</subtitle>
<id>https://git.radix-linux.su/BMC/Intel-BMC/linux.git/atom?h=dev</id>
<link rel='self' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/atom?h=dev'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/'/>
<updated>2015-05-29T05:58:11+00:00</updated>
<entry>
<title>ALSA: emux: Fix/cleanup old ifdef CONFIG_PROC_FS</title>
<updated>2015-05-29T05:58:11+00:00</updated>
<author>
<name>Takashi Iwai</name>
<email>tiwai@suse.de</email>
</author>
<published>2015-05-29T05:58:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=52262b4a5d7c3d3549985a47d96fe7d661220162'/>
<id>urn:sha1:52262b4a5d7c3d3549985a47d96fe7d661220162</id>
<content type='text'>
Build emux_proc.o and drop the unneeded ifdefs.
Replace the left CONFIG_PROC with the new CONFIG_SND_PROC_FS.

Along with this, fix the build of emux_oss.o in Makefile, too.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: emux: Fix mutex deadlock in OSS emulation</title>
<updated>2015-04-28T15:45:45+00:00</updated>
<author>
<name>Takashi Iwai</name>
<email>tiwai@suse.de</email>
</author>
<published>2015-04-28T15:11:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=1c94e65c668f44d2c69ae7e7fc268ab3268fba3e'/>
<id>urn:sha1:1c94e65c668f44d2c69ae7e7fc268ab3268fba3e</id>
<content type='text'>
The OSS emulation in synth-emux helper has a potential AB/BA deadlock
at the simultaneous closing and opening:

  close -&gt;
    snd_seq_release() -&gt;
      sne_seq_free_client() -&gt;
        snd_seq_delete_all_ports(): takes client-&gt;ports_mutex -&gt;
	  port_delete() -&gt;
	    snd_emux_unuse(): takes emux-&gt;register_mutex

  open -&gt;
    snd_seq_oss_open() -&gt;
      snd_emux_open_seq_oss(): takes emux-&gt;register_mutex -&gt;
        snd_seq_event_port_attach() -&gt;
	  snd_seq_create_port(): takes client-&gt;ports_mutex

This patch addresses the deadlock by reducing the rance taking
emux-&gt;register_mutex in snd_emux_open_seq_oss().  The lock is needed
for the refcount handling, so move it locally.  The calls in
emux_seq.c are already with the mutex, thus they are replaced with the
version without mutex lock/unlock.

Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: emux: Fix mutex deadlock at unloading</title>
<updated>2015-04-27T12:50:39+00:00</updated>
<author>
<name>Takashi Iwai</name>
<email>tiwai@suse.de</email>
</author>
<published>2015-04-27T12:50:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=07b0e5d49d227e3950cb13a3e8caf248ef2a310e'/>
<id>urn:sha1:07b0e5d49d227e3950cb13a3e8caf248ef2a310e</id>
<content type='text'>
The emux-synth driver has a possible AB/BA mutex deadlock at unloading
the emu10k1 driver:

  snd_emux_free() -&gt;
    snd_emux_detach_seq(): mutex_lock(&amp;emu-&gt;register_mutex) -&gt;
      snd_seq_delete_kernel_client() -&gt;
        snd_seq_free_client(): mutex_lock(&amp;register_mutex)

  snd_seq_release() -&gt;
    snd_seq_free_client(): mutex_lock(&amp;register_mutex) -&gt;
      snd_seq_delete_all_ports() -&gt;
        snd_emux_unuse(): mutex_lock(&amp;emu-&gt;register_mutex)

Basically snd_emux_detach_seq() doesn't need a protection of
emu-&gt;register_mutex as it's already being unregistered.  So, we can
get rid of this for avoiding the deadlock.

Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: Include linux/uaccess.h and linux/bitopts.h instead of asm/*</title>
<updated>2015-01-28T16:25:07+00:00</updated>
<author>
<name>Takashi Iwai</name>
<email>tiwai@suse.de</email>
</author>
<published>2015-01-28T16:24:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=976412fbc9855176ea7e02602a601b46c4479fcc'/>
<id>urn:sha1:976412fbc9855176ea7e02602a601b46c4479fcc</id>
<content type='text'>
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: emux: Use setup_timer() and mod_timer()</title>
<updated>2015-01-19T10:41:13+00:00</updated>
<author>
<name>Takashi Iwai</name>
<email>tiwai@suse.de</email>
</author>
<published>2015-01-19T10:41:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=abd083526af3a8a1610e884c8e619925c3d663e6'/>
<id>urn:sha1:abd083526af3a8a1610e884c8e619925c3d663e6</id>
<content type='text'>
No functional change, refactoring with the standard helpers.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: emux: Delete an unnecessary check before the function call "snd_sf_free"</title>
<updated>2015-01-04T14:12:29+00:00</updated>
<author>
<name>Markus Elfring</name>
<email>elfring@users.sourceforge.net</email>
</author>
<published>2015-01-03T17:28:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=b172e0aae6d14baf646a36052d03b301535f4ef5'/>
<id>urn:sha1:b172e0aae6d14baf646a36052d03b301535f4ef5</id>
<content type='text'>
The snd_sf_free() function tests whether its argument is NULL and then
returns immediately. Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring &lt;elfring@users.sourceforge.net&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: synth: emux: soundfont.c: Cleaning up memory leak</title>
<updated>2014-06-01T12:33:09+00:00</updated>
<author>
<name>Rickard Strandqvist</name>
<email>rickard_strandqvist@spectrumdigital.se</email>
</author>
<published>2014-06-01T11:35:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=14577c25169beb8676577490bf2f0bd539d5e999'/>
<id>urn:sha1:14577c25169beb8676577490bf2f0bd539d5e999</id>
<content type='text'>
There is a risk for memory leak in when something unexpected happens
and the function returns.

This was largely found by using a static code analysis program called cppcheck.

[fixed a typo of kfree() by tiwai]

Signed-off-by: Rickard Strandqvist &lt;rickard_strandqvist@spectrumdigital.se&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>sound: Add export.h for THIS_MODULE/EXPORT_SYMBOL where needed</title>
<updated>2011-10-31T23:31:22+00:00</updated>
<author>
<name>Paul Gortmaker</name>
<email>paul.gortmaker@windriver.com</email>
</author>
<published>2011-09-22T13:34:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=d81a6d71760c4d8323f1f9a506c64084caa09063'/>
<id>urn:sha1:d81a6d71760c4d8323f1f9a506c64084caa09063</id>
<content type='text'>
These aren't modules, but they do make use of these macros, so
they will need export.h to get that definition.  Previously,
they got it via the implicit module.h inclusion.

Signed-off-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
</content>
</entry>
<entry>
<title>sound: Add module.h to the previously silent sound users</title>
<updated>2011-10-31T23:31:21+00:00</updated>
<author>
<name>Paul Gortmaker</name>
<email>paul.gortmaker@windriver.com</email>
</author>
<published>2011-07-15T16:38:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=da155d5b40587815a4397e1a69382fe2366d940b'/>
<id>urn:sha1:da155d5b40587815a4397e1a69382fe2366d940b</id>
<content type='text'>
Lots of sound drivers were getting module.h via the implicit presence
of it in &lt;linux/device.h&gt; but we are going to clean that up.  So
fix up those users now.

Signed-off-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
</content>
</entry>
<entry>
<title>ALSA: emux: Add trivial compat ioctl handler</title>
<updated>2010-09-14T14:18:11+00:00</updated>
<author>
<name>Ben Hutchings</name>
<email>ben@decadent.org.uk</email>
</author>
<published>2010-09-12T01:41:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=a254dba37c5a372fc8b44ba29509ba052d4e859d'/>
<id>urn:sha1:a254dba37c5a372fc8b44ba29509ba052d4e859d</id>
<content type='text'>
Reported-by: Carmen Cru &lt;carmen.cru@belgacom.net&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
</feed>
