]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ASoC: dmaengine: Make the pcm->name equal to pcm->id if the name is not set
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 6 Sep 2019 05:55:24 +0000 (08:55 +0300)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 16 Oct 2019 09:55:28 +0000 (11:55 +0200)
commit2e182d904c7571c20dc7a6bd7288b5af58600e7e
treeb56bc03ca69bbba60533894510cd5808ccda469a
parentc2fb2d5f75a1a7f04d322e6525bed21c8c02f2c7
ASoC: dmaengine: Make the pcm->name equal to pcm->id if the name is not set

BugLink: https://bugs.launchpad.net/bugs/1847155
[ Upstream commit 2ec42f3147e1610716f184b02e65d7f493eed925 ]

Some tools use the snd_pcm_info_get_name() to try to identify PCMs or for
other purposes.

Currently it is left empty with the dmaengine-pcm, in this case copy the
pcm->id string as pcm->name.

For example IGT is using this to find the HDMI PCM for testing audio on it.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Reported-by: Arthur She <arthur.she@linaro.org>
Link: https://lore.kernel.org/r/20190906055524.7393-1-peter.ujfalusi@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
sound/soc/soc-generic-dmaengine-pcm.c