08 Jan, 2010

1 commit

  • The patch "sbawe: fix memory detection" fixed detection
    for memoryless SB32 cards but broke detection of memory
    above 512KB. This patch fixes the regression.

    The patch has been tested on the SB32 card (CT3670) with
    0MB, 2MB and 8MB memory installed.

    Signed-off-by: Krzysztof Helt
    Signed-off-by: Jaroslav Kysela

    Krzysztof Helt
     

21 Dec, 2009

1 commit

  • Memory amount is increased before a successful write-read
    sequence is done. Thus, 512 kB of onboard memory is detected
    on memoryless cards like SB32.

    Move the increasing of memory counter after successful read
    is done.

    Signed-off-by: Krzysztof Helt
    Signed-off-by: Takashi Iwai

    Krzysztof Helt
     

19 Dec, 2009

1 commit


15 Dec, 2009

1 commit


14 Dec, 2009

1 commit

  • sizeof(share_id) is just the size of the pointer. On the other hand,
    block->share_id is an array, so its size seems more appropriate.

    A simplified version of the semantic patch that finds this problem is as
    follows: (http://coccinelle.lip6.fr/)

    //
    @@
    expression *x;
    expression f;
    type T;
    @@

    *f(...,(T)x,...)
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Takashi Iwai

    Julia Lawall
     

13 Dec, 2009

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
    ALSA: hda - Overwrite pin config on intel DG45ID board.
    intelhdmi - dont power off HDA link
    ALSA: hrtimer - Fix lock-up
    ALSA: intelhdmi - add channel mapping for typical configurations
    ALSA: intelhdmi - channel mapping applies to Pin
    ALSA: intelhdmi - accept DisplayPort pin
    ALSA: hda - show HBR(High Bit Rate) pin cap in procfs
    ALSA: hda - Fix LED GPIO setup for HP laptops with IDT codecs
    ASoC: Fix build of OMAP sound drivers
    ALSA: opti93x: fix irq releasing if the irq cannot be allocated

    Linus Torvalds
     

10 Dec, 2009

3 commits

  • Use the chip->irq to check if the irq should be released so the irq is not released
    if it has not been allocated.

    Signed-off-by: Krzysztof Helt
    Signed-off-by: Takashi Iwai

    Krzysztof Helt
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
    ALSA: ice1724 - aureon - modify WM8770 Master & DAC volume
    ALSA: hda/realtek: quirk for D945GCLF2 mainboard
    ALSA: hda - Terradici HDA controllers does not support 64-bit mode
    ALSA: document: Add direct git link to grub hda-analyzer
    ALSA: radio/sound/miro: fix build, cleanup depends/selects
    ALSA: hda - Generalize EAPD inversion check in patch_analog.c
    ASoC: Wrong variable returned on error
    ALSA: snd-usb-us122l: add product IDs of US-122MKII and US-144MKII
    ALSA: hda - Exclude unusable ADCs for ALC88x
    ALSA: hda - Add missing Line-Out and PCM switches as slave
    ALSA: hda - iMac 9,1 sound patch.
    ALSA: opti93x: set MC indirect registers base from PnP data

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (42 commits)
    tree-wide: fix misspelling of "definition" in comments
    reiserfs: fix misspelling of "journaled"
    doc: Fix a typo in slub.txt.
    inotify: remove superfluous return code check
    hdlc: spelling fix in find_pvc() comment
    doc: fix regulator docs cut-and-pasteism
    mtd: Fix comment in Kconfig
    doc: Fix IRQ chip docs
    tree-wide: fix assorted typos all over the place
    drivers/ata/libata-sff.c: comment spelling fixes
    fix typos/grammos in Documentation/edac.txt
    sysctl: add missing comments
    fs/debugfs/inode.c: fix comment typos
    sgivwfb: Make use of ARRAY_SIZE.
    sky2: fix sky2_link_down copy/paste comment error
    tree-wide: fix typos "couter" -> "counter"
    tree-wide: fix typos "offest" -> "offset"
    fix kerneldoc for set_irq_msi()
    spidev: fix double "of of" in comment
    comment typo fix: sybsystem -> subsystem
    ...

    Linus Torvalds
     

08 Dec, 2009

1 commit


04 Dec, 2009

2 commits


03 Dec, 2009

1 commit


30 Nov, 2009

2 commits


27 Nov, 2009

1 commit

  • If a hardware is not detected there is a kernel crash
    due to not initialized snd_miro->aci pointer. This pointer
    is initialized after detection of the opti (miro) chip.

    This bug was introduced by patches to expose
    ACI mikser outside the snd-miro driver.

    Signed-off-by: Krzysztof Helt
    Signed-off-by: Takashi Iwai

    Krzysztof Helt
     

23 Nov, 2009

2 commits


22 Nov, 2009

1 commit


19 Nov, 2009

1 commit


18 Nov, 2009

3 commits


08 Nov, 2009

1 commit

  • 1. Set the third argument of the snd_device_new to not NULL, so there is
    no warning about bug during chip detection. The third argument is not
    used in this driver. It was changed in my previous patch.

    2. Remove the fm_port and mpu_port fields from the snd_es18xx structure.
    They can be converted to function arguments.

    3. Remove the dmaN_size fields from the snd_es18xx structure. These
    values are used only in pointer functions and can be easily calculated.

    4. Remove the ctrl_lock spinlock which is used only in one read function
    which is called once during chip initialization. There are many
    writes to the same register and they are not protected on purpose
    (see the comment ina the snd_es18xx_config_write()).

    5. Use the first part of the text5Sources string table as the text4Soruces
    table (they are the same).

    6. Merge the same cases for the ES1887 and ES1888 when setting chip's caps.

    7. Move the snd_es18xx_reset() to __devinit section.

    Signed-off-by: Krzysztof Helt
    Signed-off-by: Takashi Iwai

    Krzysztof Helt
     

06 Nov, 2009

1 commit

  • The cs4236 was two step detection with call to the snd_wss_free()
    between two steps. The snd_wss_free() did not free a sound device
    created in the snd_wss_create(). This caused an OOPS during module
    removal as the same sound device was released twice. The same OOPS
    happened if the cs4236 module loading failed.

    Fix this by adapting the snd_cs4236_create() to correctly work with
    chips less capable then cs4236. The snd_cs4236_create() behaves the
    same as the snd_wss_create() if the chip is less capable than the cs4236.

    Signed-off-by: Krzysztof Helt
    Signed-off-by: Takashi Iwai

    Krzysztof Helt
     

05 Nov, 2009

1 commit

  • To avoid confusion in control names for the standard analog PC Beep generator
    using a small Internal PC Speaker, rename all related "PC Speaker" and "PC
    Beep" controls to "Beep" only. This name is more universal and can be also
    used on more platforms without confusion.

    Introduce also "Internal Speaker" in ControlNames.txt for systems with
    full-featured build-in internal speaker.

    Signed-off-by: Jaroslav Kysela
    Signed-off-by: Takashi Iwai

    Jaroslav Kysela
     

30 Oct, 2009

2 commits


12 Oct, 2009

1 commit


10 Oct, 2009

2 commits


06 Oct, 2009

2 commits


04 Oct, 2009

1 commit


01 Oct, 2009

1 commit


28 Sep, 2009

1 commit


10 Sep, 2009

1 commit


19 Jul, 2009

1 commit

  • If spin_lock_irqsave is called twice in a row with the same second
    argument, the interrupt state at the point of the second call overwrites
    the value saved by the first call. Indeed, the second call does not need
    to save the interrupt state, so it is changed to a simple spin_lock.

    The semantic match that finds this problem is as follows:
    (http://www.emn.fr/x-info/coccinelle/)

    //
    @@
    expression lock1,lock2;
    expression flags;
    @@

    *spin_lock_irqsave(lock1,flags)
    ... when != flags
    *spin_lock_irqsave(lock2,flags)
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Takashi Iwai

    Julia Lawall
     

08 Jul, 2009

1 commit

  • Adding MPU-401 support to cmi8330 driver could cause a regression (non-working
    sound) on a system where there is no free IRQ for the MPU-401 device (which
    is not very uncommon as this card requires two separate IRQs plus a third one
    for MPU-401).

    When MPU-401 PnP configuration fails (mostly because of unavailable IRQ), just
    ignore MPU-401 and continue without it.

    Signed-off-by: Ondrej Zary
    Signed-off-by: Takashi Iwai

    Ondrej Zary
     

07 Jul, 2009

1 commit

  • My CMI8329 had OPL3 port specified in SB16 resources. But now I found out that
    it was my modification of the card's PnP EEPROM a couple of years ago (can be
    done using C9SETROM.EXE utility). I did it because the OPL3 port was
    completely missing from PnP data. It seems to be hardwired to 0x388 on
    CMI8329.

    Find OPL3 port automatically by searching in WSS and SB16 resources. If not
    found, assume that it's hardwired to 0x388.

    Signed-off-by: Ondrej Zary
    Signed-off-by: Takashi Iwai

    Ondrej Zary