<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/sound/pci/nm256/nm256.c, branch linux-5.0.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.0.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.0.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2017-08-24T07:13:43Z</updated>
<entry>
<title>ALSA: nm256: constify snd_ac97_res_table</title>
<updated>2017-08-24T07:13:43Z</updated>
<author>
<name>Arvind Yadav</name>
</author>
<published>2017-08-24T06:25:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5d3806eea2dd19b083c729a32aded6d012ead5ae'/>
<id>urn:sha1:5d3806eea2dd19b083c729a32aded6d012ead5ae</id>
<content type='text'>
snd_ac97_res_table are not supposed to change at runtime. All functions
working with snd_ac97_res_table provided by &lt;sound/ac97_codec.h&gt; work with
const snd_ac97_res_table. So mark the non-const structs as const.

Signed-off-by: Arvind Yadav &lt;arvind.yadav.cs@gmail.com&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: nm256: Constify hw_constraints</title>
<updated>2017-06-09T08:42:53Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2017-06-07T12:21:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3f2bdc45f36df349d9f9984252b612c57a8b1a73'/>
<id>urn:sha1:3f2bdc45f36df349d9f9984252b612c57a8b1a73</id>
<content type='text'>
snd_pcm_hw_constraint_list(), *_ratnums() and *_ratdens() receive the
const pointers.  Constify the corresponding static objects for better
hardening.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: nm256: Convert to new PCM copy ops</title>
<updated>2017-06-02T17:37:57Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2017-05-10T18:25:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=21de5673663f2620fa2838e4e2ea5db9c91fad4d'/>
<id>urn:sha1:21de5673663f2620fa2838e4e2ea5db9c91fad4d</id>
<content type='text'>
Replace the copy and the silence ops with the new ops.
The conversion is straightforward with standard helper functions, and
now we can drop the bytes &lt;-&gt; frames conversions in callbacks.

Reviewed-by: Takashi Sakamoto &lt;o-takashi@sakamocchi.jp&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: constify snd_pcm_ops structures</title>
<updated>2016-09-02T09:49:10Z</updated>
<author>
<name>Julia Lawall</name>
</author>
<published>2016-09-01T22:13:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6769e988b0062bf8d63d35b0fdbb47b385dd3252'/>
<id>urn:sha1:6769e988b0062bf8d63d35b0fdbb47b385dd3252</id>
<content type='text'>
Check for snd_pcm_ops structures that are only stored in the ops field of a
snd_soc_platform_driver structure or passed as the third argument to
snd_pcm_set_ops.  The corresponding field or parameter is declared const,
so snd_pcm_ops structures that have this property can be declared as const
also.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// &lt;smpl&gt;
@r disable optional_qualifier@
identifier i;
position p;
@@
static struct snd_pcm_ops i@p = { ... };

@ok1@
identifier r.i;
struct snd_soc_platform_driver e;
position p;
@@
e.ops = &amp;i@p;

@ok2@
identifier r.i;
expression e1, e2;
position p;
@@
snd_pcm_set_ops(e1, e2, &amp;i@p)

@bad@
position p != {r.p,ok1.p,ok2.p};
identifier r.i;
struct snd_pcm_ops e;
@@
e@i@p

@depends on !bad disable optional_qualifier@
identifier r.i;
@@
static
+const
 struct snd_pcm_ops i = { ... };
// &lt;/smpl&gt;

Signed-off-by: Julia Lawall &lt;Julia.Lawall@lip6.fr&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: Include linux/io.h instead of asm/io.h</title>
<updated>2015-01-28T15:49:33Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2015-01-28T15:49:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6cbbfe1c8ddb6ac1322a87795dff9d8712c3e359'/>
<id>urn:sha1:6cbbfe1c8ddb6ac1322a87795dff9d8712c3e359</id>
<content type='text'>
Nowadays it's recommended.  Replace all in a shot.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>Merge branch 'topic/pci-cleanup' into for-next</title>
<updated>2015-01-11T10:26:48Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2015-01-11T10:26:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9e5947465d72ef1b3a88104474ab2adf78837220'/>
<id>urn:sha1:9e5947465d72ef1b3a88104474ab2adf78837220</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ALSA: nm256: Simplify PM callbacks</title>
<updated>2015-01-09T15:24:23Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2015-01-08T11:49:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fc9b6061cf9c42460e482f7a5947ee8120ff0960'/>
<id>urn:sha1:fc9b6061cf9c42460e482f7a5947ee8120ff0960</id>
<content type='text'>
This is a similar cleanup like the commit [3db084fd0af5: ALSA: fm801:
PCI core handles power state for us].

Since pci_set_power_state(), pci_save_state() and pci_restore_state()
are already done in the PCI core side, so we don't need to it doubly.

Also, pci_enable_device(), pci_disable_device() and pci_set_master()
calls in PM callbacks are superfluous nowadays, too, so get rid of
them as well.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: Deletion of checks before the function call "iounmap"</title>
<updated>2015-01-04T14:13:45Z</updated>
<author>
<name>Markus Elfring</name>
</author>
<published>2015-01-03T21:55:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ff6defa6a8fae12205d64f55db395b1fcf35af8e'/>
<id>urn:sha1:ff6defa6a8fae12205d64f55db395b1fcf35af8e</id>
<content type='text'>
The iounmap() function performs also input parameter validation.
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>PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use</title>
<updated>2014-08-12T18:15:14Z</updated>
<author>
<name>Benoit Taine</name>
</author>
<published>2014-08-08T13:56:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9baa3c34ac4e27f7e062f266f50cc5dbea26a6c1'/>
<id>urn:sha1:9baa3c34ac4e27f7e062f266f50cc5dbea26a6c1</id>
<content type='text'>
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to
meet kernel coding style guidelines.  This issue was reported by checkpatch.

A simplified version of the semantic patch that makes this change is as
follows (http://coccinelle.lip6.fr/):

// &lt;smpl&gt;

@@
identifier i;
declarer name DEFINE_PCI_DEVICE_TABLE;
initializer z;
@@

- DEFINE_PCI_DEVICE_TABLE(i)
+ const struct pci_device_id i[]
= z;

// &lt;/smpl&gt;

[bhelgaas: add semantic patch]
Signed-off-by: Benoit Taine &lt;benoit.taine@lip6.fr&gt;
Signed-off-by: Bjorn Helgaas &lt;bhelgaas@google.com&gt;</content>
</entry>
<entry>
<title>ALSA: nm256: Use standard printk helpers</title>
<updated>2014-02-26T15:45:29Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2014-02-25T16:57:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a3fe03f412daf40ab39ba0fbd3f78bf1f0d62856'/>
<id>urn:sha1:a3fe03f412daf40ab39ba0fbd3f78bf1f0d62856</id>
<content type='text'>
Convert with dev_err() and co from snd_printk(), etc.

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