Commit 0d1d7ce9 authored by Lu Guanqun's avatar Lu Guanqun Committed by Mark Brown

ASoC: sst_platform: initialize module_name properly

module_name will be checked in register_sst_card.
It will fail to register sst card if it's not initialized.
Signed-off-by: default avatarLu Guanqun <guanqun.lu@intel.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 82a5a936
...@@ -247,6 +247,7 @@ static int sst_platform_open(struct snd_pcm_substream *substream) ...@@ -247,6 +247,7 @@ static int sst_platform_open(struct snd_pcm_substream *substream)
return -ENOMEM; return -ENOMEM;
} }
stream->sstdrv_ops->vendor_id = MSIC_VENDOR_ID; stream->sstdrv_ops->vendor_id = MSIC_VENDOR_ID;
stream->sstdrv_ops->module_name = SST_CARD_NAMES;
/* registering with SST driver to get access to SST APIs to use */ /* registering with SST driver to get access to SST APIs to use */
ret_val = register_sst_card(stream->sstdrv_ops); ret_val = register_sst_card(stream->sstdrv_ops);
if (ret_val) { if (ret_val) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment