<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/sound/xen, 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>2019-04-17T06:39:47Z</updated>
<entry>
<title>ALSA: xen-front: Do not use stream buffer size before it is set</title>
<updated>2019-04-17T06:39:47Z</updated>
<author>
<name>Oleksandr Andrushchenko</name>
</author>
<published>2019-04-04T12:38:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3c20e6c50e03bfc78b4405e814a7016d5a13fcdc'/>
<id>urn:sha1:3c20e6c50e03bfc78b4405e814a7016d5a13fcdc</id>
<content type='text'>
commit 8b030a57e35a0efc1a8aa18bb10555bc5066ac40 upstream.

This fixes the regression introduced while moving to Xen shared
buffer implementation.

Fixes: 58f9d806d16a ("ALSA: xen-front: Use Xen common shared buffer implementation")
Reviewed-by: Juergen Gross &lt;jgross@suse.com&gt;
Signed-off-by: Oleksandr Andrushchenko &lt;oleksandr_andrushchenko@epam.com&gt;
Cc: &lt;stable@vger.kernel.org&gt; # v5.0+
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>ALSA: xen-front: Use Xen common shared buffer implementation</title>
<updated>2018-12-18T17:19:37Z</updated>
<author>
<name>Oleksandr Andrushchenko</name>
</author>
<published>2018-11-30T07:42:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=58f9d806d16a38ed3bae11e2ada83393436a4956'/>
<id>urn:sha1:58f9d806d16a38ed3bae11e2ada83393436a4956</id>
<content type='text'>
Use page directory based shared buffer implementation
now available as common code for Xen frontend drivers.

Signed-off-by: Oleksandr Andrushchenko &lt;oleksandr_andrushchenko@epam.com&gt;
Reviewed-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Signed-off-by: Boris Ostrovsky &lt;boris.ostrovsky@oracle.com&gt;
</content>
</entry>
<entry>
<title>ALSA: xen-front: Refine indentations and constify snd_pcm_ops</title>
<updated>2018-09-20T07:14:52Z</updated>
<author>
<name>Nick Simonov</name>
</author>
<published>2018-09-19T21:47:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e53134fefd20c863a873ba77cf2a78fa00c18eec'/>
<id>urn:sha1:e53134fefd20c863a873ba77cf2a78fa00c18eec</id>
<content type='text'>
snd_pcm_ops are not supposed to change. So mark the
non-const structs as const. Also, refine indentation
to ncrease readability.

Signed-off-by: Nick Simonov &lt;nicksimonovv@gmail.com&gt;
Reviewed-by: Oleksandr Andrushchenko &lt;oleksandr_andrushchenko@epam.com&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: xen: Use standard pcm_format_to_bits() for ALSA format bits</title>
<updated>2018-07-27T07:05:34Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2018-07-25T21:19:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3ac14b3960185d4c8a2f14b84042aa1aa8531d88'/>
<id>urn:sha1:3ac14b3960185d4c8a2f14b84042aa1aa8531d88</id>
<content type='text'>
The open codes with the bit shift in xen_snd_front_alsa.c give sparse
warnings as the PCM format type is with __bitwise.
There is already a standard macro to get the format bits, so let's use
it instead.

This fixes sparse warnings like:
  sound/xen/xen_snd_front_alsa.c:191:47: warning: restricted snd_pcm_format_t degrades to integer

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: xen-front: fix a loop timeout</title>
<updated>2018-05-31T07:11:03Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2018-05-31T06:25:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0d5bcfc9974ad8ce0fc77a95a53ab704faa0dfb7'/>
<id>urn:sha1:0d5bcfc9974ad8ce0fc77a95a53ab704faa0dfb7</id>
<content type='text'>
We want the loop to exit when "to" is set to zero, but in the current
code it's set to -1.  Also I tweaked the indenting so it doesn't look
like we're passing "--to" to xenbus_read_unsigned().

Fixes: cc3196ae197c ("ALSA: xen-front: Introduce Xen para-virtualized sound frontend driver")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Reviewed-by: Oleksandr Andrushchenko &lt;oleksandr_andrushchenko@epam.com&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: xen-front: freeing an error pointer</title>
<updated>2018-05-30T11:19:45Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2018-05-30T10:36:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e46dcbb17d790008a12b1c18f6235d03d1dd635b'/>
<id>urn:sha1:e46dcbb17d790008a12b1c18f6235d03d1dd635b</id>
<content type='text'>
kfree() doesn't accept error pointers so I've set "str" to NULL on these
paths.

