Skip to content
Permalink
Daniel-Baluta/…
Switch branches/tags

Commits on Jul 15, 2021

  1. dt-bindings: dsp: fsl: Document newly introduced fsl,properties

    Document firmware-name, tplg-name and machine-drv-name properties.
    
    Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
    dbaluta authored and intel-lab-lkp committed Jul 15, 2021
  2. ASoC: SOF: Introduce machine driver name

    ACPI creates tables with information about the machine driver.
    With DT there is no need for such tables because we can directly
    get all the information needed from DT file.
    
    This patch introduces machine driver property inside dsp node.
    
    Notice that sof_pdata->machine_drv_name is the OF equivalent of
    sof_pdata->machine (snd_soc_acpi_mach). We don't need more
    information than machine_drv_name for OF platforms (for now).
    
    Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
    dbaluta authored and intel-lab-lkp committed Jul 15, 2021
  3. ASoC: SOF: Parse fw/tplg filename from DT

    Introduce two DT properties in dsp node:
    	* fw-filename, optional property giving the firmware filename
    	(if this is missing fw filename is read from board description)
    	* tplg-filename, mandatory giving the topology filename.
    
    Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
    dbaluta authored and intel-lab-lkp committed Jul 15, 2021

Commits on Jul 14, 2021

  1. Merge series "soundwire/ASoC: add mockup codec support" from Bard Lia…

    …o <yung-chuan.liao@linux.intel.com>:
    
    Adding mockup SoundWire codec is useful to debug driver/topology changes
    without having any actual device connected.
    
    Bard Liao (2):
      soundwire: stream: don't abort bank switch on Command_Ignored/-ENODATA
      soundwire: stream: don't program mockup device ports
    
    Pierre-Louis Bossart (8):
      ASoC: codecs: add SoundWire mockup device support
      ASoC: soc-acpi: cnl: add table for SoundWire mockup devices
      ASoC: soc-acpi: tgl: add table for SoundWire mockup devices
      ASoC: Intel: boards: sof_sdw: add SoundWire mockup codecs for tests
      soundwire: add flag to ignore all command/control for mockup devices
      soundwire: bus: squelch error returned by mockup devices
      soundwire: cadence: add debugfs interface for PDI loopbacks
      soundwire: cadence: override PDI configurations to create loopback
    
     drivers/soundwire/bus.c                       |  10 +-
     drivers/soundwire/cadence_master.c            | 174 ++++++++--
     drivers/soundwire/cadence_master.h            |   3 +
     drivers/soundwire/stream.c                    |   5 +-
     include/linux/soundwire/sdw.h                 |   3 +
     sound/soc/codecs/Kconfig                      |  18 +
     sound/soc/codecs/Makefile                     |   2 +
     sound/soc/codecs/sdw-mockup.c                 | 312 ++++++++++++++++++
     sound/soc/intel/boards/Kconfig                |   1 +
     sound/soc/intel/boards/sof_sdw.c              |  41 +++
     sound/soc/intel/common/Makefile               |   3 +-
     .../intel/common/soc-acpi-intel-cnl-match.c   |  15 +
     .../common/soc-acpi-intel-sdw-mockup-match.c  | 166 ++++++++++
     .../common/soc-acpi-intel-sdw-mockup-match.h  |  17 +
     .../intel/common/soc-acpi-intel-tgl-match.c   |  23 ++
     15 files changed, 754 insertions(+), 39 deletions(-)
     create mode 100644 sound/soc/codecs/sdw-mockup.c
     create mode 100644 sound/soc/intel/common/soc-acpi-intel-sdw-mockup-match.c
     create mode 100644 sound/soc/intel/common/soc-acpi-intel-sdw-mockup-match.h
    
    base-commit: e73f0f0
    
    --
    2.17.1
    broonie committed Jul 14, 2021
  2. ASoC: Intel: boards: sof_sdw: add SoundWire mockup codecs for tests

    Add support for SoundWire mockup devices. The configurations assume the
    same topology as the CML SoundWire devices and can be used to test the
    SOF firmware on a development board (RVP, UpExtreme) without any
    hardware connected.
    
    Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
    Reviewed-by: Rander Wang <rander.wang@intel.com>
    Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
    Link: https://lore.kernel.org/r/20210714032209.11284-5-yung-chuan.liao@linux.intel.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    plbossart authored and broonie committed Jul 14, 2021
  3. ASoC: soc-acpi: tgl: add table for SoundWire mockup devices

    Follow the same idea as for CNL/UpExtreme and add mockup test
    first. They will only be selected if the SSDT is modified to add such
    mockup devices.
    
    Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
    Reviewed-by: Rander Wang <rander.wang@intel.com>
    Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
    Link: https://lore.kernel.org/r/20210714032209.11284-4-yung-chuan.liao@linux.intel.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    plbossart authored and broonie committed Jul 14, 2021
  4. ASoC: soc-acpi: cnl: add table for SoundWire mockup devices

    Add support for two configurations with SoundWire mockup devices that
    emulate the two CometLake configurations with one and two amps. This
    patch helps test the SOF firmware on an UpExtreme board without any
    hardware connected, e.g. by doing a loopback of the playback stream on
    capture streams.
    
    The mapping of the partIDs is as follows:
    
    0xAAAA: generic full-duplex codec (not currently used)
    0xAA55: headset codec (mock-up of RT711/RT5682) - full-duplex
    0x55AA: amplifier (mock-up of RT1308/RT1316/Maxim 98373) - playback
    with IV sense feedback
    0x5555: mic codec (mock-up of RT715) - capture-only
    
    The tables are added in a separate file to allow for mockup codecs to be
    added on other platforms, but the mapping to specific topologies
    remains platform-specific.
    
    Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
    Reviewed-by: Rander Wang <rander.wang@intel.com>
    Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
    Link: https://lore.kernel.org/r/20210714032209.11284-3-yung-chuan.liao@linux.intel.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    plbossart authored and broonie committed Jul 14, 2021
  5. ASoC: codecs: add SoundWire mockup device support

    To test the host controller and bus management code, it is currently
    required to have a physical SoundWire peripheral attached to the
    bus. To help with pre-silicon or early hardware enablement, it would
    be very useful to have a SoundWire 'mockup' device that is exposed in
    platform firmware but does not drive any signal on the bus.
    
    This is different to the existing ASoC 'dummy' codec uses for I2S/TDM,
    the SoundWire spec makes it clear that a device that is not attached
    to the bus is not permitted to interact with the bus, be it for
    command/control or data.
    
    This patch exposes a 'mockup' device, with a minimalist driver, with 4
    partID values reserved by Intel for such test configurations. The
    mockup device exposes one full-duplex DAI based on 2 ports (DP1 for
    playback and DP8 for capture). The capture data port is just virtual,
    such a mockup device is prevented by the SoundWire specification from
    presenting any data generated by a Source port without being Attached.
    
    All the callbacks exposed by the SoundWire Slave interface are
    populated, even if they just return immediately. This is intentional
    to describe what a minimal codec driver should do and implement and
    help new codec vendors provide support for their devices.
    
    Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
    Reviewed-by: Rander Wang <rander.wang@intel.com>
    Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
    Link: https://lore.kernel.org/r/20210714032209.11284-2-yung-chuan.liao@linux.intel.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    plbossart authored and broonie committed Jul 14, 2021
  6. ASoC: Intel: sof_sdw: update quirk for jack detection in ADL RVP

    ADL RVP uses different circuits for jack detection, hence
    adding external resister 100k mode.
    
    Reviewed-by: Rander Wang <rander.wang@intel.com>
    Signed-off-by: jairaj arava <jairaj.arava@intel.com>
    Signed-off-by: Sathya Prakash M R <sathya.prakash.m.r@intel.com>
    Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
    Link: https://lore.kernel.org/r/20210712203240.46960-8-pierre-louis.bossart@linux.intel.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    jairaj-arava authored and broonie committed Jul 14, 2021
  7. ASoC: Intel: sof_sdw: include rt711.h for RT711 JD mode

    We don't need to redefine enum rt711_jd_src.
    
    Reviewed-by: Rander Wang <rander.wang@intel.com>
    Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
    Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
    Link: https://lore.kernel.org/r/20210712203240.46960-7-pierre-louis.bossart@linux.intel.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    bardliao authored and broonie committed Jul 14, 2021
  8. ASoC: Intel: sof_sdw: extends SOF_RT711_JDSRC to 4 bits

    commit 683b0df ("ASoC: rt711: add two jack detection modes")
    added two jack detection modes. Rt711 has 4 JD modes now.
    Reserve 4 bits in case rt711 adds more JD modes in the future.
    
    Reviewed-by: Rander Wang <rander.wang@intel.com>
    Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
    Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
    Link: https://lore.kernel.org/r/20210712203240.46960-6-pierre-louis.bossart@linux.intel.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    bardliao authored and broonie committed Jul 14, 2021
  9. ASoC: Intel: sof_rt5682: code refactor for max98360a

    Refactor the machine driver by using the common code in maxim-common
    module to support max98360a.
    
    Reviewed-by: Bard Liao <bard.liao@intel.com>
    Signed-off-by: Brent Lu <brent.lu@intel.com>
    Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
    Link: https://lore.kernel.org/r/20210712203240.46960-5-pierre-louis.bossart@linux.intel.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    brentlu authored and broonie committed Jul 14, 2021
  10. ASoC: Intel: sof_cs42l42: add support for jsl_cs4242_mx98360a

    This patch adds driver data for jsl_cs4242_mx98360a which supports two
    max98360a speaker amplifiers on SSP1 and cs42l42 headphone codec on
    SSP0 running on JSL platform.
    
    Reviewed-by: Bard Liao <bard.liao@intel.com>
    Signed-off-by: Brent Lu <brent.lu@intel.com>
    Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
    Link: https://lore.kernel.org/r/20210712203240.46960-4-pierre-louis.bossart@linux.intel.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    brentlu authored and broonie committed Jul 14, 2021
  11. ASoC: Intel: maxim-common: support max98360a

    Move max98360a code to this common module so it could be shared
    between multiple SOF machine drivers. MAX98357A and MAX98360A are
    sharing same codec driver so here we also share some function and
    structures.
    
    Reviewed-by: Bard Liao <bard.liao@intel.com>
    Signed-off-by: Brent Lu <brent.lu@intel.com>
    Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
    Link: https://lore.kernel.org/r/20210712203240.46960-3-pierre-louis.bossart@linux.intel.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    brentlu authored and broonie committed Jul 14, 2021
  12. ASoC: Intel: sof_cs42l42: support arbitrary DAI link sequence

    Currently there are two types of DAI Link sequences defined in
    topology files, one starts from speaker link and the other starts from
    headphone link.
    
    Type 1: SPK - HP - DMIC - HDMI
    Type 2: HP - DMIC - HDMI - SPK
    
    Here we add a macro SOF_CS42L42_DAILINK to define the DAI Link
    sequence in quirk and refactor the sof_card_dai_links_create()
    function to support arbitrary DAI Link sequence.
    
    Reviewed-by: Bard Liao <bard.liao@intel.com>
    Signed-off-by: Brent Lu <brent.lu@intel.com>
    Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
    Link: https://lore.kernel.org/r/20210712203240.46960-2-pierre-louis.bossart@linux.intel.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    brentlu authored and broonie committed Jul 14, 2021
  13. ASoC: codecs: wcd938x: make sdw dependency explicit in Kconfig

    currenlty wcd938x has only soundwire interface and depends on
    symbols from wcd938x soundwire module, so make this dependency
    explicit in Kconfig
    
    Without this one of the randconfig endup setting
    CONFIG_SND_SOC_WCD938X=y
    CONFIG_SND_SOC_WCD938X_SDW=m
    resulting in some undefined reference to wcd938x_sdw* symbols.
    
    Reported-by: kernel test robot <lkp@intel.com>
    Fixes: 0454422 ("ASoC: codecs: wcd938x: add audio routing and Kconfig")
    Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
    Link: https://lore.kernel.org/r/20210713140417.23693-1-srinivas.kandagatla@linaro.org
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Srinivas-Kandagatla authored and broonie committed Jul 14, 2021
  14. ASoC: SOF: Intel: Update ADL descriptor to use ACPI power states

    The ADL descriptor was missing an ACPI power setting, causing the DSP
    to enter D3 even with a D0i1-compatible wake-on-voice/hotwording
    capture stream.
    
    Fixes: 4ad03f8 ('ASoC: SOF: Intel: Update ADL P to use its own descriptor')
    Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
    Signed-off-by: Sathya Prakash M R <sathya.prakash.m.r@intel.com>
    Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
    Link: https://lore.kernel.org/r/20210712201620.44311-1-pierre-louis.bossart@linux.intel.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    sathyap-chrome authored and broonie committed Jul 14, 2021

