ASoC: Intel: ACPI support and machines
Subsystems (3)
v2 cover ASoC: Intel: ACPI support and machines
This is second rev of patch series which fixes the modules split as discussed in ML. The core part is now module along with PCI and ACPI one. Added fix reported by Dan as well. Also added the BYTCR machine driver
Subhransu S. Prusty (1):
ASoC: Intel: add BYTCR machine driver with RT5640
Vinod Koul (4):
ASoC: Intel: mrfld - remove unnecessary check for pointer
ASoC: Intel: mrfld - create separate module for pci part
ASoC: Intel: mrfld - add shim save restore
ASoC: Intel: mrfld- add ACPI module
sound/soc/intel/Kconfig | 22 ++- sound/soc/intel/Makefile | 2 + sound/soc/intel/bytcr_dpcm_rt5640.c | 258 +++++++++++++++++++++++ sound/soc/intel/sst-atom-controls.c | 2 +- sound/soc/intel/sst/Makefile | 8 +- sound/soc/intel/sst/sst.c | 243 +++++----------------- sound/soc/intel/sst/sst.h | 9 +- sound/soc/intel/sst/sst_acpi.c | 386 +++++++++++++++++++++++++++++++++++ sound/soc/intel/sst/sst_pci.c | 225 ++++++++++++++++++++ sound/soc/intel/sst/sst_pvt.c | 2 + 10 files changed, 958 insertions(+), 199 deletions(-) create mode 100644 sound/soc/intel/bytcr_dpcm_rt5640.c create mode 100644 sound/soc/intel/sst/sst_acpi.c create mode 100644 sound/soc/intel/sst/sst_pci.c
PATCH v2 1/5 ASoC: Intel: mrfld - remove unnecessary check for pointer
the 'platform' pointer in sst_map_modules_to_pipe() is deref in caller function so we need to check for it in this function
--- sound/soc/intel/sst-atom-controls.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/intel/sst-atom-controls.c +1 -1
@@ -1351,7 +1351,7 @@ static int sst_map_modules_to_pipe(struct snd_soc_platform *platform)int ret =0 ;list_for_each_entry (w, &platform->component.card->widgets, list) { -if (platform &&is_sst_dapm_widget (w) && (w->priv)) { +if (is_sst_dapm_widget (w) && (w->priv)) {struct sst_ids *ids = w->priv; dev_dbg(platform->dev, "widget type=%d name=%s\n",
Signature · 1 line
1.7.0.4
PATCH v2 2/5 ASoC: Intel: mrfld - create separate module for pci part
In reply to Vinod KoulNow the SST_IPC will support both ACPI and PCI, separate into core module and PCI module. This also move probe function into PCI module and exports the required symbols from core module
--- sound/soc/intel/Kconfig | 6 +- sound/soc/intel/sst/Makefile | 8 +- sound/soc/intel/sst/sst.c | 201 +----------------------------------- sound/soc/intel/sst/sst.h | 6 + sound/soc/intel/sst/sst_pci.c | 225 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 247 insertions(+), 199 deletions(-) create mode 100644 sound/soc/intel/sst/sst_pci.c
sound/soc/intel/Kconfig +5 -1
@@ -3,7 +3,7 @@ config SND_MFLD_MACHINE depends on INTEL_SCU_IPC select SND_SOC_SN95031 select SND_SST_MFLD_PLATFORM - select SND_SST_IPC + select SND_SST_IPC_PCI help This adds support for ASoC machine driver for Intel(R) MID Medfield platform used as alsa device in audio substem in Intel(R) MID devices
@@ -16,6 +16,10 @@ config SND_SST_MFLD_PLATFORM config SND_SST_IPC tristate +config SND_SST_IPC_PCI + tristate + select SND_SST_IPC + config SND_SOC_INTEL_SST tristate "ASoC support for Intel(R) Smart Sound Technology" select SND_SOC_INTEL_SST_ACPI if ACPI
sound/soc/intel/sst/Makefile +6 -2
@@ -1,3 +1,7 @@ -snd-intel-sst-objs := sst.o sst_ipc.o sst_stream.o sst_drv_interface.o sst_loader.o sst_pvt.o +snd-intel-sst-core-objs := sst.o sst_ipc.o sst_stream.o sst_drv_interface.o sst_loader.o sst_pvt.o +snd-intel-sst-pci-objs += sst_pci.o + + +obj-$(CONFIG_SND_SST_IPC) += snd-intel-sst-core.o +obj-$(CONFIG_SND_SST_IPC_PCI) += snd-intel-sst-pci.o -obj-$(CONFIG_SND_SST_IPC) += snd-intel-sst.o
sound/soc/intel/sst/sst.c +5 -196
245 lines not on this page · raw message
sound/soc/intel/sst/sst.h +6 -0
@@ -40,6 +40,7 @@#define MRFLD_FW_FEATURE_BASE_OFFSET 0x4#define MRFLD_FW_BSS_RESET_BIT 0 +extern const struct dev_pm_ops intel_sst_pm;enum sst_states {SST_FW_LOADING =1 ,SST_FW_RUNNING ,
@@ -537,4 +538,9 @@ void sst_fill_header_dsp(struct ipc_dsp_hdr *dsp, int msg,int sst_register (struct device *);int sst_unregister (struct device *); +int sst_alloc_drv_context (struct intel_sst_drv **ctx, +struct device *dev,unsigned int dev_id); +int sst_context_init (struct intel_sst_drv *ctx); +void sst_context_cleanup (struct intel_sst_drv *ctx); +void sst_configure_runtime_pm (struct intel_sst_drv *ctx);#endif
sound/soc/intel/sst/sst_pci.c new file +225 -0
225 lines not on this page · raw message
Signature · 1 line
1.7.0.4
PATCH v2 3/5 ASoC: Intel: mrfld - add shim save restore
In reply to Vinod KoulIn ACPI platform we need to save few registers of Shim on suspend and restore them on resume, so add handlers to do this
--- sound/soc/intel/sst/sst.c | 28 ++++++++++++++++++++++++++++ 1 files changed, 28 insertions(+), 0 deletions(-)
sound/soc/intel/sst/sst.c +28 -0
@@ -329,6 +329,34 @@ void sst_context_cleanup(struct intel_sst_drv *ctx) }EXPORT_SYMBOL_GPL (sst_context_cleanup); +static inline void sst_save_shim64 (struct intel_sst_drv *ctx, +void __iomem *shim, +struct sst_shim_regs64 *shim_regs) +{ +unsigned long irq_flags; + +spin_lock_irqsave (&ctx->ipc_spin_lock, irq_flags); + + shim_regs->imrx =sst_shim_read64 (shim,SST_IMRX ), + +spin_unlock_irqrestore (&ctx->ipc_spin_lock, irq_flags); +} + +static inline void sst_restore_shim64 (struct intel_sst_drv *ctx, +void __iomem *shim, +struct sst_shim_regs64 *shim_regs) +{ +unsigned long irq_flags; + +/* +* we only need to restore IMRX for this case, rest will be +* initialize by FW or driver when firmware is loaded +*/ +spin_lock_irqsave (&ctx->ipc_spin_lock, irq_flags); +sst_shim_write64 (shim,SST_IMRX , shim_regs->imrx), +spin_unlock_irqrestore (&ctx->ipc_spin_lock, irq_flags); +} +void sst_configure_runtime_pm (struct intel_sst_drv *ctx) {pm_runtime_set_autosuspend_delay (ctx->dev,SST_SUSPEND_DELAY );
Signature · 1 line
1.7.0.4
PATCH v2 4/5 ASoC: Intel: mrfld- add ACPI module
In reply to Vinod KoulAdd the last ACPI module support which also uses core module like the PCI part
--- sound/soc/intel/Kconfig | 4 + sound/soc/intel/sst/Makefile | 4 +- sound/soc/intel/sst/sst.c | 20 ++ sound/soc/intel/sst/sst.h | 3 +- sound/soc/intel/sst/sst_acpi.c | 386 ++++++++++++++++++++++++++++++++++++++++ sound/soc/intel/sst/sst_pvt.c | 2 + 6 files changed, 415 insertions(+), 4 deletions(-) create mode 100644 sound/soc/intel/sst/sst_acpi.c
sound/soc/intel/Kconfig +4 -0
@@ -20,6 +20,10 @@ config SND_SST_IPC_PCI tristate select SND_SST_IPC +config SND_SST_IPC_ACPI + tristate + select SND_SST_IPC + config SND_SOC_INTEL_SST tristate "ASoC support for Intel(R) Smart Sound Technology" select SND_SOC_INTEL_SST_ACPI if ACPI
sound/soc/intel/sst/Makefile +2 -2
@@ -1,7 +1,7 @@ snd-intel-sst-core-objs := sst.o sst_ipc.o sst_stream.o sst_drv_interface.o sst_loader.o sst_pvt.o snd-intel-sst-pci-objs += sst_pci.o - +snd-intel-sst-acpi-objs += sst_acpi.o obj-$(CONFIG_SND_SST_IPC) += snd-intel-sst-core.o obj-$(CONFIG_SND_SST_IPC_PCI) += snd-intel-sst-pci.o - +obj-$(CONFIG_SND_SST_IPC_ACPI) += snd-intel-sst-acpi.o
sound/soc/intel/sst/sst.c +20 -0
@@ -181,6 +181,7 @@ int sst_driver_ops(struct intel_sst_drv *sst)switch (sst->dev_id) {case SST_MRFLD_PCI_ID : +case SST_BYT_ACPI_ID : sst->tstamp =SST_TIME_STAMP_MRFLD ; sst->ops = &mrfld_ops;return 0 ;
@@ -313,7 +314,11 @@ EXPORT_SYMBOL_GPL(sst_context_init);void sst_context_cleanup (struct intel_sst_drv *ctx) {pm_runtime_get_noresume (ctx->dev); +#if IS_ENABLED (CONFIG_ACPI ) +pm_runtime_disable (ctx->dev); +#else pm_runtime_forbid (ctx->dev); +#endif sst_unregister (ctx->dev);sst_set_fw_state_locked (ctx,SST_SHUTDOWN );flush_scheduled_work ();
@@ -361,8 +366,19 @@ void sst_configure_runtime_pm(struct intel_sst_drv *ctx) {pm_runtime_set_autosuspend_delay (ctx->dev,SST_SUSPEND_DELAY );pm_runtime_use_autosuspend (ctx->dev); +#if IS_ENABLED (CONFIG_ACPI ) +/* +* For acpi devices, the actual physical device state is +* initially active. So change the state to active before +* enabling the pm +*/ +pm_runtime_set_active (ctx->dev); +pm_runtime_enable (ctx->dev); +sst_save_shim64 (ctx, ctx->shim, ctx->shim_regs64); +#else pm_runtime_allow (ctx->dev);pm_runtime_put_noidle (ctx->dev); +#endif }EXPORT_SYMBOL_GPL (sst_configure_runtime_pm);
@@ -385,6 +401,10 @@ static int intel_sst_runtime_suspend(struct device *dev)synchronize_irq (ctx->irq_num);flush_workqueue (ctx->post_msg_wq); +/* save the shim registers because PMC doesn't save state */ +if (ctx->dev_id ==SST_BYT_ACPI_ID ) +sst_save_shim64 (ctx, ctx->shim, ctx->shim_regs64); +return ret; }
sound/soc/intel/sst/sst.h +1 -2
@@ -29,6 +29,7 @@/* driver names */ #define SST_DRV_NAME "intel_sst_driver"#define SST_MRFLD_PCI_ID 0x119A +#define SST_BYT_ACPI_ID 0x80860F28#define SST_SUSPEND_DELAY 2000#define FW_CONTEXT_MEM (64*1024)
@@ -508,8 +509,6 @@ int sst_prepare_and_post_msg(struct intel_sst_drv *sst, size_t mbox_data_len, const void *mbox_data, void **data, bool large, bool fill_dsp, bool sync, bool response); -void sst_save_shim64 (struct intel_sst_drv *ctx,void __iomem *shim, -struct sst_shim_regs64 *shim_regs);void sst_process_pending_msg (struct work_struct *work);int sst_assign_pvt_id (struct intel_sst_drv *sst_drv_ctx); void sst_init_stream(struct stream_info *stream,
sound/soc/intel/sst/sst_acpi.c new file +386 -0
386 lines not on this page · raw message
sound/soc/intel/sst/sst_pvt.c +2 -0
@@ -117,6 +117,7 @@ unsigned long long read_shim_data(struct intel_sst_drv *sst, int addr)switch (sst->dev_id) {case SST_MRFLD_PCI_ID : +case SST_BYT_ACPI_ID : val =sst_shim_read64 (sst->shim, addr);break ; }
@@ -128,6 +129,7 @@ void write_shim_data(struct intel_sst_drv *sst, int addr, {switch (sst->dev_id) {case SST_MRFLD_PCI_ID : +case SST_BYT_ACPI_ID :sst_shim_write64 (sst->shim, addr, (u64 ) data);break ; }
Signature · 1 line
1.7.0.4
PATCH v2 5/5 ASoC: Intel: add BYTCR machine driver with RT5640
In reply to Vinod KoulFrom: Subhransu S. Prusty <[email protected]>
--- sound/soc/intel/Kconfig | 12 ++ sound/soc/intel/Makefile | 2 + sound/soc/intel/bytcr_dpcm_rt5640.c | 258 +++++++++++++++++++++++++++++++++++ 3 files changed, 272 insertions(+), 0 deletions(-) create mode 100644 sound/soc/intel/bytcr_dpcm_rt5640.c
sound/soc/intel/Kconfig +12 -0
@@ -85,3 +85,15 @@ config SND_SOC_INTEL_BROADWELL_MACH Ultrabook platforms. Say Y if you have such a device If unsure select "N". + +config SND_SOC_INTEL_BYTCR_RT5640_MACH + tristate "ASoC Audio DSP Support for MID BYT Platform" + depends on X86 + select SND_SOC_RT5640 + select SND_SST_MFLD_PLATFORM + select SND_SST_IPC_ACPI + help + This adds support for ASoC machine driver for Intel(R) MID Baytrail platform + used as alsa device in audio substem in Intel(R) MID devices + Say Y if you have such a device + If unsure select "N".
sound/soc/intel/Makefile +2 -0
@@ -26,11 +26,13 @@ snd-soc-sst-haswell-objs := haswell.o snd-soc-sst-byt-rt5640-mach-objs := byt-rt5640.o snd-soc-sst-byt-max98090-mach-objs := byt-max98090.o snd-soc-sst-broadwell-objs := broadwell.o +snd-soc-sst-bytcr-dpcm-rt5640-objs := bytcr_dpcm_rt5640.o obj-$(CONFIG_SND_SOC_INTEL_HASWELL_MACH) += snd-soc-sst-haswell.o obj-$(CONFIG_SND_SOC_INTEL_BYT_RT5640_MACH) += snd-soc-sst-byt-rt5640-mach.o obj-$(CONFIG_SND_SOC_INTEL_BYT_MAX98090_MACH) += snd-soc-sst-byt-max98090-mach.o obj-$(CONFIG_SND_SOC_INTEL_BROADWELL_MACH) += snd-soc-sst-broadwell.o +obj-$(CONFIG_SND_SOC_INTEL_BYTCR_RT5640_MACH) += snd-soc-sst-bytcr-dpcm-rt5640.o # DSP driver obj-$(CONFIG_SND_SST_IPC) += sst/
sound/soc/intel/bytcr_dpcm_rt5640.c new file +258 -0
258 lines not on this page · raw message
Signature · 1 line
1.7.0.4
Re: [PATCH v2 5/5] ASoC: Intel: add BYTCR machine driver with RT5640
Quoted 11 lines · Vinod Koul
From: Subhransu S. Prusty <[email protected]>
Signed-off-by Subhransu S. Prusty <[email protected]>Signed-off-by Vinod Koul <[email protected]>--- sound/soc/intel/Kconfig | 12 ++ sound/soc/intel/Makefile | 2 + sound/soc/intel/bytcr_dpcm_rt5640.c | 258 +++++++++++++++++++++++++++++++++++ 3 files changed, 272 insertions(+), 0 deletions(-)create mode 100644
sound/soc/intel/bytcr_dpcm_rt5640.c
...
Quoted 6 lines
sound/soc/intel/bytcr_dpcm_rt5640.c new file +6
-0+static const struct snd_kcontrol_new byt_mc_controls[] = { +SOC_DAPM_PIN_SWITCH ("Headphone" ), +SOC_DAPM_PIN_SWITCH ("Headset Mic" ), +SOC_DAPM_PIN_SWITCH ("Int Mic" ), +SOC_DAPM_PIN_SWITCH ("Ext Spk" ), +};
...
Quoted 5 lines
sound/soc/intel/bytcr_dpcm_rt5640.c new file +4
-0+static struct snd_soc_dai_link byt_dailink[] = { + [MERR_DPCM_AUDIO ] = { + .name ="Baytrail Audio Port" , + .stream_name ="Baytrail Audio" ,
...
sound/soc/intel/bytcr_dpcm_rt5640.c line 211
Quoted 4 lines
sound/soc/intel/bytcr_dpcm_rt5640.c new file +3
-0+/* SoC card */ +static struct snd_soc_card snd_soc_card_byt = { + .name ="baytrailcraudio" ,
I think it's worth to have same kcontrol and card names than byt-rt5640 in case this is going to replace byt-rt5640.c since then users can continue to use the same asound.state file. E.g. speakers won't mute because of "Speaker" changes to "Ext Spk".
Signature · 1 line
Jarkko
Re: [PATCH v2 5/5] ASoC: Intel: add BYTCR machine driver with RT5640
Quoted 26 lines · Jarkko Nikula
Quoted 11 lines · Vinod Koul
From: Subhransu S. Prusty <[email protected]>
Signed-off-by Subhransu S. Prusty <[email protected]>Signed-off-by Vinod Koul <[email protected]>--- sound/soc/intel/Kconfig | 12 ++ sound/soc/intel/Makefile | 2 + sound/soc/intel/bytcr_dpcm_rt5640.c | 258 +++++++++++++++++++++++++++++++++++ 3 files changed, 272 insertions(+), 0 deletions(-) create mode 100644 sound/soc/intel/bytcr_dpcm_rt5640.c...
Quoted 6 lines
sound/soc/intel/bytcr_dpcm_rt5640.c new file +6
-0+static const struct snd_kcontrol_new byt_mc_controls[] = { +SOC_DAPM_PIN_SWITCH ("Headphone" ), +SOC_DAPM_PIN_SWITCH ("Headset Mic" ), +SOC_DAPM_PIN_SWITCH ("Int Mic" ), +SOC_DAPM_PIN_SWITCH ("Ext Spk" ), +};...
Quoted 5 lines
sound/soc/intel/bytcr_dpcm_rt5640.c new file +4
-0+static struct snd_soc_dai_link byt_dailink[] = { + [MERR_DPCM_AUDIO ] = { + .name ="Baytrail Audio Port" , + .stream_name ="Baytrail Audio" ,...
Quoted 8 lines
sound/soc/intel/bytcr_dpcm_rt5640.c line 211
Quoted 4 lines
sound/soc/intel/bytcr_dpcm_rt5640.c new file +3
-0+/* SoC card */ +static struct snd_soc_card snd_soc_card_byt = { + .name ="baytrailcraudio" ,I think it's worth to have same kcontrol and card names than byt-rt5640 in case this is going to replace
byt-rt5640.csince then users can continue to use the same asound.state file. E.g. speakers won't mute because of "Speaker" changes to "Ext Spk".
It would have helped if the DSP controls were not there. The DSP controls need to be routed too, so existing conf files would need to be updated.
So, do you still recommend changing :)
Signature · 1 line
~Vinod
Re: [PATCH v2 5/5] ASoC: Intel: add BYTCR machine driver with RT5640
Quoted 11 lines · Vinod Koul
Quoted 5 lines · Jarkko Nikula
I think it's worth to have same kcontrol and card names than byt-rt5640 in case this is going to replace
byt-rt5640.csince then users can continue to use the same asound.state file. E.g. speakers won't mute because of "Speaker" changes to "Ext Spk".It would have helped if the DSP controls were not there. The DSP controls need to be routed too, so existing conf files would need to be updated.
So, do you still recommend changing :)
Do new controls affect PCM pass through? I was thinking if they affect only compressed streams then it'd be useful if existing state files continue working for PCM pass through. It's always painful if kcontol name changes render audio muted and user have to go through gazillions of kcontrols :-(
Signature · 1 line
Jarkko
Re: [PATCH v2 5/5] ASoC: Intel: add BYTCR machine driver with RT5640
Quoted 10 lines · Jarkko Nikula
Quoted 9 lines · Vinod Koul
Quoted 5 lines · Jarkko Nikula
I think it's worth to have same kcontrol and card names than byt-rt5640 in case this is going to replace
byt-rt5640.csince then users can continue to use the same asound.state file. E.g. speakers won't mute because of "Speaker" changes to "Ext Spk".It would have helped if the DSP controls were not there. The DSP controls need to be routed too, so existing conf files would need to be updated.
Quoted 7 lines
Quoted 2 lines
So, do you still recommend changing :)
Do new controls affect PCM pass through? I was thinking if they affect only compressed streams then it'd be useful if existing state files continue working for PCM pass through. It's always painful if kcontol name changes render audio muted and user have to go through gazillions of kcontrols :-(
Yes they do and yes we have large number of controls :(
Plus there are some algorithms like EQ etc which can be programmed using kcontrols
Signature · 1 line
~Vinod
Quoted 4 lines · Vinod Koul
This is second rev of patch series which fixes the modules split as discussed in ML. The core part is now module along with PCI and ACPI one. Added fix reported by Dan as well. Also added the BYTCR machine driver
Quoted 9 lines
Subhransu S. Prusty (1):
ASoC: Intel: add BYTCR machine driver with RT5640Vinod Koul (4):
ASoC: Intel: mrfld - remove unnecessary check for pointer
ASoC: Intel: mrfld - create separate module for pci part
ASoC: Intel: mrfld - add shim save restore
ASoC: Intel: mrfld- add ACPI module
I think there is need to have some consolidation with current byt-rt5640 and byt-max98090. Since existing drivers and this set are using the same ACPI IDs "80860F28" for the ADSP and "10EC5640" codec ACPIID for the machine driver probing these drivers won't work together.
One difference at the moment is that byt-rt5640 machines out there have differences in audio routings but those are not too difficult to handle in the same machine driver.
Bigger question how to handle platform part? I.e. can these use the same drivers and ADSP firmware? If they can, is the firmware available for distributions to take?
Optimally all machines out there would use the same drivers and get support for compressed audio but meanwhile we should not break existing machines.
Signature · 1 line
jarkko
Quoted 14 lines · Jarkko Nikula
Quoted 4 lines · Vinod Koul
This is second rev of patch series which fixes the modules split as discussed in ML. The core part is now module along with PCI and ACPI one. Added fix reported by Dan as well. Also added the BYTCR machine driver
Quoted 9 lines
Subhransu S. Prusty (1):
ASoC: Intel: add BYTCR machine driver with RT5640Vinod Koul (4):
ASoC: Intel: mrfld - remove unnecessary check for pointer
ASoC: Intel: mrfld - create separate module for pci part
ASoC: Intel: mrfld - add shim save restore
ASoC: Intel: mrfld- add ACPI module
Quoted 5 lines
I think there is need to have some consolidation with current byt-rt5640 and byt-max98090. Since existing drivers and this set are using the same ACPI IDs "80860F28" for the ADSP and "10EC5640" codec ACPIID for the machine driver probing these drivers won't work together.
Liam's suggestion was to remove the current driver when all the bits are upstream
Quoted 7 lines
One difference at the moment is that byt-rt5640 machines out there have differences in audio routings but those are not too difficult to handle in the same machine driver.
Bigger question how to handle platform part? I.e. can these use the same drivers and ADSP firmware? If they can, is the firmware available for distributions to take?
The two firmware are *not* compatible and that is the big reason why we can't reuse the parts available
Quoted 3 lines
Optimally all machines out there would use the same drivers and get support for compressed audio but meanwhile we should not break existing machines.
Yes, I have tested this one on T100 and doesn't seem to break anything. Please do test and revert if you find issues on any other available board (I don't have any other board)
Signature · 1 line
~Vinod
Hi
Quoted 9 lines · Vinod Koul
Quoted 6 lines · Jarkko Nikula
I think there is need to have some consolidation with current byt-rt5640 and byt-max98090. Since existing drivers and this set are using the same ACPI IDs "80860F28" for the ADSP and "10EC5640" codec ACPIID for the machine driver probing these drivers won't work together.
Liam's suggestion was to remove the current driver when all the bits are upstream
Yeah, I'm not against it but we must avoid regressions and perhaps try to do seamless handover if possible. It's always more nice to find regression in a small than big patch when bisecting :-)
Quoted 9 lines
Quoted 7 lines
One difference at the moment is that byt-rt5640 machines out there have differences in audio routings but those are not too difficult to handle in the same machine driver.
Bigger question how to handle platform part? I.e. can these use the same drivers and ADSP firmware? If they can, is the firmware available for distributions to take?
The two firmware are *not* compatible and that is the big reason why we can't reuse the parts available
Ok, so firmware appears to works on other than CR Baytrails too. Is it available in linux-firmware since if it's not when changing the platform drivers there will be obvious regressions to users?
Quoted 7 lines
Quoted 3 lines
Optimally all machines out there would use the same drivers and get support for compressed audio but meanwhile we should not break existing machines.
Yes, I have tested this one on T100 and doesn't seem to break anything. Please do test and revert if you find issues on any other available board (I don't have any other board)
Well, those audio routing differences require to have DMI quirks. E.g. T100 has analogue internal mic, Dell Venue 8 Pro 5830 has digital mic connected to DMIC2 of the RT564x and some have it connected to DMIC1.
Signature · 1 line
Jarkko
Quoted 12 lines · Jarkko Nikula
Hi
Quoted 9 lines · Vinod Koul
Quoted 6 lines · Jarkko Nikula
I think there is need to have some consolidation with current byt-rt5640 and byt-max98090. Since existing drivers and this set are using the same ACPI IDs "80860F28" for the ADSP and "10EC5640" codec ACPIID for the machine driver probing these drivers won't work together.
Liam's suggestion was to remove the current driver when all the bits are upstream
I think we need to keep the original driver around a bit longer until the new driver is stable on rambi and other platforms the old driver supports atm. A that point we can depricate the original driver with a view to eventual removal.
Quoted 4 lines
Yeah, I'm not against it but we must avoid regressions and perhaps try to do seamless handover if possible. It's always more nice to find regression in a small than big patch when bisecting :-)
Liam
---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
Quoted 11 lines · Liam Girdwood
Quoted 10 lines · Jarkko Nikula
Hi
Quoted 7 lines · Vinod Koul
Quoted 6 lines · Jarkko Nikula
I think there is need to have some consolidation with current byt-rt5640 and byt-max98090. Since existing drivers and this set are using the same ACPI IDs "80860F28" for the ADSP and "10EC5640" codec ACPIID for the machine driver probing these drivers won't work together.
Quoted 7 lines
Quoted 2 lines
Quoted 2 lines
Liam's suggestion was to remove the current driver when all the bits are upstream
I think we need to keep the original driver around a bit longer until the new driver is stable on rambi and other platforms the old driver supports atm. A that point we can depricate the original driver with a view to eventual removal.
Yes agreed, taht would help
Signature · 1 line
~Vinod
Quoted 7 lines
Quoted 4 lines
Yeah, I'm not against it but we must avoid regressions and perhaps try to do seamless handover if possible. It's always more nice to find regression in a small than big patch when bisecting :-)
Liam
Quoted 24 lines · Jarkko Nikula
Hi
Quoted 9 lines · Vinod Koul
Quoted 6 lines · Jarkko Nikula
I think there is need to have some consolidation with current byt-rt5640 and byt-max98090. Since existing drivers and this set are using the same ACPI IDs "80860F28" for the ADSP and "10EC5640" codec ACPIID for the machine driver probing these drivers won't work together.
Liam's suggestion was to remove the current driver when all the bits are upstream
Yeah, I'm not against it but we must avoid regressions and perhaps try to do seamless handover if possible. It's always more nice to find regression in a small than big patch when bisecting :-)
Quoted 7 lines
Quoted 7 lines
One difference at the moment is that byt-rt5640 machines out there have differences in audio routings but those are not too difficult to handle in the same machine driver.
Bigger question how to handle platform part? I.e. can these use the same drivers and ADSP firmware? If they can, is the firmware available for distributions to take?
Quoted 6 lines
Quoted 2 lines
The two firmware are *not* compatible and that is the big reason why we can't reuse the parts available
Ok, so firmware appears to works on other than CR Baytrails too. Is it available in linux-firmware since if it's not when changing the platform drivers there will be obvious regressions to users?
I will send it this week, was focusing on getting the code done, whcih is now mostly complete.
Signature · 1 line
~Vinod
Quoted 15 lines
Quoted 8 lines
Quoted 4 lines
Optimally all machines out there would use the same drivers and get support for compressed audio but meanwhile we should not break existing machines.
Yes, I have tested this one on T100 and doesn't seem to break anything. Please do test and revert if you find issues on any other available board (I don't have any other board)
Well, those audio routing differences require to have DMI quirks. E.g. T100 has analogue internal mic, Dell Venue 8 Pro 5830 has digital mic connected to DMIC2 of the RT564x and some have it connected to DMIC1.
Signature · 1 line
Jarkko
Mark Brown
maintainerQuoted 11 lines · Jarkko Nikula
Quoted 9 lines · Vinod Koul
Quoted 7 lines · Jarkko Nikula
One difference at the moment is that byt-rt5640 machines out there have differences in audio routings but those are not too difficult to handle in the same machine driver.
Bigger question how to handle platform part? I.e. can these use the same drivers and ADSP firmware? If they can, is the firmware available for distributions to take?
Quoted 6 lines
Quoted 2 lines
The two firmware are *not* compatible and that is the big reason why we can't reuse the parts available
Ok, so firmware appears to works on other than CR Baytrails too. Is it available in linux-firmware since if it's not when changing the platform drivers there will be obvious regressions to users?
Can we take a step back here: what are the firmwares and hardware platforms we're talking about here?
Quoted 7 lines
Quoted 3 lines
Yes, I have tested this one on T100 and doesn't seem to break anything. Please do test and revert if you find issues on any other available board (I don't have any other board)
Well, those audio routing differences require to have DMI quirks. E.g. T100 has analogue internal mic, Dell Venue 8 Pro 5830 has digital mic connected to DMIC2 of the RT564x and some have it connected to DMIC1.
Are any of these things on sale at the minute? Looks like T100 and the Dell both are but I'm not sure if they're current or previous models.
Quoted 5 lines · Mark Brown
Quoted 3 lines
Ok, so firmware appears to works on other than CR Baytrails too. Is it available in linux-firmware since if it's not when changing the platform drivers there will be obvious regressions to users?
Can we take a step back here: what are the firmwares and hardware platforms we're talking about here?
Only Baytrail and its variants. Current upstreamed drivers use "intel/fw_sst_0f28.bin-48kHz_i2s_master" but that FW doesn't have as much features like compressed audio and is not compatible with the one Vinod's team is upstreaming.
Goal is to switch to new implementation since it covers more platforms but do switchover as seamlessly as possible for Baytrail. Problem at the moment for Baytrail that both current and new drivers probe using the same ACPIIDs and FW for new drivers is not yet in linux-firmware.
Quoted 6 lines
Quoted 4 lines
Well, those audio routing differences require to have DMI quirks. E.g. T100 has analogue internal mic, Dell Venue 8 Pro 5830 has digital mic connected to DMIC2 of the RT564x and some have it connected to DMIC1.
Are any of these things on sale at the minute? Looks like T100 and the Dell both are but I'm not sure if they're current or previous models.
T100 and Dell are. Third known audio routing difference is used in reference design so I guess that setup is found on some models too. Then there are byt-max98090 based Chromebooks that use current drivers and FW.
Signature · 1 line
Jarkko
Quoted 12 lines · Jarkko Nikula
Quoted 5 lines · Mark Brown
Quoted 3 lines
Ok, so firmware appears to works on other than CR Baytrails too. Is it available in linux-firmware since if it's not when changing the platform drivers there will be obvious regressions to users?
Can we take a step back here: what are the firmwares and hardware platforms we're talking about here?
Only Baytrail and its variants. Current upstreamed drivers use "intel/fw_sst_0f28.bin-48kHz_i2s_master" but that FW doesn't have as much features like compressed audio and is not compatible with the one Vinod's team is upstreaming.
Quoted 5 lines
Goal is to switch to new implementation since it covers more platforms but do switchover as seamlessly as possible for Baytrail. Problem at the moment for Baytrail that both current and new drivers probe using the same ACPIIDs and FW for new drivers is not yet in linux-firmware.
Shouldn't that be okay, as user wouldn't select the new driver. Default is n :)
Only when driver is stable and verfied by users should we enable this and then start removing older driver
Signature · 1 line
~Vinod
Quoted 15 lines
Quoted 7 lines
Quoted 5 lines
Well, those audio routing differences require to have DMI quirks. E.g. T100 has analogue internal mic, Dell Venue 8 Pro 5830 has digital mic connected to DMIC2 of the RT564x and some have it connected to DMIC1.
Are any of these things on sale at the minute? Looks like T100 and the Dell both are but I'm not sure if they're current or previous models.
T100 and Dell are. Third known audio routing difference is used in reference design so I guess that setup is found on some models too. Then there are byt-max98090 based Chromebooks that use current drivers and FW.
Signature · 1 line
Jarkko