17 Aug, 2015

1 commit

  • commit 412efa73dcd3bd03c1838c91e094533a95529039 upstream.

    The usage_count variable was read before it was set to the correct
    value, due to which the firmware load was failing. Because of this
    IPC messages sent to the firmware were timing out causing a delay
    of about 1 second while playing audio from the internal speakers.

    With this patch the usage_count is read after the function call
    pm_runtime_get_sync which will increment the usage_count variable
    and the firmware load is successful and all the IPC messages are
    processed correctly.

    Signed-off-by: Shilpa Sreeramalu
    Signed-off-by: Fang, Yang A
    Signed-off-by: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Shilpa Sreeramalu
     

23 Apr, 2015

1 commit


17 Apr, 2015

1 commit


16 Apr, 2015

1 commit

  • kbuild robot reports following warning:
    "sound/soc/intel/haswell/sst-haswell-ipc.c:2204:1-6:
    WARNING: invalid free of devm_ allocated data"

    As julia explains to me, the memory allocated with devm_kalloc
    is freed automatically on failure of a probe function. So this
    kfree should be removed otherwise the double free will be got in
    error handler path.

    Signed-off-by: Jin Yao
    Signed-off-by: Mark Brown

    Jin Yao
     

13 Apr, 2015

4 commits

  • Mark Brown
     
  • ASoC: Changes for v4.1

    A selection of changes for v4.1 so far. The main things are:

    - Move of jack registration to the card where it belongs.
    - Support for DAPM routes specified by both the machine driver and DT.

    # gpg: Signature made Thu 05 Mar 2015 01:10:27 GMT using RSA key ID 5D5487D0
    # gpg: WARNING: digest algorithm MD5 is deprecated
    # gpg: please see https://gnupg.org/faq/weak-digest-algos.html for more information
    # gpg: Oops: keyid_from_fingerprint: no pubkey
    # gpg: Good signature from "Mark Brown "
    # gpg: aka "Mark Brown "
    # gpg: aka "Mark Brown "
    # gpg: aka "Mark Brown "
    # gpg: aka "Mark Brown "
    # gpg: aka "Mark Brown "

    Mark Brown
     
  • Mark Brown
     
  • sound/soc/intel/haswell/sst-haswell-ipc.c:646:28-29: WARNING: Use ARRAY_SIZE

    Use ARRAY_SIZE instead of dividing sizeof array with sizeof an element

    Semantic patch information:
    This makes an effort to find cases where ARRAY_SIZE can be used such as
    where there is a division of sizeof the array by the sizeof its first
    element or by any indexed element or the element type. It replaces the
    division of the two sizeofs by ARRAY_SIZE.

    Generated by: scripts/coccinelle/misc/array_size.cocci

    CC: Jie Yang
    Signed-off-by: Fengguang Wu
    Signed-off-by: Mark Brown

    kbuild test robot
     

11 Apr, 2015

3 commits


09 Apr, 2015

2 commits


08 Apr, 2015

1 commit


07 Apr, 2015

6 commits


28 Mar, 2015

1 commit


23 Mar, 2015

1 commit

  • During probe, the Baytrail audio driver reports errors such as:

    [44.172040] baytrail-pcm-audio baytrail-pcm-audio: error: invalid DMA engine 0
    [44.172137] baytrail-pcm-audio baytrail-pcm-audio: sst_dma_new failed

    Those error messages are misleading, there is no error since the DMA
    is explicitly not configured for Baytrail.
    Add a test to remove DMA error checks when DMA is not configured
    and return silently.

    Acked-by: Liam Girdwood
    Signed-off-by: Pierre-Louis Bossart
    Signed-off-by: Mark Brown

    Pierre-Louis Bossart
     

19 Mar, 2015

2 commits


18 Mar, 2015

2 commits


17 Mar, 2015

3 commits


16 Mar, 2015

1 commit


13 Mar, 2015

3 commits


11 Mar, 2015

6 commits


07 Mar, 2015

1 commit

  • Details:
    1. Unload all modules on fw_list of dsp when suspend, and reload all
    modules on fw_list when resume.
    2. A DSP expects only one scratch, but hsw_parse_fw_image() allocates
    scratch blocks for each firmware image it parses. Move the allocate function
    sst_block_alloc_scratch() out of hsw_parse_fw_image() to make sure a scratch
    be allocated only after all firmware images be parsed.

    Signed-off-by: Lu, Han
    Signed-off-by: Mark Brown

    Lu, Han