Commits on Jul 12, 2021

  1. ASoC: rt5631: Fix regcache sync errors on resume

    The ALC5631 does not like multi-write accesses, avoid them. This fixes:
    
    rt5631 4-001a: Unable to sync registers 0x3a-0x3c. -121
    
    errors on resume from suspend (and all registers after the registers in
    the error not being synced).
    
    Inspired by commit 2d30e94 ("ASoC: rt5651: Fix regcache sync errors
    on resume") from Hans de Geode, which fixed the same errors on ALC5651.
    
    Signed-off-by: Maxim Schwalm <maxim.schwalm@gmail.com>
    Link: https://lore.kernel.org/r/20210712005011.28536-1-digetx@gmail.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    maximschwalm authored and broonie committed Jul 12, 2021
  2. Merge series "ASoC: ti: davinci-mcasp: Fix the DIT mode and OMAP4 sup…

    …port" from Peter Ujfalusi <peter.ujfalusi@gmail.com>:
    
    Hi,
    
    Changes since v1:
    - Do not calculat that we allow one serializer in DIT mode, just set the
      max_active_serializers to 1.
      Reported-by: kernel test robot <lkp@intel.com>
    
    it has been on my todo list for several years to support McASP on OMAP4 devices.
    For Galaxy Nexus we had an omap-mcasp driver (which was mostly a stripped down
    davinci-mcasp driver) to support what was needed on that specific phone + it's
    dock for S/PDIF (48KHz, 16bit, stereo).
    
    Not many (if any) device available to test the DIT mode of McASP.
    I have used BeagleBone White (McASP1 AXR3 can be routed to a pin) to get the
    S/PDIF mode working then PandaES for OMAP4 support (on PandaES the gpio_121 is
    not used and the signal is routed to expansion J6 pin14).
    
    In theory the McASP in OMAP5 should be working after this series, but the OMAP5
    TRM is not public and I do not have one to check the addresses and see if there
    is a way to test it on omap5-uevm.
    
    Mark, Tony:
    The ASoC and dts patches can go via separate tree I felt that it is better if
    they are together, at least initially.
    
    Nikolaus: fyi, this might be useful for Pyra?
    
    Regards,
    Péter
    ---
    Peter Ujfalusi (5):
      ASoC: ti: davinci-mcasp: Fix DIT mode support
      ASoC: dt-bindings: davinci-mcasp: Add compatible string for OMAP4
      ASoC: ti: davinci-mcasp: Add support for the OMAP4 version of McASP
      ARM: dts: omap4-l4-abe: Correct sidle modes for McASP
      ARM: dts: omap4-l4-abe: Add McASP configuration
    
     .../bindings/sound/davinci-mcasp-audio.txt    |   1 +
     arch/arm/boot/dts/omap4-l4-abe.dtsi           |  39 ++--
     include/linux/platform_data/davinci_asp.h     |   1 +
     sound/soc/ti/Kconfig                          |   1 +
     sound/soc/ti/davinci-mcasp.c                  | 176 +++++++++++++++---
     5 files changed, 175 insertions(+), 43 deletions(-)
    
    --
    2.32.0
    broonie committed Jul 12, 2021
  3. Merge series "Fix unbalanced pm_runtime_enable in error handle" from …

    …Zhang Qilong <zhangqilong3@huawei.com>:
    
    This two patches fixed the unbalanced PM disable depth. It could
    avoid pm_runtime implementation complains when removing and probing
    again the driver.
    
    Zhang Qilong (2):
      ASoC: mediatek: mt8192:Fix Unbalanced pm_runtime_enable in
        mt8192_afe_pcm_dev_probe
      ASoC: mediatek: mt8183: Fix Unbalanced pm_runtime_enable in
        mt8183_afe_pcm_dev_probe
    
     sound/soc/mediatek/mt8183/mt8183-afe-pcm.c | 43 ++++++++++++++--------
     sound/soc/mediatek/mt8192/mt8192-afe-pcm.c | 27 +++++++++-----
     2 files changed, 44 insertions(+), 26 deletions(-)
    
    --
    2.31.1
    broonie committed Jul 12, 2021
  4. Merge series "ASoC: Intel: machine driver corrections" from Pierre-Lo…

    …uis Bossart <pierre-louis.bossart@linux.intel.com>:
    
    The first fix solves an underflow in SoundWire platforms using the
    max98373 amplifier, the rest of the patches are minor corrections in
    machine drivers.
    
    The fix should be queued for the 5.14 cycle, the rest should be
    harmless but can be deferred for 5.15 if it's too late already.
    
    Brent Lu (2):
      ASoC: SOF: add a helper to get topology configured bclk
      ASoC: Intel: sof_cs42l42: use helper function to get bclk frequency
    
    Gongjun Song (1):
      ASoC: Intel: soc-acpi: add support for SoundWire of TGL-H-RVP
    
    Rander Wang (1):
      ASoC: Intel: boards: fix xrun issue on platform with max98373
    
     include/sound/sof.h                           |  1 +
     sound/soc/intel/boards/sof_cs42l42.c          |  8 +-
     sound/soc/intel/boards/sof_sdw_max98373.c     | 81 ++++++++++++-------
     .../intel/common/soc-acpi-intel-tgl-match.c   | 15 ++++
     sound/soc/sof/sof-audio.c                     | 42 ++++++++--
     5 files changed, 111 insertions(+), 36 deletions(-)
    
    --
    2.25.1
    broonie committed Jul 12, 2021
  5. Merge series "arm64: tegra: Enable audio IOMMU support on Tegra194" f…

    …rom Thierry Reding <thierry.reding@gmail.com>
    
    Thierry Reding <treding@nvidia.com>:
    
    From: Thierry Reding <treding@nvidia.com>
    
    This small series addresses a minor issue with how IOMMU support is
    wired up on various Tegra generations. Currently the virtual "card"
    device is used to allocate DMA memory for, but since that device does
    not actually exist, the path to memory cannot be correctly described.
    
    To address this, this series moves to using the ADMAIF as the DMA device
    for audio. This is a real device that can have a proper DMA mask set and
    with which a stream ID can be associated with in the SMMU. The memory
    accesses technically originate from the ADMA controller (that the ADMAIF
    uses), but DMA channel are dynamically allocated at runtime while DMA
    memory is allocated at driver load time, drivers won't have access to
    the ADMA device yet.
    
    Further patches will be required to correct this issue on Tegra186 and
    Tegra210, but I wanted to get feedback on this approach first.
    
    Changes in v2:
    - add backwards-compatibility fallback
    
    Thierry
    
    Thierry Reding (2):
      ASoC: tegra: Use ADMAIF component for DMA allocations
      arm64: tegra: Enable audio IOMMU support on Tegra194
    
     arch/arm64/boot/dts/nvidia/tegra194.dtsi |  4 ++++
     sound/soc/tegra/tegra_pcm.c              | 30 ++++++++++++++----------
     2 files changed, 22 insertions(+), 12 deletions(-)
    
    --
    2.32.0
    broonie committed Jul 12, 2021

Commits on Jul 11, 2021

  1. ASoC: amd: fix spelling mistakes

    Fix some spelling mistakes as follows:
    descritor ==> descriptor
    descriptore ==> descriptor
    contiguos ==> contiguous
    initiailize ==> initialize
    descriptiors ==> descriptor
    
    Signed-off-by: Gu Shengxian <gushengxian@yulong.com>
    Link: https://lore.kernel.org/r/20210706064207.672491-1-gushengxian507419@gmail.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Gu Shengxian authored and broonie committed Jul 11, 2021
  2. ASoC: tlv320aic32x4: Fix TAS2505/TAS2521 channel count

    The TAS2505/TAS2521 does support up to two channels, LEFT and RIGHT,
    which are being alternated on the audio data bus by Word Clock, WCLK.
    This is documented in TI slau472 2.7.1 Digital Audio Interface. Note
    that both the LEFT and RIGHT channels are only used for audio INPUT,
    while only the LEFT channel is used for audio OUTPUT.
    
    Fixes: b4525b6 ("ASoC: tlv320aic32x4: add support for TAS2505")
    Signed-off-by: Marek Vasut <marex@denx.de>
    Cc: Claudius Heine <ch@denx.de>
    Cc: Mark Brown <broonie@kernel.org>
    Link: https://lore.kernel.org/r/20210708091229.56443-1-marex@denx.de
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Marek Vasut authored and broonie committed Jul 11, 2021
  3. ASoC: fsl_xcvr: Omit superfluous error message in fsl_xcvr_probe()

    In the function fsl_xcvr__probe(), when get irq failed,
    the function platform_get_irq() logs an error message, so remove
    redundant message here.
    
    Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
    Link: https://lore.kernel.org/r/20210624104505.13680-1-tangbin@cmss.chinamobile.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Tang Bin authored and broonie committed Jul 11, 2021
  4. ASoC: sh: rcar: dma: : use proper DMAENGINE API for termination

    dmaengine_terminate_all() is deprecated in favor of explicitly saying if
    it should be sync or async. Here, we want dmaengine_terminate_sync()
    because there is no other synchronization code in the driver to handle
    an async case.
    
    Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
    Link: https://lore.kernel.org/r/20210623100545.3926-1-wsa+renesas@sang-engineering.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Wolfram Sang authored and broonie committed Jul 11, 2021
  5. ASoC: wm_adsp: Remove pointless string comparison

    The control fw_name is always directly assigned from the wm_adsp_fw_text
    array, so it isn't necessary to compare the actual strings just the
    pointer values.
    
    Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
    Link: https://lore.kernel.org/r/20210626155941.12251-3-ckeepax@opensource.cirrus.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    charleskeepax authored and broonie committed Jul 11, 2021
  6. ASoC: codecs: wcd938x: fix returnvar.cocci warnings

    sound/soc/codecs/wcd938x.c:1628:5-8: Unneeded variable: "ret". Return "0" on line 1656
    sound/soc/codecs/wcd938x.c:1871:5-8: Unneeded variable: "ret". Return "0" on line 1907
    
     Remove unneeded variable used to store return value.
    
    Generated by: scripts/coccinelle/misc/returnvar.cocci
    
    Fixes: 0454422 ("ASoC: codecs: wcd938x: add audio routing and Kconfig")
    CC: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
    Reported-by: kernel test robot <lkp@intel.com>
    Signed-off-by: kernel test robot <lkp@intel.com>
    Acked-by: Souptick Joarder <jrdr.linux@gmail.com>
    Link: https://lore.kernel.org/r/20210629132909.GA7935@233d919f385f
    Signed-off-by: Mark Brown <broonie@kernel.org>
    intel-lab-lkp authored and broonie committed Jul 11, 2021
  7. ASoC: atmel: ATMEL drivers don't need HAS_DMA

    On a config (such as arch/sh/) which does not set HAS_DMA when MMU
    is not set, several ATMEL ASoC drivers select symbols that cause
    kconfig warnings. There is one "depends on HAS_DMA" which is no longer
    needed. Dropping it eliminates the kconfig warnings and still builds
    with no problems reported.
    
    Fix the following kconfig warnings:
    
    WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
      Depends on [n]: SOUND [=m] && !UML && SND [=m] && SND_SOC [=m] && SND_ATMEL_SOC [=m] && HAS_DMA [=n]
      Selected by [m]:
      - SND_ATMEL_SOC_SSC [=m] && SOUND [=m] && !UML && SND [=m] && SND_SOC [=m] && SND_ATMEL_SOC [=m]
      - SND_ATMEL_SOC_SSC_PDC [=m] && SOUND [=m] && !UML && SND [=m] && SND_SOC [=m] && SND_ATMEL_SOC [=m] && ATMEL_SSC [=m]
    
    WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_SSC_PDC
      Depends on [n]: SOUND [=m] && !UML && SND [=m] && SND_SOC [=m] && SND_ATMEL_SOC [=m] && ATMEL_SSC [=m] && HAS_DMA [=n]
      Selected by [m]:
      - SND_AT91_SOC_SAM9G20_WM8731 [=m] && SOUND [=m] && !UML && SND [=m] && SND_SOC [=m] && SND_ATMEL_SOC [=m] && (ARCH_AT91 || COMPILE_TEST [=y]) && ATMEL_SSC [=m] && SND_SOC_I2C_AND_SPI [=m]
    
    WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_SSC
      Depends on [n]: SOUND [=m] && !UML && SND [=m] && SND_SOC [=m] && SND_ATMEL_SOC [=m] && HAS_DMA [=n]
      Selected by [m]:
      - SND_ATMEL_SOC_SSC_DMA [=m] && SOUND [=m] && !UML && SND [=m] && SND_SOC [=m] && SND_ATMEL_SOC [=m] && ATMEL_SSC [=m]
    
    WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_SSC_DMA
      Depends on [n]: SOUND [=m] && !UML && SND [=m] && SND_SOC [=m] && SND_ATMEL_SOC [=m] && ATMEL_SSC [=m] && HAS_DMA [=n]
      Selected by [m]:
      - SND_ATMEL_SOC_WM8904 [=m] && SOUND [=m] && !UML && SND [=m] && SND_SOC [=m] && SND_ATMEL_SOC [=m] && (ARCH_AT91 || COMPILE_TEST [=y]) && ATMEL_SSC [=m] && I2C [=m]
      - SND_AT91_SOC_SAM9X5_WM8731 [=m] && SOUND [=m] && !UML && SND [=m] && SND_SOC [=m] && SND_ATMEL_SOC [=m] && (ARCH_AT91 || COMPILE_TEST [=y]) && ATMEL_SSC [=m] && SND_SOC_I2C_AND_SPI [=m]
    
    Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
    Reviewed-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
    Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
    Link: https://lore.kernel.org/r/20210707214752.3831-1-rdunlap@infradead.org
    Signed-off-by: Mark Brown <broonie@kernel.org>
    rddunlap authored and broonie committed Jul 11, 2021
  8. ASoC: ti: delete some dead code in omap_abe_probe()

    This code checks "priv->mclk_freq" twice and the second check is not
    required.  The code is left over from when removed support for legacy
    boot.
    
    Fixes: 8fe120b ("ASoC: omap-abe-twl6040: Remove support for pdata (legacy boot)")
    Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
    Acked-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
    Link: https://lore.kernel.org/r/YNxTHXz58dhgbFtG@mwanda
    Signed-off-by: Mark Brown <broonie@kernel.org>
    error27 authored and broonie committed Jul 11, 2021
  9. ASoC: atmel: fix spelling mistakes

    Fix some spelling mistakes as follows:
    regaedles ==> regardless
    prezent ==> present
    underrrun ==> underrun
    controlls ==> controls
    
    Signed-off-by: Gu Shengxian <gushengxian@yulong.com>
    Link: https://lore.kernel.org/r/20210706100230.32633-1-gushengxian507419@gmail.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Gu Shengxian authored and broonie committed Jul 11, 2021
  10. ASoC: Intel: sof_cs42l42: use helper function to get bclk frequency

    Use sof_dai_get_bclk() function to get bclk frequency instead of a
    hard-coded magic number depending on configuration in topology.
    
    Reviewed-by: Bard Liao <bard.liao@intel.com>
    Signed-off-by: Brent Lu <brent.lu@intel.com>
    Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
    Link: https://lore.kernel.org/r/20210625205042.65181-5-pierre-louis.bossart@linux.intel.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    brentlu authored and broonie committed Jul 11, 2021
  11. ASoC: SOF: add a helper to get topology configured bclk

    Add helper function sof_dai_ssp_bclk() to get the BCLK frequency
    configured by topology.
    
    Reviewed-by: Bard Liao <bard.liao@intel.com>
    Signed-off-by: Brent Lu <brent.lu@intel.com>
    Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
    Link: https://lore.kernel.org/r/20210625205042.65181-4-pierre-louis.bossart@linux.intel.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    brentlu authored and broonie committed Jul 11, 2021
Older