[alsa-devel] How to treat old style platform components
![](https://secure.gravatar.com/avatar/966ff70f0f521a8f4e5ef9206d2a7912.jpg?s=120&d=mm&r=g)
HI Morimoto-san,
I'm using simple-card with an out of tree PCM DMA driver which basically just does this:
static struct snd_soc_component_driver imx_soc_platform = { .ops» » = &imx_pcm_ops, .pcm_new» = imx_pcm_new, };
Then somewhere in the DAI driver we call:
devm_snd_soc_register_component(dev, &imx_soc_platform, NULL, 0);
I'm using simple-card with the following configuration:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/arc...
After latest changes it seems that imx_pcm_ops->open() function is no longer called.
Any idea?
Please feel free to not waste any time on this, as we are using an out of tree driver.
thanks, Daniel.
![](https://secure.gravatar.com/avatar/2ea1ea42072986bc3dd023464d0c2de6.jpg?s=120&d=mm&r=g)
Hi Daniel
Thank you for contacting me
static struct snd_soc_component_driver imx_soc_platform = { .ops» » = &imx_pcm_ops, .pcm_new» = imx_pcm_new, };
Then somewhere in the DAI driver we call:
devm_snd_soc_register_component(dev, &imx_soc_platform, NULL, 0);
I'm using simple-card with the following configuration:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/arc...
After latest changes it seems that imx_pcm_ops->open() function is no longer called.
Quick question above "imx_soc_platform" and DT's "sai3" are implemented at same driver ?
If so, I guess your kernel doesn't have this commit ? If not, please include it.
9f3eb917534511f2e275b7cf63ed76374ade77bc ("ASoC: simple-card-utils: consider CPU-Platform possibility")
Sorry to bother you.
Thank you for your help !! Best regards --- Kuninori Morimoto
![](https://secure.gravatar.com/avatar/966ff70f0f521a8f4e5ef9206d2a7912.jpg?s=120&d=mm&r=g)
On Fri, Jul 12, 2019 at 3:11 AM Kuninori Morimoto kuninori.morimoto.gx@renesas.com wrote:
Hi Daniel
Thank you for contacting me
static struct snd_soc_component_driver imx_soc_platform = { .ops» » = &imx_pcm_ops, .pcm_new» = imx_pcm_new, };
Then somewhere in the DAI driver we call:
devm_snd_soc_register_component(dev, &imx_soc_platform, NULL, 0);
I'm using simple-card with the following configuration:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/arc...
After latest changes it seems that imx_pcm_ops->open() function is no longer called.
Quick question above "imx_soc_platform" and DT's "sai3" are implemented at same driver ?
Yes, thanks! With below patch everything works again.
If so, I guess your kernel doesn't have this commit ? If not, please include it.
9f3eb917534511f2e275b7cf63ed76374ade77bc ("ASoC: simple-card-utils: consider CPU-Platform possibility")
Sorry to bother you.
Thanks!!
![](https://secure.gravatar.com/avatar/2ea1ea42072986bc3dd023464d0c2de6.jpg?s=120&d=mm&r=g)
Hi Daniel
Quick question above "imx_soc_platform" and DT's "sai3" are implemented at same driver ?
Yes, thanks! With below patch everything works again.
If so, I guess your kernel doesn't have this commit ? If not, please include it.
9f3eb917534511f2e275b7cf63ed76374ade77bc ("ASoC: simple-card-utils: consider CPU-Platform possibility")
Thanks !! Good to know, and sorry to bother you.
Thank you for your help !! Best regards --- Kuninori Morimoto
participants (2)
-
Daniel Baluta
-
Kuninori Morimoto