<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/sound/soc/mediatek/mt8192, branch vm-bind</title>
<subtitle>Linux Kernel</subtitle>
<id>https://git.etezian.org/cgit.cgi/linux.git/atom?h=vm-bind</id>
<link rel='self' href='https://git.etezian.org/cgit.cgi/linux.git/atom?h=vm-bind'/>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/'/>
<updated>2022-04-14T16:37:21+00:00</updated>
<entry>
<title>ASoC: soc-card: Create jack kcontrol without pins</title>
<updated>2022-04-14T16:37:21+00:00</updated>
<author>
<name>Akihiko Odaki</name>
<email>akihiko.odaki@gmail.com</email>
</author>
<published>2022-04-08T04:11:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=19aed2d6cdb72a7c92909832b9480d9cadebeef9'/>
<id>urn:sha1:19aed2d6cdb72a7c92909832b9480d9cadebeef9</id>
<content type='text'>
snd_soc_card_jack_new() allowed to create jack kcontrol without pins,
but did not create kcontrols. The jack would not have kcontrols if pins
were not going to be added.

This renames the old snd_soc_card_jack_new() to
snd_soc_card_jack_new_pins() for use when pins are provided or will be
added later. The new snd_soc_card_jack_new() appropriately creates a
jack for use without pins and adds a kcontrol.

Signed-off-by: Akihiko Odaki &lt;akihiko.odaki@gmail.com&gt;
Link: https://lore.kernel.org/r/20220408041114.6024-1-akihiko.odaki@gmail.com
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: mediatek: mt8192: support rt1015p_rt5682s</title>
<updated>2022-04-08T11:09:51+00:00</updated>
<author>
<name>Jiaxin Yu</name>
<email>jiaxin.yu@mediatek.com</email>
</author>
<published>2022-04-08T06:05:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=6181ab31824f7b5f2ac3ee33aed583b8bb7513f0'/>
<id>urn:sha1:6181ab31824f7b5f2ac3ee33aed583b8bb7513f0</id>
<content type='text'>
Add support for using the rt5682s codec together with rt1015p on
mt8192-mt6359 machines. All configurations are shared with the rt5682
codec variant, so simply select the SND_SOC_RT5682S config to ensure the
codec is present and set the correct card name. The codec will be linked
to by pointing to it in the headset-codec property in the devicetree.

While at it, also create macros for the names of the different codec
variants supported by this driver, as well as rename occurrences of
rt1015p_rt5682 to rt1015p_rt5682x, since they are shared between rt5682
and rt5682s.

Signed-off-by: Jiaxin Yu &lt;jiaxin.yu@mediatek.com&gt;
Reviewed-by: Tzung-Bi Shih &lt;tzungbi@kernel.org&gt;
Reviewed-by: Nícolas F. R. A. Prado &lt;nfraprado@collabora.com&gt;
Tested-by: Nícolas F. R. A. Prado &lt;nfraprado@collabora.com&gt;
Reviewed-by: AngeloGioacchino Del Regno &lt;angelogioacchino.delregno@collabora.com&gt;
Link: https://lore.kernel.org/r/20220408060552.26607-5-jiaxin.yu@mediatek.com
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: mediatek: mt8192: refactor for I2S8/I2S9 DAI links of headset</title>
<updated>2022-04-08T11:09:50+00:00</updated>
<author>
<name>Jiaxin Yu</name>
<email>jiaxin.yu@mediatek.com</email>
</author>
<published>2022-04-08T06:05:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=f8910fb4985a00c0a1e6932dc5bda6181c549b76'/>
<id>urn:sha1:f8910fb4985a00c0a1e6932dc5bda6181c549b76</id>
<content type='text'>
As part of the refactoring to allow the same machine driver to be used for
the rt1015(p) and rt5682(s) codecs on the MT8192 platform, parse the
rt5682(s) codec from the headset-codec property in the devicetree and wire
it to the I2S8 and I2S9 backends.

