diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2016-01-04 17:20:28 -0600 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-01-05 13:06:22 +0000 |
commit | caf94ed8629afb82d61a82ce76fb314145933a40 (patch) | |
tree | 96a4c3de71bcf304eaede6cd533a6ef42b2d725e /sound/soc/intel/atom/sst | |
parent | 2bd5bd15a51858866d792c678f0fe9280c4e8fa7 (diff) | |
download | blackbird-op-linux-caf94ed8629afb82d61a82ce76fb314145933a40.tar.gz blackbird-op-linux-caf94ed8629afb82d61a82ce76fb314145933a40.zip |
ASoC: Intel: bytcr_rt5640: fixup DAI codec_name with HID
Codec name is hard-coded in machine driver, pass information
from actual ACPI HID to help support BIOS variations
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/atom/sst')
-rw-r--r-- | sound/soc/intel/atom/sst/sst_acpi.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/sound/soc/intel/atom/sst/sst_acpi.c b/sound/soc/intel/atom/sst/sst_acpi.c index b6ea0a58f9d3..f61e53106339 100644 --- a/sound/soc/intel/atom/sst/sst_acpi.c +++ b/sound/soc/intel/atom/sst/sst_acpi.c @@ -247,16 +247,23 @@ static int sst_acpi_probe(struct platform_device *pdev) dev_dbg(dev, "ACPI device id: %x\n", dev_id); - plat_dev = platform_device_register_data(dev, pdata->platform, -1, NULL, 0); + plat_dev = platform_device_register_data(dev, pdata->platform, -1, + NULL, 0); if (IS_ERR(plat_dev)) { - dev_err(dev, "Failed to create machine device: %s\n", pdata->platform); + dev_err(dev, "Failed to create machine device: %s\n", + pdata->platform); return PTR_ERR(plat_dev); } - /* Create platform device for sst machine driver */ - mdev = platform_device_register_data(dev, mach->drv_name, -1, NULL, 0); + /* + * Create platform device for sst machine driver, + * pass machine info as pdata + */ + mdev = platform_device_register_data(dev, mach->drv_name, -1, + (const void *)mach, sizeof(*mach)); if (IS_ERR(mdev)) { - dev_err(dev, "Failed to create machine device: %s\n", mach->drv_name); + dev_err(dev, "Failed to create machine device: %s\n", + mach->drv_name); return PTR_ERR(mdev); } |