Skip to content
  1. Jun 13, 2023
    • Bard Liao's avatar
      ASoC: add N cpus to M codecs dai link support · ac950278
      Bard Liao authored
      
      
      Currently, ASoC supports dailinks with the following mappings:
      1 cpu DAI to N codec DAIs
      N cpu DAIs to N codec DAIs
      But the mapping between N cpu DAIs and M codec DAIs is not supported.
      The reason is that we didn't have a mechanism to map cpu and codec DAIs
      
      This patch suggests a new snd_soc_dai_link_codec_ch_map struct in
      struct snd_soc_dai_link{} which provides codec DAI to cpu DAI mapping
      information used to implement N cpu DAIs to M codec DAIs
      support.
      
      When a dailink contains two or more cpu DAIs, we should set channel
      number of cpus based on its channel mask. The new struct also provides
      channel mask information for each codec and we can construct the cpu
      channel mask by combining all codec channel masks which map to the cpu.
      
      The N:M mapping is however restricted to the N <= M case due to physical
      restrictions on a time-multiplexed bus such as I2S/TDM, AC97, SoundWire
      and HDaudio.
      
      Signed-off-by: default avatarBard Liao <yung-chuan.liao@linux.intel.com>
      Reviewed-by: default avatarPéter Ujfalusi <peter.ujfalusi@linux.intel.com>
      Reviewed-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
      Reviewed-by: default avatarRanjani Sridharan <ranjani.sridharan@linux.intel.com>
      Link: https://lore.kernel.org/r/20230607031242.1032060-2-yung-chuan.liao@linux.intel.com
      
      
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      ac950278
    • Mark Brown's avatar
      ASoC: Intel: avs: remove redundant dapm routes · 597d364c
      Mark Brown authored
      Merge series from Brent Lu <brent.lu@intel.com>:
      
      This patch series remove redundant dapm routes declared in multiple machine
      drivers. These routes will be created by snd_soc_dapm_connect_dai_link_widgets()
      during soundcard initialization. Following is the kernel log from a KBL
      chromebook nocturne.
      
      dmic:
      [   13.773455] avs_dmic avs_dmic: connected DAI link dmic-codec:Capture -> dmic-platform:DMIC Rx
      [   13.773460] avs_dmic avs_dmic: connected DAI link dmic-codec:Capture -> dmic-platform:DMIC WoV Rx
      
      max98373:
      [   14.079536] avs_max98373 avs_max98373.1: connected DAI link avs_max98373.1-platform:ssp0 Tx -> i2c-MX98373:00:Right HiFi Playback
      [   14.079545] avs_max98373 avs_max98373.1: connected DAI link i2c-MX98373:00:Right HiFi Capture -> avs_max98373.1-platform:ssp0 Rx
      [   14.079550] avs_max98373 avs_max98373.1: connected DAI link avs_max98373.1-platform:ssp0 Tx -> i2c-MX98373:01:Left HiFi Playback
      [   14.079554] avs_max98373 avs_max98373.1: connected DAI link i2c-MX98373:01:Left HiFi Capture -> avs_max98373.1-platform:ssp0 Rx
      
      hdaudio:
      [   14.094818] avs_hdaudio avs_hdaudio.2: connected DAI link hdaudioB0D2-platform:hdaudioB0D2-cpu0 Tx -> hdaudioB0D2:HDMI 0 Playback
      [   14.094824] avs_hdaudio avs_hdaudio.2: connected DAI link hdaudioB0D2-platform:hdaudioB0D2-cpu1 Tx -> hdaudioB0D2:HDMI 1 Playback
      [   14.094828] avs_hdaudio avs_hdaudio.2: connected DAI link hdaudioB0D2-platform:hdaudioB0D2-cpu2 Tx -> hdaudioB0D2:HDMI 2 Playback
      597d364c
    • Mark Brown's avatar
      ASoC: mediatek: mt8173: Fix error paths · 487db53b
      Mark Brown authored
      Merge series from Ricardo Ribalda Delgado <ribalda@chromium.org>:
      
      ASoC: mediatek: mt8173, presented a couple of error paths errors, lets
      fix them.
      487db53b
  2. Jun 12, 2023
  3. Jun 09, 2023
  4. Jun 08, 2023
  5. Jun 07, 2023