Signed-off-by: Jiaxin Yu &lt;jiaxin.yu@mediatek.com&gt;
Reviewed-by: Tzung-Bi Shih &lt;tzungbi@kernel.org&gt;
Reviewed-by: Nícolas F. R. A. Prado &lt;nfraprado@collabora.com&gt;
Tested-by: Nícolas F. R. A. Prado &lt;nfraprado@collabora.com&gt;
Reviewed-by: AngeloGioacchino Del Regno &lt;angelogioacchino.delregno@collabora.com&gt;
Link: https://lore.kernel.org/r/20220408060552.26607-4-jiaxin.yu@mediatek.com
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: mediatek: mt8192: refactor for I2S3 DAI link of speaker</title>
<updated>2022-04-08T11:09:49+00:00</updated>
<author>
<name>Jiaxin Yu</name>
<email>jiaxin.yu@mediatek.com</email>
</author>
<published>2022-04-08T06:05:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=e1e408e60e856b99782b26308a9dc3937b1ba8bf'/>
<id>urn:sha1:e1e408e60e856b99782b26308a9dc3937b1ba8bf</id>
<content type='text'>
As part of the refactoring to allow the same machine driver to be used for
the rt1015(p) and rt5682(s) codecs on the MT8192 platform, parse the
rt1015(p) codecs from the speaker-codecs property in the devicetree and
wire them to the I2S3 backend, instead of hardcoding the links and
selecting through the compatible.

Signed-off-by: Jiaxin Yu &lt;jiaxin.yu@mediatek.com&gt;
Reviewed-by: Tzung-Bi Shih &lt;tzungbi@kernel.org&gt;
Reviewed-by: Nícolas F. R. A. Prado &lt;nfraprado@collabora.com&gt;
Tested-by: Nícolas F. R. A. Prado &lt;nfraprado@collabora.com&gt;
Reviewed-by: AngeloGioacchino Del Regno &lt;angelogioacchino.delregno@collabora.com&gt;
Link: https://lore.kernel.org/r/20220408060552.26607-3-jiaxin.yu@mediatek.com
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: mediatek: mt8192-mt6359: Fix error handling in mt8192_mt6359_dev_probe</title>
<updated>2022-03-08T12:27:59+00:00</updated>
<author>
<name>Miaoqian Lin</name>
<email>linmq006@gmail.com</email>
</author>
<published>2022-03-08T01:52:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=e45ac7831ff3e2934d58cce319c17c8ec763c95c'/>
<id>urn:sha1:e45ac7831ff3e2934d58cce319c17c8ec763c95c</id>
<content type='text'>
The device_node pointer is returned by of_parse_phandle()  with refcount
incremented. We should use of_node_put() on it when done.

This function only calls of_node_put() in the regular path.
And it will cause refcount leak in error paths.
Fix this by calling of_node_put() in error handling too.

Fixes: 4e28491a7a19 ("ASoC: mediatek: mt8192-mt6359: fix device_node leak")
Signed-off-by: Miaoqian Lin &lt;linmq006@gmail.com&gt;
Reviewed-by: Tzung-Bi Shih &lt;tzungbi@kernel.org&gt;
Link: https://lore.kernel.org/r/20220308015224.23585-1-linmq006@gmail.com
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: mediatek: use of_device_get_match_data()</title>
<updated>2021-12-29T12:45:45+00:00</updated>
<author>
<name>Tzung-Bi Shih</name>
<email>tzungbi@google.com</email>
</author>
<published>2021-12-27T06:21:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=3667a037e50a31555276a7989435126e501f0f15'/>
<id>urn:sha1:3667a037e50a31555276a7989435126e501f0f15</id>
<content type='text'>
Uses of_device_get_match_data() helper to clean some boilerplate code.

Signed-off-by: Tzung-Bi Shih &lt;tzungbi@google.com&gt;
Link: https://lore.kernel.org/r/20211227062153.3887447-1-tzungbi@google.com
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: mediatek: mt8192-mt6359: fix device_node leak</title>
<updated>2021-12-23T17:36:44+00:00</updated>
<author>
<name>Tzung-Bi Shih</name>
<email>tzungbi@google.com</email>
</author>
<published>2021-12-14T04:00:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=4e28491a7a198c668437f2be8a91a76aa52f20eb'/>
<id>urn:sha1:4e28491a7a198c668437f2be8a91a76aa52f20eb</id>
<content type='text'>
The of_parse_phandle() document:
    &gt;&gt;&gt; Use of_node_put() on it when done.

