1. 13 Sep, 2023 3 commits
    • Mark Brown's avatar
      ASoC: cs35l56: Use PCI SSID to select specific · bc51fbee
      Mark Brown authored
      Merge series from Richard Fitzgerald <rf@opensource.cirrus.com>:
      
      The PCI device registers contain a subsystem ID (SSID), that is
      separate from the silicon ID. The PCI specification defines it thus:
      
      "They provide a mechanism for board vendors to distiguish their
       boards from one another even thought the boards may have the same
       PCI controller on them."
      
      This allows the driver for the silicon part to apply board-speficic
      settings based on this SSID.
      
      The CS35L56 driver uses this to select the correct firmware file for
      the board. The actual ID is part of the PCI register set of the
      host audio interface so this set of patches includes extracting the
      SSID from the Intel audio controller and passing it to the machine
      driver and then to ASoC components. Other PCI audio controllers
      will have the same SSID registers, so can use the same mechanism to
      pass the SSID.
      bc51fbee
    • Seven Lee's avatar
      ASoC: nau8821: Revise MICBIAS control for power saving. · 8885ab34
      Seven Lee authored
      The patch helps save power by control MICBIAS. The headset's
      MICBIAS should be disabled without button requirement.
      Signed-off-by: default avatarSeven Lee <wtli@nuvoton.com>
      Link: https://lore.kernel.org/r/20230913064003.2925997-1-wtli@nuvoton.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      8885ab34
    • Peter Ujfalusi's avatar
      ASoC: hdac_hdmi: Remove temporary string use in create_fill_jack_kcontrols · 67a810b6
      Peter Ujfalusi authored
      There is no need to use temporary strings to construct the kcontrol names,
      devm_kasprintf can be used to replace the snprintf + devm_kstrdup pairs.
      
      This change will also fixes the following compiler warning/error (W=1):
      
      sound/soc/codecs/hdac_hdmi.c: In function ‘hdac_hdmi_jack_port_init’:
      sound/soc/codecs/hdac_hdmi.c:1793:63: error: ‘ Switch’ directive output may be truncated writing 7 bytes into a region of size between 1 and 32 [-Werror=format-truncation=]
       1793 |                         snprintf(kc_name, sizeof(kc_name), "%s Switch", xname);
            |                                                               ^~~~~~~
      In function ‘create_fill_jack_kcontrols’,
          inlined from ‘hdac_hdmi_jack_port_init’ at sound/soc/codecs/hdac_hdmi.c:1871:8:
      sound/soc/codecs/hdac_hdmi.c:1793:25: note: ‘snprintf’ output between 8 and 39 bytes into a destination of size 32
       1793 |                         snprintf(kc_name, sizeof(kc_name), "%s Switch", xname);
            |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      cc1: all warnings being treated as errors
      
      The warnings got brought to light by a recent patch upstream:
      commit 6d4ab2e9 ("extrawarn: enable format and stringop overflow warnings in W=1")
      Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
      Link: https://lore.kernel.org/r/20230913091325.16877-1-peter.ujfalusi@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      67a810b6
  2. 12 Sep, 2023 8 commits
  3. 11 Sep, 2023 29 commits