03 Aug, 2011

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
    ALSA: asihpi - Clarify adapter index validity check
    ALSA: asihpi - Don't leak firmware if mem alloc fails
    ALSA: rtctimer.c needs module.h
    ASoC: Fix txx9aclc.c build
    ALSA: hdspm - Add firmware revision 0xcc for RME MADI
    ALSA: hdspm - Fix reported external sample rate on RME MADI and MADIface
    ALSA: hdspm - Provide MADI speed mode selector on RME MADI and MADIface
    ALSA: sound/core/pcm_compat.c: adjust array index

    Linus Torvalds
     

02 Aug, 2011

2 commits


01 Aug, 2011

1 commit


30 Jul, 2011

2 commits

  • * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (430 commits)
    [media] ir-mce_kbd-decoder: include module.h for its facilities
    [media] ov5642: include module.h for its facilities
    [media] em28xx: Fix DVB-C maxsize for em2884
    [media] tda18271c2dd: Fix saw filter configuration for DVB-C @6MHz
    [media] v4l: mt9v032: Fix Bayer pattern
    [media] V4L: mt9m111: rewrite set_pixfmt
    [media] V4L: mt9m111: fix missing return value check mt9m111_reg_clear
    [media] V4L: initial driver for ov5642 CMOS sensor
    [media] V4L: sh_mobile_ceu_camera: fix Oops when USERPTR mapping fails
    [media] V4L: soc-camera: remove soc-camera bus and devices on it
    [media] V4L: soc-camera: un-export the soc-camera bus
    [media] V4L: sh_mobile_csi2: switch away from using the soc-camera bus notifier
    [media] V4L: add media bus configuration subdev operations
    [media] V4L: soc-camera: group struct field initialisations together
    [media] V4L: soc-camera: remove now unused soc-camera specific PM hooks
    [media] V4L: pxa-camera: switch to using standard PM hooks
    [media] NetUP Dual DVB-T/C CI RF: force card hardware revision by module param
    [media] Don't OOPS if videobuf_dvb_get_frontend return NULL
    [media] NetUP Dual DVB-T/C CI RF: load firmware according card revision
    [media] omap3isp: Support configurable HS/VS polarities
    ...

    Fix up conflicts:
    - arch/arm/mach-omap2/board-rx51-peripherals.c:
    cleanup regulator supply definitions in mach-omap2
    vs
    OMAP3: RX-51: define vdds_csib regulator supply
    - drivers/staging/tm6000/tm6000-alsa.c (trivial)

    Linus Torvalds
     
  • rtctimer.c uses interfaces from linux/module.h, so it should
    include that file. This fixes build errors.

    Signed-off-by: Randy Dunlap
    Signed-off-by: Takashi Iwai

    Randy Dunlap
     

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

8 commits

  • Convert array index from the loop bound to the loop index.

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

    //
    @@
    expression e1,e2,ar;
    @@

    for(e1 = 0; e1 < e2; e1++) { }
    //

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

    Julia Lawall
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
    sound: oss: rename local change_bits to avoid powerpc bitsops.h definition
    ALSA: hda - Fix duplicated DAC assignments for Realtek
    ALSA: asihpi - off by one in asihpi_hpi_ioctl()
    ALSA: hda - Fix Oops with Realtek quirks with NULL adc_nids
    ALSA: asihpi - bug fix pa use before init.
    ALSA: hda - Add support for vref-out based mute LED control on IDT codecs

    Linus Torvalds
     
  • Remove empty and useless g_input and s_input ioctls.
    This fixes one fail of v4l2-compliance test.

    Signed-off-by: Ondrej Zary
    Signed-off-by: Mauro Carvalho Chehab

    Ondrej Zary
     
  • Change locking to allow tea575x-radio device to be opened multiple times.

    Signed-off-by: Ondrej Zary
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Ondrej Zary
     
  • Convert radio-sf16fmr2 to use generic TEA575x implementation. Most of the
    driver code goes away as SF16-FMR2 is basically just a TEA5757 tuner
    connected to ISA bus.
    The card can optionally be equipped with PT2254A volume control (equivalent
    of TC9154AP) - the volume setting is completely reworked (with balance control
    added) and tested.

    Signed-off-by: Ondrej Zary
    Acked-by: Takashi Iwai
    Signed-off-by: Mauro Carvalho Chehab

    Ondrej Zary
     
  • Convert tea575x-tuner to use the new V4L2 control framework. Also add
    ext_init() callback that can be used by a card driver for additional
    initialization right before registering the video device (for SF16-FMR2).

    Also embed struct video_device to struct snd_tea575x to simplify the code.

    Signed-off-by: Ondrej Zary
    Acked-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Ondrej Zary
     
  • This collides with powerpc exported functions from bitops.h. Rename the
    local copy in the oss soundblaster mixer and ad1848 driver.

    Signed-off-by: Andy Whitcroft
    Signed-off-by: Takashi Iwai

    Andy Whitcroft
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6: (22 commits)
    ALSA: hda - Cirrus Logic CS421x support
    ALSA: Make pcm.h self-contained
    ALSA: hda - Allow codec-specific set_power_state ops
    ALSA: hda - Add post_suspend patch ops
    ALSA: hda - Make CONFIG_SND_HDA_POWER_SAVE depending on CONFIG_PM
    ALSA: hda - Make sure mute led reflects master mute state
    ALSA: hda - Fix invalid mute led state on resume of IDT codecs
    ASoC: Revert "ASoC: SAMSUNG: Add I2S0 internal dma driver"
    ALSA: hda - Add support of the 4 internal speakers on certain HP laptops
    ALSA: Make snd_pcm_debug_name usable outside pcm_lib
    ALSA: hda - Fix DAC filling for multi-connection pins in Realtek parser
    ASoC: dapm - Add methods to retrieve snd_card and soc_card from dapm context.
    ASoC: SAMSUNG: Add I2S0 internal dma driver
    ASoC: SAMSUNG: Modify I2S driver to support idma
    ASoC: davinci: add missing break statement
    ASoC: davinci: fix codec start and stop functions
    ASoC: dapm - add DAPM macro for external enum widgets
    ASoC: Acknowledge WM8962 interrupts before acting on them
    ASoC: sgtl5000: guide user when regulator support is needed
    ASoC: sgtl5000: refactor registering internal ldo
    ...

    Linus Torvalds
     

