07 Jan, 2015

2 commits


05 Jan, 2015

2 commits

  • stac_store_hints() does utterly wrong for masking the values for
    gpio_dir and gpio_data, likely due to copy&paste errors. Fortunately,
    this feature is used very rarely, so the impact must be really small.

    Reported-by: Rasmus Villemoes
    Cc:
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • Commit 897c329bc ("ALSA: usb: caiaq: check for cdev->n_streams > 1")
    introduced a safety check to protect against bogus data provided by
    devices. However, the n_streams variable is already divided by
    CHANNELS_PER_STREAM, so the correct check is 'n_streams > 0'.

    Fix this to un-break support for stereo devices.

    Signed-off-by: Daniel Mack
    Cc: stable@kernel.org [v3.18+]
    Signed-off-by: Takashi Iwai

    Daniel Mack
     

30 Dec, 2014

1 commit


26 Dec, 2014

2 commits

  • The total stream number of Skylake's input and output stream
    exceeds 15, which will cause some streams do not work because
    of the overflow on SDxCTL.STRM field if using the legacy
    stream tag allocation method.

    This patch uses the new stream tag allocation method by add
    the flag AZX_DCAPS_SEPARATE_STREAM_TAG for Skylake platform.

    Signed-off-by: Libin Yang
    Reviewed-by: Vinod Koul
    Signed-off-by: Takashi Iwai

    Libin Yang
     
  • Implemented separate stream_tag assignment for input and output streams.
    According to hda specification stream tag must be unique throughout the
    input streams group, however an output stream might use a stream tag
    which is already in use by an input stream. This change is necessary
    to support HW which provides a total of more than 15 stream DMA engines
    which with legacy implementation causes an overflow on SDxCTL.STRM
    field (and the whole SDxCTL register) and as a result usage of
    Reserved value 0 in the SDxCTL.STRM field which confuses HDA controller.

    Signed-off-by: Rafal Redzimski
    Signed-off-by: Jayachandran B
    Signed-off-by: Libin Yang
    Reviewed-by: Vinod Koul
    Signed-off-by: Takashi Iwai

    Rafal Redzimski
     

24 Dec, 2014

6 commits


22 Dec, 2014

