diff options
author | Bard Liao <yung-chuan.liao@linux.intel.com> | 2020-07-17 16:13:32 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-07-20 16:08:19 +0100 |
commit | 1f891055c7d0ce665247c09e97db927f2db37ce7 (patch) | |
tree | 20f00bc99ac7a7155819e4a140cfbd02d1afe83e /sound/soc/intel | |
parent | 22e9b54307987787efa0ee534aa9e31982ec1161 (diff) | |
download | linux-1f891055c7d0ce665247c09e97db927f2db37ce7.tar.bz2 |
ASoC: Intel: sof_sdw_rt711: remove hard-coded codec name
We can get codec name from dai link.
Suggested-by: Rander Wang <rander.wang@intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20200717211337.31956-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel')
-rw-r--r-- | sound/soc/intel/boards/sof_sdw_rt711.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/boards/sof_sdw_rt711.c b/sound/soc/intel/boards/sof_sdw_rt711.c index d4d75c8dc6b7..c8f84e9a3e4e 100644 --- a/sound/soc/intel/boards/sof_sdw_rt711.c +++ b/sound/soc/intel/boards/sof_sdw_rt711.c @@ -147,7 +147,7 @@ int sof_sdw_rt711_init(const struct snd_soc_acpi_link_adr *link, if (!playback) return 0; - ret = rt711_add_codec_device_props("sdw:0:25d:711:0"); + ret = rt711_add_codec_device_props(dai_links->codecs[0].name); if (ret < 0) return ret; |