27 Jul, 2011

9 commits

  • Copying hp_pins and speaker_pins from line_out_pins may confuse the
    parser, and it can lead to duplicated initializations for the same pin
    with a wrong DAC assignment. The problem appears in 3.0 kernel code.

    Cc: (for 3.0)
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • "adapter" is used as an array index in the adapters[] array so
    the off by one would make us read past the end.

    1c073b67979 "ALSA: asihpi - Remove spurious adapter index check"
    reverted Dan Rosenberg's check that would have prevented the
    overflow here.

    Signed-off-by: Dan Carpenter
    Signed-off-by: Takashi Iwai

    Dan Carpenter
     
  • Somce quirk models don't set adc_nids but let the parser filling it.
    But the recent code has unnecessary NULL-checks of spec->input_mux,
    and it resulted in NULL dereferences.
    This patch fixes that regression.

    Reported-and-tested-by: Oliver Neukum
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • Fixes bug introduced by 1c073b67.
    Also declare pa local to block in which it is used.

    Signed-off-by: Eliot Blennerhassett
    Signed-off-by: Takashi Iwai

    Eliot Blennerhassett
     
  • This patch also registers all necessary callbacks to support mute LED
    only when such control is enabled. And it keeps codec AFG in D0 or D1
    state all the time when aggressive power managemnt is enabled for vref-out
    control (and mute LED) work correctly.

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

    Vitaliy Kulikov
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6:
    merge fchmod() and fchmodat() guts, kill ancient broken kludge
    xfs: fix misspelled S_IS...()
    xfs: get rid of open-coded S_ISREG(), etc.
    vfs: document locking requirements for d_move, __d_move and d_materialise_unique
    omfs: fix (mode & S_IFDIR) abuse
    btrfs: S_ISREG(mode) is not mode & S_IFREG...
    ima: fmode_t misspelled as mode_t...
    pci-label.c: size_t misspelled as mode_t
    jffs2: S_ISLNK(mode & S_IFMT) is pointless
    snd_msnd ->mode is fmode_t, not mode_t
    v9fs_iop_get_acl: get rid of unused variable
    vfs: dont chain pipe/anon/socket on superblock s_inodes list
    Documentation: Exporting: update description of d_splice_alias
    fs: add missing unlock in default_llseek()

    Linus Torvalds
     
  • * 'next/devel2' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc: (47 commits)
    OMAP: Add debugfs node to show the summary of all clocks
    OMAP2+: hwmod: Follow the recommended PRCM module enable sequence
    OMAP2+: clock: allow per-SoC clock init code to prevent clockdomain calls from clock code
    OMAP2+: clockdomain: Add per clkdm lock to prevent concurrent state programming
    OMAP2+: PM: idle clkdms only if already in idle
    OMAP2+: clockdomain: add clkdm_in_hwsup()
    OMAP2+: clockdomain: Add 2 APIs to control clockdomain from hwmod framework
    OMAP: clockdomain: Remove redundant call to pwrdm_wait_transition()
    OMAP4: hwmod: Introduce the module control in hwmod control
    OMAP4: cm: Add two new APIs for modulemode control
    OMAP4: hwmod data: Add modulemode entry in omap_hwmod structure
    OMAP4: hwmod data: Add PRM context register offset
    OMAP4: prm: Remove deprecated functions
    OMAP4: prm: Replace warm reset API with the offset based version
    OMAP4: hwmod: Replace RSTCTRL absolute address with offset macros
    OMAP: hwmod: Wait the idle status to be disabled
    OMAP4: hwmod: Replace CLKCTRL absolute address with offset macros
    OMAP2+: hwmod: Init clkdm field at boot time
    OMAP4: hwmod data: Add clock domain attribute
    OMAP4: clock data: Add missing divider selection for auxclks
    ...

    Linus Torvalds
     
  • This allows us to move duplicated code in
    (atomic_inc_not_zero() for now) to

    Signed-off-by: Arun Sharma
    Reviewed-by: Eric Dumazet
    Cc: Ingo Molnar
    Cc: David Miller
    Cc: Eric Dumazet
    Acked-by: Mike Frysinger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arun Sharma
     
  • we put FMODE_... in there

    Signed-off-by: Al Viro

    Al Viro
     

