Merge tag 'v5.15-rc6' into asoc-5.16
authorMark Brown <broonie@kernel.org>
Mon, 18 Oct 2021 12:50:42 +0000 (13:50 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 18 Oct 2021 12:50:42 +0000 (13:50 +0100)
Linux 5.15-rc6

1  2 
MAINTAINERS
drivers/firmware/Kconfig
sound/soc/mediatek/mt8195/mt8195-mt6359-rt1019-rt5682.c
sound/soc/sof/core.c
sound/soc/sof/imx/imx8.c
sound/soc/sof/imx/imx8m.c
sound/soc/sof/loader.c
sound/soc/sof/trace.c
sound/soc/sof/xtensa/core.c

diff --cc MAINTAINERS
Simple merge
Simple merge
Simple merge
@@@ -366,9 -365,30 +366,16 @@@ static int imx8_remove(struct snd_sof_d
  /* on i.MX8 there is 1 to 1 match between type and BAR idx */
  static int imx8_get_bar_index(struct snd_sof_dev *sdev, u32 type)
  {
-       return type;
+       /* Only IRAM and SRAM bars are valid */
+       switch (type) {
+       case SOF_FW_BLK_TYPE_IRAM:
+       case SOF_FW_BLK_TYPE_SRAM:
+               return type;
+       default:
+               return -EINVAL;
+       }
  }
  
 -static void imx8_ipc_msg_data(struct snd_sof_dev *sdev,
 -                            struct snd_pcm_substream *substream,
 -                            void *p, size_t sz)
 -{
 -      sof_mailbox_read(sdev, sdev->dsp_box.offset, p, sz);
 -}
 -
 -static int imx8_ipc_pcm_params(struct snd_sof_dev *sdev,
 -                             struct snd_pcm_substream *substream,
 -                             const struct sof_ipc_pcm_params_reply *reply)
 -{
 -      return 0;
 -}
 -
  static struct snd_soc_dai_driver imx8_dai[] = {
  {
        .name = "esai0",
@@@ -229,21 -228,31 +229,28 @@@ static int imx8m_remove(struct snd_sof_
  /* on i.MX8 there is 1 to 1 match between type and BAR idx */
  static int imx8m_get_bar_index(struct snd_sof_dev *sdev, u32 type)
  {
-       return type;
+       /* Only IRAM and SRAM bars are valid */
+       switch (type) {
+       case SOF_FW_BLK_TYPE_IRAM:
+       case SOF_FW_BLK_TYPE_SRAM:
+               return type;
+       default:
+               return -EINVAL;
+       }
  }
  
 -static void imx8m_ipc_msg_data(struct snd_sof_dev *sdev,
 -                             struct snd_pcm_substream *substream,
 -                             void *p, size_t sz)
 -{
 -      sof_mailbox_read(sdev, sdev->dsp_box.offset, p, sz);
 -}
 -
 -static int imx8m_ipc_pcm_params(struct snd_sof_dev *sdev,
 -                              struct snd_pcm_substream *substream,
 -                              const struct sof_ipc_pcm_params_reply *reply)
 -{
 -      return 0;
 -}
 -
  static struct snd_soc_dai_driver imx8m_dai[] = {
 +{
 +      .name = "sai1",
 +      .playback = {
 +              .channels_min = 1,
 +              .channels_max = 32,
 +      },
 +      .capture = {
 +              .channels_min = 1,
 +              .channels_max = 32,
 +      },
 +},
  {
        .name = "sai3",
        .playback = {
Simple merge
Simple merge
Simple merge