<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/sound/soc/amd, 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-01-15T19:06:23Z</updated>
<entry>
<title>ASoC: amd: Fix potential NULL pointer dereference</title>
<updated>2019-01-15T19:06:23Z</updated>
<author>
<name>Gustavo A. R. Silva</name>
</author>
<published>2019-01-14T23:40:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4cb79ef9c6c4413427cd70afbb1f3bc01e9b7abf'/>
<id>urn:sha1:4cb79ef9c6c4413427cd70afbb1f3bc01e9b7abf</id>
<content type='text'>
Check return value from call to devm_kzalloc() in order to prevent a
potential NULL pointer dereference.

Also, notice that it makes no sense to allocate any resources if
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); fails,
so move the call to devm_kzalloc() below the mentioned code.

Lastly, improve the use of sizeof in the call to devm_kzalloc() by
changing it from sizeof(struct i2s_dev_data) to sizeof(*adata)

This issue was detected with the help of Coccinelle.

Fixes: ac289c7ec0bc ("ASoC: amd: add ACP3x PCM platform driver")
Cc: stable@vger.kernel.org
Signed-off-by: Gustavo A. R. Silva &lt;gustavo@embeddedor.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: use dma_ops of parent device for acp_audio_dma</title>
<updated>2018-12-06T12:55:28Z</updated>
<author>
<name>Yu Zhao</name>
</author>
<published>2018-12-04T22:42:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=23aa128bb28d9da69bb1bdb2b70e50128857884a'/>
<id>urn:sha1:23aa128bb28d9da69bb1bdb2b70e50128857884a</id>
<content type='text'>
AMD platform device acp_audio_dma can only be created by parent PCI
device driver (drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c). Pass struct
device of the parent to snd_pcm_lib_preallocate_pages() so
dma_alloc_coherent() can use correct dma_ops. Otherwise, it will
use default dma_ops which is nommu_dma_ops on x86_64 even when
IOMMU is enabled and set to non passthrough mode.

Though platform device inherits some dma related fields during its
creation in mfd_add_device(), we can't simply pass its struct device
to snd_pcm_lib_preallocate_pages() because dma_ops is not among the
inherited fields. Even it were, drivers/iommu/amd_iommu.c would
ignore it because get_device_id() doesn't handle platform device.

This change shouldn't give us any trouble even struct device of the
parent becomes null or represents some non PCI device in the future,
because get_dma_ops() correctly handles null struct device or uses
the default dma_ops if struct device doesn't have it set.

Signed-off-by: Yu Zhao &lt;yuzhao@google.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: use DMA addr rather than CPU pa for acp_audio_dma</title>
<updated>2018-12-06T12:53:04Z</updated>
<author>
<name>Yu Zhao</name>
</author>
<published>2018-12-04T22:42:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d6d08273996b3363178b920ccfa74acabaf67963'/>
<id>urn:sha1:d6d08273996b3363178b920ccfa74acabaf67963</id>
<content type='text'>
We shouldn't assume CPU physical address we get from page_to_phys()
is same as DMA address we get from dma_alloc_coherent(). On x86_64,
we won't run into any problem with the assumption when dma_ops is
nommu_dma_ops. However, DMA address is IOVA when IOMMU is enabled.
And it's most likely different from CPU physical address when AMD
IOMMU is not in passthrough mode.

Signed-off-by: Yu Zhao &lt;yuzhao@google.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: amd: Fix a NULL vs IS_ERR() check in probe</title>
<updated>2018-11-26T12:22:56Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2018-11-26T08:13:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=83b12c2e1d942459f420490d4219fc1ad38c3620'/>
<id>urn:sha1:83b12c2e1d942459f420490d4219fc1ad38c3620</id>
<content type='text'>
The platform_device_register_full() function doesn't return NULL, it
returns error pointers.