5 commits

  • snd_soc_sst_bytcr_dpcm_rt5640 doesn't autoload because MODULE_ALIAS doesn't
    match with "bytt100_rt5640" platform device.

    Signed-off-by: Jarkko Nikula
    Cc: Subhransu S. Prusty
    Signed-off-by: Mark Brown

    Jarkko Nikula
     
  • BYTCR DSP firmware is in intel/ subdirectory. See linux-firmware.git
    commit d562a3b63632 ("linux-firmware: add sst audio firmware for baytrail
    platforms").

    Signed-off-by: Jarkko Nikula
    Signed-off-by: Mark Brown

    Jarkko Nikula
     
  • The Designware core can be configured with up to four stereo channels.
    Each stereo channel is individually configured so, when the driver's
    hw_params call is made, each requested stereo channel has to be
    programmed.

    Signed-off-by: Andrew Jackson
    Signed-off-by: Mark Brown

    Andrew Jackson
     
  • Flush the FIFOs when the stream is prepared for use. This avoids
    an inadvertent swapping of the left/right channels if the FIFOs are
    not empty at startup.

    Signed-off-by: Andrew Jackson
    Signed-off-by: Mark Brown
    Cc: stable@vger.kernel.org

    Andrew Jackson
     
  • Fix following build error when CONFIG_I2C is not enabled:

    sound/soc/codecs/rt5640.c:2252:1: warning: data definition has no type or storage class
    module_i2c_driver(rt5640_i2c_driver);
    ^
    sound/soc/codecs/rt5640.c:2252:1: error: type defaults to ‘int’ in declaration of ‘module_i2c_driver’ [-Werror=implicit-int]
    sound/soc/codecs/rt5640.c:2252:1: warning: parameter names (without types) in function declaration
    sound/soc/codecs/rt5640.c:2241:26: warning: ‘rt5640_i2c_driver’ defined but not used [-Wunused-variable]
    static struct i2c_driver rt5640_i2c_driver = {
    ^
    cc1: some warnings being treated as errors

    Signed-off-by: Jarkko Nikula
    Reported-by: Randy Dunlap
    Acked-by: Randy Dunlap
    Signed-off-by: Mark Brown

    Jarkko Nikula
     

21 Dec, 2014

1 commit

  • Pull CONFIG_PM_RUNTIME elimination from Rafael Wysocki:
    "This removes the last few uses of CONFIG_PM_RUNTIME introduced
    recently and makes that config option finally go away.

    CONFIG_PM will be available directly from the menu now and also it
    will be selected automatically if CONFIG_SUSPEND or CONFIG_HIBERNATION
    is set"

    * tag 'pm-config-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
    PM: Eliminate CONFIG_PM_RUNTIME
    tty: 8250_omap: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    sound: sst-haswell-pcm: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    spi: Replace CONFIG_PM_RUNTIME with CONFIG_PM

    Linus Torvalds
     

20 Dec, 2014

1 commit

  • Pull sound fixes from Takashi Iwai:
    "Here are a few fixes that have landed after the previous pull request.
    All are driver specific fixes including:

    - error/int value fixes in OXFW,
    - Intel Skylake HD-audio HDMI codec support,
    - Additional HD-audio Realtek codecs and AD1986A codec fixes/quirks,
    - a few more DSD support and a quirk for Arcam rPAC in usb-audio,
    - a typo fix for Scarlett 6i6,
    - fixes for new ASIHPI firmware,
    - ASoC Exynos7 cleanups,
    - Intel ACPI support, and
    - a fix for PCM512 register cache sync"

    * tag 'sound-fix-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (24 commits)
    ALSA: usb-audio: extend KEF X300A FU 10 tweak to Arcam rPAC
    ALSA: hda/realtek - New codec support for ALC298
    ALSA: asihpi: update to HPI version 4.14
    ALSA: asihpi: increase tuner pad cache size
    ALSA: asihpi: relax firmware version check
    ALSA: usb-audio: Fix Scarlett 6i6 initialization typo
    ALSA: hda - Add quirk for Packard Bell EasyNote MX65
    ALSA: usb-audio: add native DSD support for Matrix Audio DACs
    ALSA: hda/realtek - New codec support for ALC256
    ALSA: hda/realtek - Add new Dell desktop for ALC3234 headset mode
    ASoC: Intel: fix possible acpi enumeration panic
    ALSA: hda/hdmi - apply Haswell fix-ups to Skylake display codec
    ASoC: Intel: fix return value check in sst_acpi_probe()
    ALSA: hda - Make add_stereo_mix_input flag tristate
    ALSA: hda - Create capture source ctls when stereo mix input is added
    ALSA: hda - Fix typos in snd_hda_get_int_hint() kerneldoc comments
    ALSA: hda - add codec ID for Skylake display audio codec
    ALSA: oxfw: some signedness bugs
    ALSA: oxfw: fix detect_loud_models() return value
    ASoC: rt5677: add REGMAP_I2C and REGMAP_IRQ dependency
    ...

    Linus Torvalds
     

19 Dec, 2014

5 commits

  • The sst-haswell-pcm driver is a new user of CONFIG_PM_RUNTIME.

    However, after commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if
    PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so
    #ifdef blocks depending on CONFIG_PM_RUNTIME may now be changed to
    depend on CONFIG_PM.

    Replace CONFIG_PM_RUNTIME with CONFIG_PM in
    sound/soc/intel/sst-haswell-pcm.c.

    Signed-off-by: Rafael J. Wysocki
    Acked-by: Mark Brown

    Rafael J. Wysocki
     
  • This reverts commit f8781db8aeb18d (ASoC: dapm: Augment existing card
    DAPM routes in snd_soc_of_parse_audio_routing) since it is broken for
    deferred probing as it ends up storing data allocated with devm_ over
    multiple instantiations of the device.

    Reported-by: Russell King
    Tested-by: Russell King
    Signed-off-by: Mark Brown

    Mark Brown
     
  • Pull more ACPI and power management updates from Rafael Wysocki:
    "These are regression fixes (leds-gpio, ACPI backlight driver,
    operating performance points library, ACPI device enumeration
    messages, cpupower tool), other bug fixes (ACPI EC driver, ACPI device
    PM), some cleanups in the operating performance points (OPP)
    framework, continuation of CONFIG_PM_RUNTIME elimination, a couple of
    minor intel_pstate driver changes, a new MAINTAINERS entry for it and
    an ACPI fan driver change needed for better support of thermal
    management in user space.

    Specifics:

    - Fix a regression in leds-gpio introduced by a recent commit that
    inadvertently changed the name of one of the properties used by the
    driver (Fabio Estevam).

    - Fix a regression in the ACPI backlight driver introduced by a
    recent fix that missed one special case that had to be taken into
    account (Aaron Lu).

    - Drop the level of some new kernel messages from the ACPI core
    introduced by a recent commit to KERN_DEBUG which they should have
    used from the start and drop some other unuseful KERN_ERR messages
    printed by ACPI (Rafael J Wysocki).

    - Revert an incorrect commit modifying the cpupower tool (Prarit
    Bhargava).

    - Fix two regressions introduced by recent commits in the OPP library
    and clean up some existing minor issues in that code (Viresh
    Kumar).

    - Continue to replace CONFIG_PM_RUNTIME with CONFIG_PM throughout the
    tree (or drop it where that can be done) in order to make it
    possible to eliminate CONFIG_PM_RUNTIME (Rafael J Wysocki, Ulf
    Hansson, Ludovic Desroches).

    There will be one more "CONFIG_PM_RUNTIME removal" batch after this
    one, because some new uses of it have been introduced during the
    current merge window, but that should be sufficient to finally get
    rid of it.

    - Make the ACPI EC driver more robust against race conditions related
    to GPE handler installation failures (Lv Zheng).

    - Prevent the ACPI device PM core code from attempting to disable
    GPEs that it has not enabled which confuses ACPICA and makes it
    report errors unnecessarily (Rafael J Wysocki).

    - Add a "force" command line switch to the intel_pstate driver to
    make it possible to override the blacklisting of some systems in
    that driver if needed (Ethan Zhao).

    - Improve intel_pstate code documentation and add a MAINTAINERS entry
    for it (Kristen Carlson Accardi).

    - Make the ACPI fan driver create cooling device interfaces witn
    names that reflect the IDs of the ACPI device objects they are
    associated with, except for "generic" ACPI fans (PNP ID "PNP0C0B").

    That's necessary for user space thermal management tools to be able
    to connect the fans with the parts of the system they are supposed
    to be cooling properly. From Srinivas Pandruvada"

    * tag 'pm+acpi-3.19-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (32 commits)
    MAINTAINERS: add entry for intel_pstate
    ACPI / video: update the skip case for acpi_video_device_in_dod()
    power / PM: Eliminate CONFIG_PM_RUNTIME
    NFC / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    SCSI / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    ACPI / EC: Fix unexpected ec_remove_handlers() invocations
    Revert "tools: cpupower: fix return checks for sysfs_get_idlestate_count()"
    tracing / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    x86 / PM: Replace CONFIG_PM_RUNTIME in io_apic.c
    PM: Remove the SET_PM_RUNTIME_PM_OPS() macro
    mmc: atmel-mci: use SET_RUNTIME_PM_OPS() macro
    PM / Kconfig: Replace PM_RUNTIME with PM in dependencies
    ARM / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    sound / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    phy / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    video / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    tty / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    spi: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    ACPI / PM: Do not disable wakeup GPEs that have not been enabled
    ACPI / utils: Drop error messages from acpi_evaluate_reference()
    ...

    Linus Torvalds
     
  • The Arcam rPAC seems to have the same problem - whenever anything
    (alsamixer, udevd, 3.9+ kernel from 60af3d037eb8c, ..) attempts to
    access mixer / control interface of the card, the firmware "locks up"
    the entire device, resulting in
    SNDRV_PCM_IOCTL_HW_PARAMS failed (-5): Input/output error
    from alsa-lib.

    Other operating systems can somehow read the mixer (there seems to be
    playback volume/mute), but any manipulation is ignored by the device
    (which has hardware volume controls).

    Cc:
    Signed-off-by: Jiri Jaburek
    Signed-off-by: Takashi Iwai

    Jiri Jaburek
     
  • Add new support for ALC298 codec.

    Signed-off-by: Kailang Yang
    Cc:
    Signed-off-by: Takashi Iwai

    Kailang Yang
     

18 Dec, 2014

6 commits


17 Dec, 2014

3 commits


16 Dec, 2014

4 commits


15 Dec, 2014

2 commits