Fixes: fd3b36045c2c ("ALSA: xen-front: Read sound driver configuration from Xen store")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Reviewed-by: Oleksandr Andrushchenko &lt;oleksandr_andrushchenko@epam.com&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: xen: ensure nul-terminated device name</title>
<updated>2018-05-29T06:27:54Z</updated>
<author>
<name>Arnd Bergmann</name>
</author>
<published>2018-05-28T15:59:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4c0eaac716d8e461584a4c8529cb00c72a563fa8'/>
<id>urn:sha1:4c0eaac716d8e461584a4c8529cb00c72a563fa8</id>
<content type='text'>
gcc-8 warns that pcm_instance-&gt;name is not necessarily terminated correctly
if the input is more than 80 characters long or lacks a termination byte
itself:

In function 'strncpy',
    inlined from 'cfg_device' at sound/xen/xen_snd_front_cfg.c:399:3,
    inlined from 'xen_snd_front_cfg_card' at sound/xen/xen_snd_front_cfg.c:509:9:
include/linux/string.h:254:9: error: '__builtin_strncpy' specified bound 80 equals destination size [-Werror=stringop-truncation]
  return __builtin_strncpy(p, q, size);

Using strlcpy() instead of strncpy() makes this a bit safer.

Fixes: fd3b36045c2c ("ALSA: xen-front: Read sound driver configuration from Xen store")
Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Reviewed-by: Oleksandr Andrushchenko &lt;oleksandr_andrushchenko@epam.com&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: xen-front: fix unsigned error check on return from to_sndif_format</title>
<updated>2018-05-28T09:30:33Z</updated>
<author>
<name>Colin Ian King</name>
</author>
<published>2018-05-27T21:32:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=014cea591afac9b3dae61793446f83d5be634203'/>
<id>urn:sha1:014cea591afac9b3dae61793446f83d5be634203</id>
<content type='text'>
The negative error return from the call to to_sndif_format is being
assigned to an unsigned 8 bit integer and hence the check for a negative
value is always going to be false.  Fix this by using ret as the error
return and hence the negative error can be detected and assign
the u8 sndif_format to ret if there is no error.

Detected by CoverityScan, CID#1469385 ("Unsigned compared against 0")

Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Reviewed-by: Takashi Sakamoto &lt;o-takashi@sakamoccchi.jp&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: xen-front: remove redundant error check on ret</title>
<updated>2018-05-28T09:28:44Z</updated>
<author>
<name>Colin Ian King</name>
</author>
<published>2018-05-27T21:23:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3d6246173798fc7a81a69ad3fd0dd55fa1779068'/>
<id>urn:sha1:3d6246173798fc7a81a69ad3fd0dd55fa1779068</id>
<content type='text'>
The error for a -ve value in ret is redundant as all previous
assignments to ret have an associated -ve check and hence it
is impossible for ret to be less that zero at the point of the
check.  Remove this redundant error check.

Detected by CoveritScan, CID#1469407 ("Logically Dead code")

Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
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: xen-front: Implement ALSA virtual sound driver</title>
<updated>2018-05-16T10:59:57Z</updated>
<author>
<name>Oleksandr Andrushchenko</name>
</author>
<published>2018-05-14T06:27:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1cee559351a7cb57b405554bac10a6f33c28ed09'/>
<id>urn:sha1:1cee559351a7cb57b405554bac10a6f33c28ed09</id>
<content type='text'>
Implement essential initialization of the sound driver:
  - introduce required data structures
  - handle driver registration
  - handle sound card registration
  - register sound driver on backend connection
  - remove sound driver on backend disconnect

Initialize virtual sound card with streams according to the
Xen store configuration.

Implement ALSA driver operations including:
  - manage frontend/backend shared buffers
  - manage Xen bus event channel states

Implement requests from front to back for ALSA
PCM operations.
  - report ALSA period elapsed event: handle XENSND_EVT_CUR_POS
    notifications from the backend when stream position advances
    during playback/capture. The event carries a value of how
    many octets were played/captured at the time of the event.
  - implement explicit stream parameter negotiation between
    backend and frontend: handle XENSND_OP_HW_PARAM_QUERY request
    to read/update configuration space for the parameter given:
    request passes desired parameter interval and the response to
    this request returns min/max interval for the parameter to be used.

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