Fixes: 7894a7e7ea3d ("ASoC: amd: create ACP3x PCM platform device")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: amd: fix spelling mistake "Inavlid" -&gt; "Invalid"</title>
<updated>2018-11-17T03:10:04Z</updated>
<author>
<name>Colin Ian King</name>
</author>
<published>2018-11-16T13:39:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=00347e4ea8ca4c6ed5e254d7cebad0917175a07e'/>
<id>urn:sha1:00347e4ea8ca4c6ed5e254d7cebad0917175a07e</id>
<content type='text'>
There is a spelling mistake in a dev_err message. Fix this.

Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: amd: remove set but not used variable 'dma_buffer'</title>
<updated>2018-11-15T19:20:34Z</updated>
<author>
<name>YueHaibing</name>
</author>
<published>2018-11-15T01:56:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=424d5b56d020b750803134cc15bbd4d0addaaee7'/>
<id>urn:sha1:424d5b56d020b750803134cc15bbd4d0addaaee7</id>
<content type='text'>
Fixes gcc '-Wunused-but-set-variable' warning:

sound/soc/amd/raven/acp3x-pcm-dma.c: In function 'acp3x_dma_hw_params':
sound/soc/amd/raven/acp3x-pcm-dma.c:333:25: warning:
 variable 'dma_buffer' set but not used [-Wunused-but-set-variable]

It never used since introduction in commit
8de1b5ed0337 ("ASoC: amd: add acp3x system resume pm op")

Signed-off-by: YueHaibing &lt;yuehaibing@huawei.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: amd: Switch to SPDX identifier</title>
<updated>2018-11-15T19:19:04Z</updated>
<author>
<name>Vijendar Mukunda</name>
</author>
<published>2018-11-15T16:13:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d5a932e541f61a2be1cca7bab1e00d2bf7803e71'/>
<id>urn:sha1:d5a932e541f61a2be1cca7bab1e00d2bf7803e71</id>
<content type='text'>
Adopt the SPDX license identifier headers to ease license
compliance management.

Reviewed-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Signed-off-by: Vijendar Mukunda &lt;vijendar.mukunda@amd.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: amd: Fixed build errors</title>
<updated>2018-11-15T19:18:57Z</updated>
<author>
<name>Vijendar Mukunda</name>
</author>
<published>2018-11-15T16:13:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1c4fb2457e541c614792e6d9986bc95461e67e41'/>
<id>urn:sha1:1c4fb2457e541c614792e6d9986bc95461e67e41</id>
<content type='text'>
Fixed build errors.
- Implicit declaration of pci_enable_msi() &amp; pci_disable_msi()
api's for openrisc architecture.
- type defaults to 'int' in declaration of 'module_pci_driver'

Enabled build for x86 architecture.

Reviewed-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Signed-off-by: Vijendar Mukunda &lt;vijendar.mukunda@amd.com&gt;
Tested-by: Ravulapati Vishnu vardhan Rao &lt;Vishnuvardhanrao.Ravulapati@amd.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: amd: fix memory leak of i2s_data on error return</title>
<updated>2018-11-14T22:01:02Z</updated>
<author>
<name>Colin Ian King</name>
</author>
<published>2018-11-14T21:31:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=46dce4042659755a2b9753369d0c2d8ca33e35cf'/>
<id>urn:sha1:46dce4042659755a2b9753369d0c2d8ca33e35cf</id>
<content type='text'>
Currently when snd_pcm_hw_constraint_integer fails there is
a memory leak of i2s_data on the error return path. Fix this by
kfree'ing i2s_data before returning.

Detected by CoverityScan, CID#1475479 ("Resource leak")

Fixes: 0b87d6bcd648 ("ASoC: amd: add acp3x pcm driver dma ops")
Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: amd: enable acp3x drivers build</title>
<updated>2018-11-13T19:44:12Z</updated>
<author>
<name>Vijendar Mukunda</name>
</author>
<published>2018-11-12T05:35:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=818ba93b0e9ed4a08cba575dd49c1391ef4b7776'/>
<id>urn:sha1:818ba93b0e9ed4a08cba575dd49c1391ef4b7776</id>
<content type='text'>
ACP3x drivers can be built by selecting necessary kernel config option.
The patch enables build support of the same.

Signed-off-by: Maruthi Bayyavarapu &lt;maruthi.bayyavarapu@amd.com&gt;
Tested-by: Ravulapati Vishnu vardhan Rao &lt;Vishnuvardhanrao.Ravulapati@amd.com&gt;
Signed-off-by: Vijendar Mukunda &lt;vijendar.mukunda@amd.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
</feed>
