aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/intel
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2016-08-04 06:16:01 -0400
committerTakashi Iwai <tiwai@suse.de>2016-08-09 02:53:56 -0400
commitec8ae5703da1b8bd057b4e319567ddbcac295b3a (patch)
treebb38f97ce9d660521032d35d73caa72b7c3ebf5d /sound/soc/intel
parent6720b38420a01d40dbeb8ee575eb601d612de691 (diff)
ALSA: convert users to core bus_parse_capabilities
Now that we have the bus parse capabilities moved to core, we need to convert users. The SKL driver and HDA extended lib needs to converted in single patch, otherwise we regress on the functionality. Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc/intel')
-rw-r--r--sound/soc/intel/skylake/skl-messages.c4
-rw-r--r--sound/soc/intel/skylake/skl-pcm.c8
-rw-r--r--sound/soc/intel/skylake/skl.c6
3 files changed, 9 insertions, 9 deletions
diff --git a/sound/soc/intel/skylake/skl-messages.c b/sound/soc/intel/skylake/skl-messages.c
index 44ab595ce21a..83a731fc884e 100644
--- a/sound/soc/intel/skylake/skl-messages.c
+++ b/sound/soc/intel/skylake/skl-messages.c
@@ -296,7 +296,7 @@ int skl_suspend_dsp(struct skl *skl)
296 int ret; 296 int ret;
297 297
298 /* if ppcap is not supported return 0 */ 298 /* if ppcap is not supported return 0 */
299 if (!skl->ebus.ppcap) 299 if (!skl->ebus.bus.ppcap)
300 return 0; 300 return 0;
301 301
302 ret = skl_dsp_sleep(ctx->dsp); 302 ret = skl_dsp_sleep(ctx->dsp);
@@ -316,7 +316,7 @@ int skl_resume_dsp(struct skl *skl)
316 int ret; 316 int ret;
317 317
318 /* if ppcap is not supported return 0 */ 318 /* if ppcap is not supported return 0 */
319 if (!skl->ebus.ppcap) 319 if (!skl->ebus.bus.ppcap)
320 return 0; 320 return 0;
321 321
322 /* enable ppcap interrupt */ 322 /* enable ppcap interrupt */
diff --git a/sound/soc/intel/skylake/skl-pcm.c b/sound/soc/intel/skylake/skl-pcm.c
index 6e05bf8622f7..5ae86c227d45 100644
--- a/sound/soc/intel/skylake/skl-pcm.c
+++ b/sound/soc/intel/skylake/skl-pcm.c
@@ -106,7 +106,7 @@ static void skl_set_pcm_constrains(struct hdac_ext_bus *ebus,
106 106
107static enum hdac_ext_stream_type skl_get_host_stream_type(struct hdac_ext_bus *ebus) 107static enum hdac_ext_stream_type skl_get_host_stream_type(struct hdac_ext_bus *ebus)
108{ 108{
109 if (ebus->ppcap) 109 if ((ebus_to_hbus(ebus))->ppcap)
110 return HDAC_EXT_STREAM_TYPE_HOST; 110 return HDAC_EXT_STREAM_TYPE_HOST;
111 else 111 else
112 return HDAC_EXT_STREAM_TYPE_COUPLED; 112 return HDAC_EXT_STREAM_TYPE_COUPLED;
@@ -188,7 +188,7 @@ static int skl_get_format(struct snd_pcm_substream *substream,
188 struct hdac_ext_bus *ebus = dev_get_drvdata(dai->dev); 188 struct hdac_ext_bus *ebus = dev_get_drvdata(dai->dev);
189 int format_val = 0; 189 int format_val = 0;
190 190
191 if (ebus->ppcap) { 191 if ((ebus_to_hbus(ebus))->ppcap) {
192 struct snd_pcm_runtime *runtime = substream->runtime; 192 struct snd_pcm_runtime *runtime = substream->runtime;
193 193
194 format_val = snd_hdac_calc_stream_format(runtime->rate, 194 format_val = snd_hdac_calc_stream_format(runtime->rate,
@@ -1020,7 +1020,7 @@ static int skl_platform_pcm_trigger(struct snd_pcm_substream *substream,
1020{ 1020{
1021 struct hdac_ext_bus *ebus = get_bus_ctx(substream); 1021 struct hdac_ext_bus *ebus = get_bus_ctx(substream);
1022 1022
1023 if (!ebus->ppcap) 1023 if ((ebus_to_hbus(ebus))->ppcap)
1024 return skl_coupled_trigger(substream, cmd); 1024 return skl_coupled_trigger(substream, cmd);
1025 1025
1026 return 0; 1026 return 0;
@@ -1144,7 +1144,7 @@ static int skl_platform_soc_probe(struct snd_soc_platform *platform)
1144 struct skl *skl = ebus_to_skl(ebus); 1144 struct skl *skl = ebus_to_skl(ebus);
1145 int ret; 1145 int ret;
1146 1146
1147 if (ebus->ppcap) { 1147 if ((ebus_to_hbus(ebus))->ppcap) {
1148 ret = skl_tplg_init(platform, ebus); 1148 ret = skl_tplg_init(platform, ebus);
1149 if (ret < 0) { 1149 if (ret < 0) {
1150 dev_err(platform->dev, "Failed to init topology!\n"); 1150 dev_err(platform->dev, "Failed to init topology!\n");
diff --git a/sound/soc/intel/skylake/skl.c b/sound/soc/intel/skylake/skl.c
index cd59536a761d..a893ca13be8e 100644
--- a/sound/soc/intel/skylake/skl.c
+++ b/sound/soc/intel/skylake/skl.c
@@ -587,7 +587,7 @@ static int skl_first_init(struct hdac_ext_bus *ebus)
587 return -ENXIO; 587 return -ENXIO;
588 } 588 }
589 589
590 snd_hdac_ext_bus_parse_capabilities(ebus); 590 snd_hdac_bus_parse_capabilities(bus);
591 591
592 if (skl_acquire_irq(ebus, 0) < 0) 592 if (skl_acquire_irq(ebus, 0) < 0)
593 return -EBUSY; 593 return -EBUSY;
@@ -682,7 +682,7 @@ static int skl_probe(struct pci_dev *pci,
682 skl_dmic_data.dmic_num = skl_get_dmic_geo(skl); 682 skl_dmic_data.dmic_num = skl_get_dmic_geo(skl);
683 683
684 /* check if dsp is there */ 684 /* check if dsp is there */
685 if (ebus->ppcap) { 685 if (bus->ppcap) {
686 err = skl_machine_device_register(skl, 686 err = skl_machine_device_register(skl,
687 (void *)pci_id->driver_data); 687 (void *)pci_id->driver_data);
688 if (err < 0) 688 if (err < 0)
@@ -696,7 +696,7 @@ static int skl_probe(struct pci_dev *pci,
696 skl->skl_sst->enable_miscbdcge = skl_enable_miscbdcge; 696 skl->skl_sst->enable_miscbdcge = skl_enable_miscbdcge;
697 697
698 } 698 }
699 if (ebus->mlcap) 699 if (bus->mlcap)
700 snd_hdac_ext_bus_get_ml_capabilities(ebus); 700 snd_hdac_ext_bus_get_ml_capabilities(ebus);
701 701
702 /* create device for soc dmic */ 702 /* create device for soc dmic */