08 Aug, 2011

3 commits


07 Aug, 2011

1 commit

  • Use kzalloc rather than kmalloc followed by memset with 0

    This considers some simple cases that are common and easy to validate
    Note in particular that there are no ...s in the rule, so all of the
    matched code has to be contiguous

    The semantic patch that makes this output is available
    in scripts/coccinelle/api/alloc/kzalloc-simple.cocci.

    More information about semantic patching is available at
    http://coccinelle.lip6.fr/

    Signed-off-by: Thomas Meyer
    Signed-off-by: Takashi Iwai

    Thomas Meyer
     

06 Aug, 2011

2 commits


05 Aug, 2011

3 commits


04 Aug, 2011

6 commits


02 Aug, 2011

2 commits


01 Aug, 2011

1 commit


30 Jul, 2011

1 commit


29 Jul, 2011

4 commits

  • 552d1ef6b5a98d7b95959d5b139071e3c90cebf1 [ASoC: core - Optimise and refactor
    pcm_new() to pass only rtd] breaks compilation of txx9aclc.c:

    CC [M] sound/soc/txx9/txx9aclc.o
    /home/ralf/src/linux/linux-mips/sound/soc/txx9/txx9aclc.c: In function 'txx9aclc_pcm_new':
    /home/ralf/src/linux/linux-mips/sound/soc/txx9/txx9aclc.c:318:3: error: 'card' undeclared (first use in this function)
    /home/ralf/src/linux/linux-mips/sound/soc/txx9/txx9aclc.c:318:3: note: each undeclared identifier is reported only once for each function it appears in
    make[5]: *** [sound/soc/txx9/txx9aclc.o] Error 1

    Fixed by providing a definition for card.

    Signed-off-by: Ralf Baechle
    Signed-off-by: Takashi Iwai

    Ralf Baechle
     
  • Apparently, there are multiple old firmware revisions in the wild for
    the PCI RME MADI cards. Just add them to the list of supported devices
    and treat them like their modern counterparts.

    Signed-off-by: Adrian Knoth
    Signed-off-by: Takashi Iwai

    Adrian Knoth
     
  • In slave mode, the card can only detect the base frequency (32..48kHz)
    on the MADI link (exception: 96k frames), so the real external sample
    rate is this base frequency multiplied by 1, 2 or 4 depending on the
    speed mode.

    This patch enables 64..192kHz sample rates in clock slave mode, which
    failed before due to an alleged sample rate mismatch between the MADI
    link (e.g., 48kHz) and the application in DS/QS mode (e.g., 96kHz,
    192kHz).

    Signed-off-by: Adrian Knoth
    Signed-off-by: Takashi Iwai

    Adrian Knoth
     
  • When running in slave mode (no clock master), there is no way to
    determine the real wirespeed on the MADI link (single/double/quad
    speed). Like physical gear, simply provide the user with a tristate
    switch to select the appropriate format.

    Signed-off-by: Adrian Knoth
    Signed-off-by: Takashi Iwai

    Adrian Knoth
     

28 Jul, 2011

2 commits


27 Jul, 2011

5 commits


26 Jul, 2011

8 commits

  • Takashi Iwai
     
  • This update includes the changes necessary for supporting the
    CS421x family of codecs. Previously this file only supported
    the CS420x family of codecs.

    This file also contains init verbs to correct several issues in
    the CS421x hardware.

    Behavior between the CS421x and CS420x codec families is similar,
    so several functions have been reused with "if" statements to
    determine which codec family (CS421x or CS420x) is present.

    Also, this file will be updated sometime in the near future in
    order to add support for a system using CS421x that requires
    mono mix on the speaker output only.

    [Fix const usages and adaption for new APIs by tiwai]

    Signed-off-by: Tim Howe
    Signed-off-by: Takashi Iwai

    Tim Howe
     
  • Move the macros depending on snd_mask_min() and co out of pcm.h into
    pcm_params.h. Otherwise using some params_*() macros will give comiple
    errors without inclusion of pcm_params.h.

    Also use hw_param_interval_c() and hw_param_mask_c() for const pointer.

    Reported-by: Tim Blechmann
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • The procedure for codec D-state change may have exceptional cases
    depending on the codec chip, such as a longer delay or suppressing D3.

    This patch adds a new codec ops, set_power_state() to override the system
    default function. For ease of porting, snd_hda_codec_set_power_to_all()
    helper function is extracted from the default set_power_state() function.

    As an example, the Conexant codec-specific delay is removed from the
    default routine but moved to patch_conexant.c.

    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • Add a new ops, post_suspend(), which is called after suspend() ops is
    performed. This is called only in the case of the real PM suspend, and
    the codec driver can use this for further changing of D-state or
    clearing the LED, etc.

    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • It makes little sense to enable power-saving without PM.
    This removes SND_HDA_NEEDS_RESUME define so that we can use CONFIG_PM
    in all places.

    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • This patch adds checking of mute state on all outputs besides just
    speakers to calculate the master mute state for mute led support.
    It also renames and splits the function that does it for better code
    clarity.

    Signed-off-by: Vitaliy Kulikov
    Signed-off-by: Takashi Iwai

    Vitaliy Kulikov
     
  • Codec state is not restored immediately on resume but on the first
    access when power-save is enabled. That leads to an invalid mute led
    state after resume until either sound is played or some control is
    changed. This patch adds a possibility for a vendor specific patch to
    restore codec state immediately after resume if required. And it adds
    code to restore IDT codecs state immediately on resume on HP systems
    with mute led support.

    Signed-off-by: Vitaliy Kulikov
    Signed-off-by: Takashi Iwai

    Vitaliy Kulikov
     

25 Jul, 2011

1 commit


24 Jul, 2011

1 commit