10 Oct, 2022

2 commits


27 Sep, 2022

1 commit

  • This is the 5.15.70 stable release

    * tag 'v5.15.70': (2444 commits)
    Linux 5.15.70
    ALSA: hda/sigmatel: Fix unused variable warning for beep power change
    cgroup: Add missing cpus_read_lock() to cgroup_attach_task_all()
    ...

    Signed-off-by: Jason Liu

    Conflicts:
    arch/arm/boot/dts/imx6ul.dtsi
    arch/arm/mm/mmu.c
    arch/arm64/boot/dts/freescale/imx8mp-evk.dts
    drivers/gpu/drm/imx/dcss/dcss-kms.c
    drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
    drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.h
    drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
    drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
    drivers/soc/fsl/Kconfig
    drivers/soc/imx/gpcv2.c
    drivers/usb/dwc3/host.c
    net/dsa/slave.c
    sound/soc/fsl/imx-card.c

    Jason Liu
     

23 Sep, 2022

1 commit

  • [ Upstream commit 5628560e90395d3812800a8e44a01c32ffa429ec ]

    The semaphore of nau8824 wasn't properly unlocked at some error
    handling code paths, hence this may result in the unbalance (and
    potential lock-up). Fix them to handle the semaphore up properly.

    Signed-off-by: Takashi Iwai
    Link: https://lore.kernel.org/r/20220823081000.2965-3-tiwai@suse.de
    Signed-off-by: Mark Brown
    Signed-off-by: Sasha Levin

    Takashi Iwai
     

15 Sep, 2022

3 commits

  • commit 5c5c2baad2b55cc0a4b190266889959642298f79 upstream.

    A recent change in clang strengthened its -Wbitfield-constant-conversion
    to warn when 1 is assigned to a 1-bit signed integer bitfield, as it can
    only be 0 or -1, not 1:

    sound/soc/atmel/mchp-spdiftx.c:505:20: error: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Werror,-Wbitfield-constant-conversion]
    dev->gclk_enabled = 1;
    ^ ~
    1 error generated.

    The actual value of the field is never checked, just that it is not
    zero, so there is not a real bug here. However, it is simple enough to
    silence the warning by making the bitfield unsigned, which matches the
    mchp-spdifrx driver.

    Fixes: 06ca24e98e6b ("ASoC: mchp-spdiftx: add driver for S/PDIF TX Controller")
    Link: https://github.com/ClangBuiltLinux/linux/issues/1686
    Link: https://github.com/llvm/llvm-project/commit/82afc9b169a67e8b8a1862fb9c41a2cd974d6691
    Signed-off-by: Nathan Chancellor
    Reviewed-by: Nick Desaulniers
    Link: https://lore.kernel.org/r/20220810010809.2024482-1-nathan@kernel.org
    Signed-off-by: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Nathan Chancellor
     
  • commit 403fcb5118a0f4091001a537e76923031fb45eaf upstream.

    Remove references to struct mchp_i2s_caps as they are not used.

    Signed-off-by: Claudiu Beznea
    Link: https://lore.kernel.org/r/20220727090814.2446111-3-claudiu.beznea@microchip.com
    Signed-off-by: Mark Brown
    Cc: Nathan Chancellor
    Signed-off-by: Greg Kroah-Hartman

    Claudiu Beznea
     
  • [ Upstream commit c6e14bb9f50df7126ca64405ae807d8bc7b39f9a ]

    Add missing module owner to able to build and load this driver as module.

    Fixes: aa2e2785545a ("ASoC: qcom: sm8250: add sound card qrb5165-rb5 support")
    Signed-off-by: Srinivas Kandagatla
    Link: https://lore.kernel.org/r/20220816165229.7971-1-srinivas.kandagatla@linaro.org
    Signed-off-by: Mark Brown
    Signed-off-by: Sasha Levin

    Srinivas Kandagatla
     

05 Sep, 2022

1 commit

  • [ Upstream commit c75ed9f54ce8d349fee557f2b471a4d637ed2a6b ]

    We usually do cleanup in reverse order of init. Currently in case of
    error rz_ssi_release_dma_channels() done in the reverse order. This
    patch improves error handling in rz_ssi_probe() error path.

    While at it, use "goto cleanup" style to reduce code duplication.

    Reported-by: Pavel Machek
    Signed-off-by: Biju Das
    Link: https://lore.kernel.org/r/20220728092612.38858-1-biju.das.jz@bp.renesas.com
    Signed-off-by: Mark Brown
    Signed-off-by: Sasha Levin

    Biju Das
     