The driver didn't call of_node_put().  Fixes the leak.

Signed-off-by: Tzung-Bi Shih &lt;tzungbi@google.com&gt;
Link: https://lore.kernel.org/r/20211214040028.2992627-1-tzungbi@google.com
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: mediatek: assign correct type to argument</title>
<updated>2021-12-14T13:22:18+00:00</updated>
<author>
<name>Jiaxin Yu</name>
<email>jiaxin.yu@mediatek.com</email>
</author>
<published>2021-12-09T07:32:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=03c2192ab636987db72e99f319a942cc4f3cb352'/>
<id>urn:sha1:03c2192ab636987db72e99f319a942cc4f3cb352</id>
<content type='text'>
Fix the following sparse warning: (new ones prefixed by &gt;&gt;)
&gt;&gt; sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c:370:33:
     sparse: sparse: incorrect type in argument 3 (different base types)
   sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c:370:33: sparse:
     expected unsigned int to
   sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c:370:33: sparse:
     got restricted snd_pcm_format_t [usertype]

Correct discription of format, use S32_LE and S24_LE to distinguish the
different 32bit.

Signed-off-by: Jiaxin Yu &lt;jiaxin.yu@mediatek.com&gt;
Reported-by: kernel test robot &lt;lkp@intel.com&gt;
Reviewed-by: Tzung-Bi Shih &lt;tzungbi@google.com&gt;
Link: https://lore.kernel.org/r/20211209073224.21793-1-jiaxin.yu@mediatek.com
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: mediatek: remove unnecessary CONFIG_PM</title>
<updated>2021-11-25T11:54:28+00:00</updated>
<author>
<name>Jiaxin Yu</name>
<email>jiaxin.yu@mediatek.com</email>
</author>
<published>2021-11-25T04:24:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=faf695517c1c77bb4a4b46d54007a283962eb00e'/>
<id>urn:sha1:faf695517c1c77bb4a4b46d54007a283962eb00e</id>
<content type='text'>
The unnecessary conditional inclusion caused the following warning.

Such as:
&gt;&gt; sound/soc/mediatek/mt8192/mt8192-afe-pcm.c:2368:32: warning: unused
&gt;&gt; variable 'mt8192_afe_pm_ops' [-Wunused-const-variable]
   static const struct dev_pm_ops mt8192_afe_pm_ops = {

Because runtime_pm already handles the case without CONFIG_PM, we
can remove CONFIG_PM condition.

Signed-off-by: Jiaxin Yu &lt;jiaxin.yu@mediatek.com&gt;
Reported-by: kernel test robot &lt;lkp@intel.com&gt;
Acked-by: Tzung-Bi Shih &lt;tzungbi@google.com&gt;
Link: https://lore.kernel.org/r/20211125042422.2349-1-jiaxin.yu@mediatek.com
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: mediatek: mt8192:Fix Unbalanced pm_runtime_enable in mt8192_afe_pcm_dev_probe</title>
<updated>2021-07-11T22:47:34+00:00</updated>
<author>
<name>Zhang Qilong</name>
<email>zhangqilong3@huawei.com</email>
</author>
<published>2021-06-18T14:11:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=2af2f861edd21c1456ef7dbec52122ce1b581568'/>
<id>urn:sha1:2af2f861edd21c1456ef7dbec52122ce1b581568</id>
<content type='text'>
Add missing pm_runtime_disable() when probe error out. It could
avoid pm_runtime implementation complains when removing and probing
again the driver.

Fixes:125ab5d588b0b ("ASoC: mediatek: mt8192: add platform driver")

Signed-off-by: Zhang Qilong &lt;zhangqilong3@huawei.com&gt;
Link: https://lore.kernel.org/r/20210618141104.105047-2-zhangqilong3@huawei.com
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
</feed>