26 Jul, 2011

10 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
     
  • 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
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (43 commits)
    fs: Merge split strings
    treewide: fix potentially dangerous trailing ';' in #defined values/expressions
    uwb: Fix misspelling of neighbourhood in comment
    net, netfilter: Remove redundant goto in ebt_ulog_packet
    trivial: don't touch files that are removed in the staging tree
    lib/vsprintf: replace link to Draft by final RFC number
    doc: Kconfig: `to be' -> `be'
    doc: Kconfig: Typo: square -> squared
    doc: Konfig: Documentation/power/{pm => apm-acpi}.txt
    drivers/net: static should be at beginning of declaration
    drivers/media: static should be at beginning of declaration
    drivers/i2c: static should be at beginning of declaration
    XTENSA: static should be at beginning of declaration
    SH: static should be at beginning of declaration
    MIPS: static should be at beginning of declaration
    ARM: static should be at beginning of declaration
    rcu: treewide: Do not use rcu_read_lock_held when calling rcu_dereference_check
    Update my e-mail address
    PCIe ASPM: forcedly -> forcibly
    gma500: push through device driver tree
    ...

    Fix up trivial conflicts:
    - arch/arm/mach-ep93xx/dma-m2p.c (deleted)
    - drivers/gpio/gpio-ep93xx.c (renamed and context nearby)
    - drivers/net/r8169.c (just context changes)

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6:
    fs: take the ACL checks to common code
    bury posix_acl_..._masq() variants
    kill boilerplates around posix_acl_create_masq()
    generic_acl: no need to clone acl just to push it to set_cached_acl()
    kill boilerplate around posix_acl_chmod_masq()
    reiserfs: cache negative ACLs for v1 stat format
    xfs: cache negative ACLs if there is no attribute fork
    9p: do no return 0 from ->check_acl without actually checking
    vfs: move ACL cache lookup into generic code
    CIFS: Fix oops while mounting with prefixpath
    xfs: Fix wrong return value of xfs_file_aio_write
    fix devtmpfs race
    caam: don't pass bogus S_IFCHR to debugfs_create_...()
    get rid of create_proc_entry() abuses - proc_mkdir() is there for purpose
    asus-wmi: ->is_visible() can't return negative
    fix jffs2 ACLs on big-endian with 16bit mode_t
    9p: close ACL leaks
    ocfs2_init_acl(): fix a leak
    VFS : mount lock scalability for internal mounts

    Linus Torvalds
     
  • * 'next/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc: (35 commits)
    ARM: msm: platsmp: determine number of CPU cores at boot time
    ARM: Tegra: Seaboard: Fix I2C bus numbering for ADT7461
    ARM: Tegra: Trimslice: Tri-state DAP3 pinmux
    ARM: orion5x: fixup 5181 MPP mask check
    ARM: mxs-dma: include
    ARM: i.MX53: consistently use MX53_UART_PAD_CTRL for uart txd/rxd/rts/cts
    ARM: i.MX53: UARTn_CTS pin should not change RTS input select
    ARM: i.MX53: UARTn_TXD pin should not change RXD input select
    ARM: mx25: Fix typo on CAN1_RX pad setting
    iomux-mx53: add missing 'IOMUX_CONFIG_SION' for some I2C pad definitions
    ARM: NUC93X: add UL suffix to VMALLOC_END to ensure it is properly typed
    ARM: LPC32XXX: add UL suffix to VMALLOC_END to ensure it is properly typed
    ARM: CNS3XXX: add UL suffix to VMALLOC_END to ensure it is properly typed
    ARM: i.MX53: Fix IOMUX type o's
    ARM i.MX dma: Fix burstsize settings
    mach-mx5: fix the I2C clock parents
    ARM: mxs/tx28: according to the TX28's datasheet D4-D7 are not used for MMC0
    ARM i.MX23/28: platform-mxsfb: Add missing include of linux/dma-mapping.h
    ARM: mx53: Fix some interrupts marked as reserved.
    MXC: iomux-v3: correct NO_PAD_CTRL definition
    ...

    Fix up trivial conflict in arch/arm/mach-imx/mach-mx31_3ds.c

    Linus Torvalds
     

25 Jul, 2011

1 commit


24 Jul, 2011

2 commits