25 Aug, 2022

9 commits

  • [ Upstream commit ef30911d3c39fd57884c348c29b9cbff88def155 ]

    Before, ssiu.c didn't care SSI5-8, thus,
    commit b1384d4c95088d0 ("ASoC: rsnd: care default case on
    rsnd_ssiu_busif_err_status_clear()") cares it for status clear.

    But we should care it for error irq handling, too.
    This patch cares it.

    Reported-by: Nguyen Bao Nguyen
    Reported-by: Nishiyama Kunihiko
    Signed-off-by: Kuninori Morimoto
    Link: https://lore.kernel.org/r/871quocio1.wl-kuninori.morimoto.gx@renesas.com
    Signed-off-by: Mark Brown
    Signed-off-by: Sasha Levin

    Kuninori Morimoto
     
  • [ Upstream commit 94c1ceb043c1a002de9649bb630c8e8347645982 ]

    snprintf() returns the would-be-filled size when the string overflows
    the given buffer size, hence using this value may result in the buffer
    overflow (although it's unrealistic).

    This patch replaces with a safer version, scnprintf() for papering
    over such a potential issue.

    Fixes: 29c8e4398f02 ("ASoC: SOF: Intel: hda: add extended rom status dump to error log")
    Signed-off-by: Takashi Iwai
    Link: https://lore.kernel.org/r/20220801165420.25978-4-tiwai@suse.de
    Signed-off-by: Mark Brown
    Signed-off-by: Sasha Levin

    Takashi Iwai
     
  • [ Upstream commit 71778f7940f0b496aa1ca1134f3b70b425a59bab ]

    Add the rom_status_reg field to struct sof_intel_dsp_desc and define
    it for HDA platforms. This will be used to check the ROM status during
    FW boot.

    Signed-off-by: Ranjani Sridharan
    Signed-off-by: Pierre-Louis Bossart
    Reviewed-by: Péter Ujfalusi
    Link: https://lore.kernel.org/r/20220414184817.362215-14-pierre-louis.bossart@linux.intel.com
    Signed-off-by: Mark Brown
    Signed-off-by: Sasha Levin

    Ranjani Sridharan
     
  • commit b4b5f29a076e52181f63e45a2ad1bc88593072e3 upstream.

    The two commits referenced below break mono playback via I2S DAI because
    they set BCLK to half the required speed. For PCM transport over I2S, the
    number of transmitted channels is always 2, even for mono playback.

    Fixes: dcd79364bff3 ("ASoC: codec: tlv3204: Enable 24 bit audio support")
    Fixes: 40b37136287b ("ASoC: tlv320aic32x4: Fix bdiv clock rate derivation")
    Signed-off-by: Philipp Zabel
    Link: https://lore.kernel.org/r/20220810104156.665452-1-p.zabel@pengutronix.de
    Signed-off-by: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Philipp Zabel
     
  • commit 1e5907bcb3a3b569be0a03ebe668bba2ed320a50 upstream.

    Because the PWR_CTRL field is modeled as the power state of the DAC
    widget, and at the same time it is used to implement mute/unmute, we
    need some additional book-keeping to have the right end result no matter
    the sequence of calls. Without this fix, one can mute an ongoing stream
    by toggling a speaker pin control.

    Fixes: 1a476abc723e ("tas2770: add tas2770 smart PA kernel driver")
    Signed-off-by: Martin Povišer
    Link: https://lore.kernel.org/r/20220808141246.5749-5-povik+lin@cutebit.org
    Signed-off-by: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Martin Povišer
     
  • commit 482c23fbc7e9bf5a7a74defd0735d5346215db58 upstream.

    The driver is setting the PWR_CTRL field in both the set_bias_level
    callback and on DAPM events of the DAC widget (and also in the
    mute_stream method). Drop the set_bias_level callback altogether as the
    power setting it does is in conflict with the other code paths.

    Fixes: 1a476abc723e ("tas2770: add tas2770 smart PA kernel driver")
    Signed-off-by: Martin Povišer
    Link: https://lore.kernel.org/r/20220808141246.5749-4-povik+lin@cutebit.org
    Signed-off-by: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Martin Povišer
     
  • commit bf54d97a835dfe62d4d29e245e170c63d0089be7 upstream.

    The part is a mono speaker amp, but it can do downmix and switch between
    left and right channel, so the right channel range is 1 to 2.

    Fixes: 1a476abc723e ("tas2770: add tas2770 smart PA kernel driver")
    Signed-off-by: Martin Povišer
    Link: https://lore.kernel.org/r/20220808141246.5749-3-povik+lin@cutebit.org
    Signed-off-by: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Martin Povišer
     
  • commit e9ac31f0a5d0e246b046c20348954519f91a297f upstream.

    Fix setting of FSYNC polarity for DAI formats other than I2S. Also
    add support for polarity inversion.

    Fixes: 1a476abc723e ("tas2770: add tas2770 smart PA kernel driver")
    Signed-off-by: Martin Povišer
    Link: https://lore.kernel.org/r/20220808141246.5749-2-povik+lin@cutebit.org
    Signed-off-by: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Martin Povišer
     
  • commit 1eb123ce985e6cf302ac6e3f19862d132d86fa8f upstream.

    snprintf() returns the would-be-filled size when the string overflows
    the given buffer size, hence using this value may result in the buffer
    overflow (although it's unrealistic).

    This patch replaces with a safer version, scnprintf() for papering
    over such a potential issue.

    Fixes: 5b10b6298921 ("ASoC: SOF: Add `memory_info` file to debugfs")
    Signed-off-by: Takashi Iwai
    Link: https://lore.kernel.org/r/20220801165420.25978-3-tiwai@suse.de
    Signed-off-by: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Takashi Iwai
     

19 Aug, 2022

1 commit


17 Aug, 2022

21 commits

  • [ Upstream commit 768ac4f12ca0fda935f58eb8c5120e9d795bc6e3 ]

    Disable end of block interrupt in case of wait for completion timeout
    or errors to undo previously enable operation (done in
    mchp_spdifrx_isr_blockend_en()). Otherwise we can end up with an
    unbalanced reference counter for this interrupt.

    Fixes: ef265c55c1ac ("ASoC: mchp-spdifrx: add driver for SPDIF RX")
    Signed-off-by: Claudiu Beznea
    Link: https://lore.kernel.org/r/20220727090814.2446111-2-claudiu.beznea@microchip.com
    Signed-off-by: Mark Brown
    Signed-off-by: Sasha Levin

    Claudiu Beznea
     
  • [ Upstream commit 65fb8e2ef3531a6e950060fca6e551c923fb0f0e ]

    In asoc_simple_parse_dai(), we should call of_node_put() for the
    reference returned by of_graph_get_port_parent() in fail path.

    Fixes: ae30a694da4c ("ASoC: simple-card-utils: add asoc_simple_card_parse_dai()")
    Signed-off-by: Liang He
    Link: https://lore.kernel.org/r/20220721144308.1301587-1-windhl@126.com
    Signed-off-by: Mark Brown
    Signed-off-by: Sasha Levin

    Liang He
     
  • [ Upstream commit 673f58f62ca6fc98979d1cf3fe89c3ff33f29b2e ]

    find_first_zero_bit() returns MAX_COPPS_PER_PORT at max here.
    So 'idx' should be tested with ">=" or the test can't match.

    Fixes: 7b20b2be51e1 ("ASoC: qdsp6: q6adm: Add q6adm driver")
    Signed-off-by: Christophe JAILLET
    Link: https://lore.kernel.org/r/0fca3271649736053eb9649d87e1ca01b056be40.1658394124.git.christophe.jaillet@wanadoo.fr
    Signed-off-by: Mark Brown
    Signed-off-by: Sasha Levin

    Christophe JAILLET
     
  • [ Upstream commit 409a8652e909e323c715f3088e6c3133e37c8881 ]

    Fix sparse warning:
    sound/soc/fsl/imx-card.c:653:59: sparse: warning: incorrect type in assignment (different base types)
    sound/soc/fsl/imx-card.c:653:59: sparse: expected unsigned int [usertype] asrc_format
    sound/soc/fsl/imx-card.c:653:59: sparse: got restricted snd_pcm_format_t [usertype]
    sound/soc/fsl/imx-card.c:655:59: sparse: warning: incorrect type in assignment (different base types)
    sound/soc/fsl/imx-card.c:655:59: sparse: expected unsigned int [usertype] asrc_format
    sound/soc/fsl/imx-card.c:655:59: sparse: got restricted snd_pcm_format_t [usertype]

    Fixes: aa736700f42f ("ASoC: imx-card: Add imx-card machine driver")
    Signed-off-by: Shengjiu Wang
    Link: https://lore.kernel.org/r/1658399393-28777-6-git-send-email-shengjiu.wang@nxp.com
    Signed-off-by: Mark Brown
    Signed-off-by: Sasha Levin

    Shengjiu Wang
     
  • [ Upstream commit de27216cf2d645c2fd14e513707bdcd54e5b1de4 ]

    Fix sparse warning:
    sound/soc/fsl/fsl_easrc.c:562:33: sparse: warning: restricted snd_pcm_format_t degrades to integer
    sound/soc/fsl/fsl_easrc.c:563:34: sparse: warning: restricted snd_pcm_format_t degrades to integer
    sound/soc/fsl/fsl_easrc.c:565:38: sparse: warning: restricted snd_pcm_format_t degrades to integer
    sound/soc/fsl/fsl_easrc.c:566:39: sparse: warning: restricted snd_pcm_format_t degrades to integer
    sound/soc/fsl/fsl_easrc.c:608:33: sparse: warning: restricted snd_pcm_format_t degrades to integer
    sound/soc/fsl/fsl_easrc.c:609:34: sparse: warning: restricted snd_pcm_format_t degrades to integer
    sound/soc/fsl/fsl_easrc.c:615:40: sparse: warning: restricted snd_pcm_format_t degrades to integer
    sound/soc/fsl/fsl_easrc.c:616:41: sparse: warning: restricted snd_pcm_format_t degrades to integer

    sound/soc/fsl/fsl_easrc.c:1465:51: sparse: warning: incorrect type in assignment (different base types)
    sound/soc/fsl/fsl_easrc.c:1465:51: sparse: expected unsigned int sample_format
    sound/soc/fsl/fsl_easrc.c:1465:51: sparse: got restricted snd_pcm_format_t [usertype] format
    sound/soc/fsl/fsl_easrc.c:1467:52: sparse: warning: incorrect type in assignment (different base types)
    sound/soc/fsl/fsl_easrc.c:1467:52: sparse: expected unsigned int sample_format
    sound/soc/fsl/fsl_easrc.c:1467:52: sparse: got restricted snd_pcm_format_t [usertype] asrc_format
    sound/soc/fsl/fsl_easrc.c:1470:52: sparse: warning: incorrect type in assignment (different base types)
    sound/soc/fsl/fsl_easrc.c:1470:52: sparse: expected unsigned int sample_format
    sound/soc/fsl/fsl_easrc.c:1470:52: sparse: got restricted snd_pcm_format_t [usertype] format
    sound/soc/fsl/fsl_easrc.c:1472:51: sparse: warning: incorrect type in assignment (different base types)
    sound/soc/fsl/fsl_easrc.c:1472:51: sparse: expected unsigned int sample_format
    sound/soc/fsl/fsl_easrc.c:1472:51: sparse: got restricted snd_pcm_format_t [usertype] asrc_format
    sound/soc/fsl/fsl_easrc.c:1484:41: sparse: warning: incorrect type in argument 2 (different base types)
    sound/soc/fsl/fsl_easrc.c:1484:41: sparse: expected restricted snd_pcm_format_t [usertype] *in_raw_format
    sound/soc/fsl/fsl_easrc.c:1484:41: sparse: got unsigned int *
    sound/soc/fsl/fsl_easrc.c:1485:41: sparse: warning: incorrect type in argument 3 (different base types)
    sound/soc/fsl/fsl_easrc.c:1485:41: sparse: expected restricted snd_pcm_format_t [usertype] *out_raw_format
    sound/soc/fsl/fsl_easrc.c:1485:41: sparse: got unsigned int *
    sound/soc/fsl/fsl_easrc.c:1937:60: sparse: warning: incorrect type in argument 3 (different base types)
    sound/soc/fsl/fsl_easrc.c:1937:60: sparse: expected unsigned int [usertype] *out_value
    sound/soc/fsl/fsl_easrc.c:1937:60: sparse: got restricted snd_pcm_format_t *
    sound/soc/fsl/fsl_easrc.c:1943:49: sparse: warning: restricted snd_pcm_format_t degrades to integer

    Fixes: 955ac624058f ("ASoC: fsl_easrc: Add EASRC ASoC CPU DAI drivers")
    Signed-off-by: Shengjiu Wang
    Link: https://lore.kernel.org/r/1658399393-28777-5-git-send-email-shengjiu.wang@nxp.com
    Signed-off-by: Mark Brown
    Signed-off-by: Sasha Levin

    Shengjiu Wang
     
  • [ Upstream commit 6c7b077dad62178c33f9a3ae17f90d6b0bf6e2e5 ]

    Fix sparse warning:
    sound/soc/fsl/fsl-asoc-card.c:833:45: sparse: warning: incorrect type in argument 3 (different base types)
    sound/soc/fsl/fsl-asoc-card.c:833:45: sparse: expected unsigned int [usertype] *out_value
    sound/soc/fsl/fsl-asoc-card.c:833:45: sparse: got restricted snd_pcm_format_t *

    Fixes: 859e364302c5 ("ASoC: fsl-asoc-card: Support new property fsl, asrc-format")
    Signed-off-by: Shengjiu Wang
    Link: https://lore.kernel.org/r/1658399393-28777-4-git-send-email-shengjiu.wang@nxp.com
    Signed-off-by: Mark Brown
    Signed-off-by: Sasha Levin

    Shengjiu Wang
     
  • [ Upstream commit c49932726de24405d45516b3f8ad2735714fdf05 ]

    Fix sparse warning:
    sound/soc/fsl/fsl_asrc.c:1177:60: sparse: warning: incorrect type in argument 3 (different base types)
    sound/soc/fsl/fsl_asrc.c:1177:60: sparse: expected unsigned int [usertype] *out_value
    sound/soc/fsl/fsl_asrc.c:1177:60: sparse: got restricted snd_pcm_format_t *
    sound/soc/fsl/fsl_asrc.c:1200:47: sparse: warning: restricted snd_pcm_format_t degrades to integer

    Fixes: 4520af41fd21 ("ASoC: fsl_asrc: Support new property fsl,asrc-format")
    Signed-off-by: Shengjiu Wang
    Link: https://lore.kernel.org/r/1658399393-28777-3-git-send-email-shengjiu.wang@nxp.com
    Signed-off-by: Mark Brown
    Signed-off-by: Sasha Levin

    Shengjiu Wang
     
  • [ Upstream commit a8d5df69e2ec702d979f7d04ed519caf8691a032 ]

    In mt6359_parse_dt() and mt6359_accdet_parse_dt(), we should call
    of_node_put() for the reference returned by of_get_child_by_name()
    which has increased the refcount.

    Fixes: 683530285316 ("ASoC: mt6359: fix failed to parse DT properties")
    Fixes: eef07b9e0925 ("ASoC: mediatek: mt6359: add MT6359 accdet jack driver")
    Signed-off-by: Liang He
    Link: https://lore.kernel.org/r/20220713102013.367336-1-windhl@126.com
    Signed-off-by: Mark Brown
    Signed-off-by: Sasha Levin

    Liang He
     
  • [ Upstream commit c0fabd12a8570cb932f13d9388f3d887ad44369b ]

    The DSD/PDM rate not only DSD64/128/256/512, which are the
    multiple rate of 44.1kHz, but also support the multiple
    rate of 8kHz, so can't force all mclk frequency to be
    22579200Hz, need to assign the frequency according to
    rate.

    Fixes: aa736700f42f ("ASoC: imx-card: Add imx-card machine driver")
    Signed-off-by: Shengjiu Wang
    Link: https://lore.kernel.org/r/1657100575-8261-1-git-send-email-shengjiu.wang@nxp.com
    Signed-off-by: Mark Brown
    Signed-off-by: Sasha Levin

    Shengjiu Wang
     
  • [ Upstream commit f507c0c67dac57d2bcd5dcae4b6139b0305d8957 ]

    We should call of_node_put() for the reference 'dsp_of_node' returned by
    of_parse_phandle() which will increase the refcount.

    Fixes: 9bae4880acee ("ASoC: qcom: move ipq806x specific bits out of lpass driver.")
    Co-authored-by: Miaoqian Lin
    Signed-off-by: Liang He
    Link: https://lore.kernel.org/r/20220702020109.263980-1-windhl@126.com
    Signed-off-by: Mark Brown
    Signed-off-by: Sasha Levin

    Liang He
     
  • [ Upstream commit d2294461b90e0c5b3bbfaaf2c8baff4fd3e2bb13 ]

    sparse reports
    sound/soc/samsung/rx1950_uda1380.c:131:18: warning: symbol 'gpiod_speaker_power' was not declared. Should it be static?
    sound/soc/samsung/rx1950_uda1380.c:231:24: warning: symbol 'rx1950_audio' was not declared. Should it be static?

    Both gpiod_speaker_power and rx1950_audio are only used in rx1950_uda1380.c,
    so their storage class specifiers should be static.

    Fixes: 83d74e354200 ("ASoC: samsung: rx1950: turn into platform driver")
    Signed-off-by: Tom Rix
    Reviewed-by: Krzysztof Kozlowski
    Link: https://lore.kernel.org/r/20220629185345.910406-1-trix@redhat.com
    Signed-off-by: Mark Brown
    Signed-off-by: Sasha Levin

    Tom Rix
     
  • [ Upstream commit bd10b0dafdcf0ec1677cad70101e1f97b9e28f2e ]

    h1940_uda1380 uses gpiod*/GPIOD* so it should include GPIO consumer
    header.

    Fixes: 9666e27f90b9 ("ASoC: samsung: h1940: turn into platform driver")
    Signed-off-by: Krzysztof Kozlowski
    Link: https://lore.kernel.org/r/20220627141900.470469-1-krzysztof.kozlowski@linaro.org
    Signed-off-by: Mark Brown
    Signed-off-by: Sasha Levin

    Krzysztof Kozlowski
     
  • [ Upstream commit 2fbe0953732e06b471cdedbf6f615b84235580d8 ]

    move all the digital gains form using SX_TLV to S8_TLV, these gains are
    actually 8 bit gains with 7th signed bit and ranges from -84dB to +40dB

    rest of the Qualcomm wcd codecs uses these properly.

    Fixes: 8c4f021d806a ("ASoC: wcd9335: add basic controls")
    Signed-off-by: Srinivas Kandagatla
    Link: https://lore.kernel.org/r/20220609111901.318047-3-srinivas.kandagatla@linaro.org
    Signed-off-by: Mark Brown
    Signed-off-by: Sasha Levin

    Srinivas Kandagatla
     
  • [ Upstream commit 5babb012c847beb6c8c7108fd78f650b7a2c6054 ]

    move all the digital gains form using SX_TLV to S8_TLV, these gains are
    actually 8 bit gains with 7th signed bit and ranges from -84dB to +40dB

    rest of the Qualcomm wcd codecs uses these properly.

    Fixes: ef8a4757a6db ("ASoC: msm8916-wcd-digital: Add sidetone support")
    Fixes: 150db8c5afa1 ("ASoC: codecs: Add msm8916-wcd digital codec")
    Signed-off-by: Srinivas Kandagatla
    Link: https://lore.kernel.org/r/20220609111901.318047-2-srinivas.kandagatla@linaro.org
    Signed-off-by: Mark Brown
    Signed-off-by: Sasha Levin

    Srinivas Kandagatla
     
  • [ Upstream commit efe2178d1a32492f99e7f1f2568eea5c88a85729 ]

    of_parse_phandle() returns a node pointer with refcount
    incremented, we should use of_node_put() on it when not need anymore.
    Fix refcount leak in some error paths.

    Fixes: 0f83f9296d5c ("ASoC: mediatek: Add machine driver for ALC5650 codec")
    Signed-off-by: Miaoqian Lin
    Link: https://lore.kernel.org/r/20220603124243.31358-1-linmq006@gmail.com
    Signed-off-by: Mark Brown
    Signed-off-by: Sasha Levin

    Miaoqian Lin
     
  • [ Upstream commit 82fa8f581a954ddeec1602bed9f8b4a09d100e6e ]

    As i2c_add_driver could return error if fails, it should be
    better to check the return value.
    However, if the CONFIG_I2C and CONFIG_SPI_MASTER are both true,
    the return value of i2c_add_driver will be covered by
    spi_register_driver.
    Therefore, it is necessary to add check and return error if fails.

    Fixes: aa0e25caafb7 ("ASoC: da7210: Add support for spi regmap")
    Signed-off-by: Jiasheng Jiang
    Link: https://lore.kernel.org/r/20220531094712.2376759-1-jiasheng@iscas.ac.cn
    Signed-off-by: Mark Brown
    Signed-off-by: Sasha Levin

    Jiasheng Jiang
     
  • [ Upstream commit 7472eb8d7dd12b6b9b1a4f4527719cc9c7f5965f ]

    of_parse_phandle() returns a node pointer with refcount
    incremented, we should use of_node_put() on it when not need anymore.
    Add missing of_node_put() to avoid refcount leak.

    Fixes: f0ab0bf250da ("ASoC: add mt6797-mt6351 driver and config option")
    Signed-off-by: Miaoqian Lin
    Link: https://lore.kernel.org/r/20220603083417.9011-1-linmq006@gmail.com
    Signed-off-by: Mark Brown
    Signed-off-by: Sasha Levin

    Miaoqian Lin
     
  • [ Upstream commit ae4f11c1ed2d67192fdf3d89db719ee439827c11 ]

    of_parse_phandle() returns a node pointer with refcount
    incremented, we should use of_node_put() on it when not need anymore.
    Fix missing of_node_put() in error paths.

    Fixes: 94319ba10eca ("ASoC: mediatek: Use platform_of_node for machine drivers")
    Signed-off-by: Miaoqian Lin
    Link: https://lore.kernel.org/r/20220602034144.60159-1-linmq006@gmail.com
    Signed-off-by: Mark Brown
    Signed-off-by: Sasha Levin

    Miaoqian Lin
     
  • [ Upstream commit 2f4a8171da06609bb6a063630ed546ee3d93dad7 ]

    Change the of_device_get_match_data() cast to (uintptr_t)
    to silence the following clang warning:

    sound/soc/fsl/imx-audmux.c:301:16: warning: cast to smaller integer type 'enum imx_audmux_type' from 'const void *' [-Wvoid-pointer-to-enum-cast]

    Reported-by: kernel test robot
    Fixes: 6a8b8b582db1 ("ASoC: imx-audmux: Remove unused .id_table")
    Signed-off-by: Fabio Estevam
    Link: https://lore.kernel.org/r/20220526010543.1164793-1-festevam@gmail.com
    Signed-off-by: Mark Brown
    Signed-off-by: Sasha Levin

    Fabio Estevam
     
  • [ Upstream commit 3e2649c5e8643bea0867bb1dd970fedadb0eb7f3 ]

    of_get_child_by_name() returns a node pointer with refcount
    incremented, we should use of_node_put() on it when not need anymore.
    This function is missing of_node_put(cpu) in the error path.
    Fix this by goto out label. of_node_put() will check NULL pointer.

    Fixes: 7a3a7671fa6c ("ASoC: samsung: Add driver for Aries boards")
    Signed-off-by: Miaoqian Lin
    Reviewed-by: Krzysztof Kozlowski
    Link: https://lore.kernel.org/r/20220603130640.37624-1-linmq006@gmail.com
    Signed-off-by: Mark Brown
    Signed-off-by: Sasha Levin

    Miaoqian Lin
     
  • [ Upstream commit 0a034d93ee929a9ea89f3fa5f1d8492435b9ee6e ]

    of_parse_phandle() returns a node pointer with refcount
    incremented, we should use of_node_put() on it when not need anymore.
    Add missing of_node_put() to avoid refcount leak.

    Fixes: b6bc07d4360d ("ASoC: cros_ec_codec: support WoV")
    Signed-off-by: Miaoqian Lin
    Reviewed-by: Tzung-Bi Shih
    Reviewed-by: Guenter Roeck
    Link: https://lore.kernel.org/r/20220603131043.38907-1-linmq006@gmail.com
    Signed-off-by: Mark Brown
    Signed-off-by: Sasha Levin

    Miaoqian Lin
     

03 Aug, 2022

1 commit

  • The purpose of this change is to make the display of the timestamp
    during a compressed stream possible. This is done by simply
    computing the number of decompressed frames by
    dividing the number of decompressed bytes (the dai posn)
    by the product of the channel count and sample bytes.

    Signed-off-by: Laurentiu Mihalcea
    Signed-off-by: Daniel Baluta

    Laurentiu Mihalcea