07 Jan, 2009

2 commits

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
    ASoC: Fix SND_SOC_ALL_CODECS handling of dual SPI and I2C control buses
    ASoC: Use snd_soc_dapm_nc_pin() in at91sam9g20ek
    ASoC: TWL4030: Convert the bitfield enums to VALUE_ENUM type
    ASoC: New enum type: value_enum
    pxa2xx-ac97: switch AC unit to correct state before probing
    ASoC: Clocking fixes for davinci-evm.c
    ASoC: Mark non-connected TWL4030 pins for pandora
    ASoC: OMAP: Select OMAP pin multiplexing when using Nokia N810 ASoC drivers

    Linus Torvalds
     
  • Several subsystem open handlers dereference the fops_get() return value
    without checking it for nullness. This opens a race condition between the
    open handler and module unloading.

    A module can be marked as being unloaded (MODULE_STATE_GOING) before its
    exit function is called and gets the chance to unregister the driver.
    During that window open handlers can still be called, and fops_get() will
    fail in try_module_get() and return a NULL pointer.

    This change checks the fops_get() return value and returns -ENODEV if NULL.

    Reported-by: Alan Jenkins
    Signed-off-by: Laurent Pinchart
    Acked-by: Takashi Iwai
    Cc: Al Viro
    Cc: Dave Airlie
    Acked-by: Mauro Carvalho Chehab
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Laurent Pinchart
     

06 Jan, 2009

14 commits


05 Jan, 2009

4 commits


04 Jan, 2009

1 commit

  • This patch extends 42a6e66f1e40a930d093c33ba0bb9d8d8e4555ed by using
    usb_endpoint_xfer_control, usb_endpoint_xfer_isoc, usb_endpoint_xfer_bulk,
    and usb_endpoint_xfer_int in the negated case as well.

    This patch also rewrites some calls to usb_endpoint_dir_in as negated calls
    to !usb_endpoint_dir_out, and vice versa, to better correspond to the
    intent of the original code.

    The semantic patch that makes this change is as follows:
    (http://www.emn.fr/x-info/coccinelle/)

    //
    @@ struct usb_endpoint_descriptor *epd; @@

    - (usb_endpoint_type(epd) != \(USB_ENDPOINT_XFER_CONTROL\|0\))
    + !usb_endpoint_xfer_control(epd)

    @@ struct usb_endpoint_descriptor *epd; @@

    - (usb_endpoint_type(epd) != \(USB_ENDPOINT_XFER_ISOC\|1\))
    + !usb_endpoint_xfer_isoc(epd)

    @@ struct usb_endpoint_descriptor *epd; @@

    - (usb_endpoint_type(epd) != \(USB_ENDPOINT_XFER_BULK\|2\))
    + !usb_endpoint_xfer_bulk(epd)

    @@ struct usb_endpoint_descriptor *epd; @@

    - (usb_endpoint_type(epd) != \(USB_ENDPOINT_XFER_INT\|3\))
    + !usb_endpoint_xfer_int(epd)
    //

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

    Julia Lawall
     

03 Jan, 2009

4 commits


02 Jan, 2009

1 commit

  • Use the USB functions usb_get_intfdata and usb_set_intfdata instead of
    dev_get_drvdata and dev_set_drvdata, respectively.

    The semantic patch that makes this change for the usb_get_intfdata case is
    as follows: (http://www.emn.fr/x-info/coccinelle/)

    //
    @header@
    @@

    #include

    @same depends on header@
    position p;
    @@

    usb_get_intfdata@p(...) { ... }

    @depends on header@
    position _p!=same.p;
    identifier _f;
    struct usb_interface*intf;
    @@

    _f@_p(...) { dev)
    + usb_get_intfdata(intf)
    ...+> }
    //

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

    Julia Lawall
     

01 Jan, 2009

5 commits

  • Almost all parameters that have been misnamed in the comments.

    Signed-off-by: Mark Brown

    Mark Brown
     
  • Set the invalid dma channel to -1 (and check properly for it) in
    pxa2xx_pcm_hw_free(). Was assuming 0 is an invalid channel number but 0
    is a valid pxa dma channel num.

    Signed-off-by: stephen
    Signed-off-by: Mark Brown

    Stephen Ware
     
  • Add automatic mapping of HP Acacia motherboards to 3stack-hp. Allows
    for greater then 2 channel audio by enabling Channel Mode option in mixer.

    Motherboard specs:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01321559&lc=en&dlc=en&cc=us&product=3829353&os=2093&lang=en#

    Signed-off-by: Chris Bagwell
    Signed-off-by: Takashi Iwai

    Chris Bagwell
     
  • Move the more specific preset for ALC1200 above the general one for
    ALC888, so that it will have the chance to get matched and selected.

    Reported-by: Thomas Schneider
    Signed-off-by: Wu Fengguang
    Signed-off-by: Takashi Iwai

    Wu Fengguang
     
  • This set of patches introduces calls to the following set of functions:

    usb_endpoint_dir_in(epd)
    usb_endpoint_dir_out(epd)
    usb_endpoint_is_bulk_in(epd)
    usb_endpoint_is_bulk_out(epd)
    usb_endpoint_is_int_in(epd)
    usb_endpoint_is_int_out(epd)
    usb_endpoint_num(epd)
    usb_endpoint_type(epd)
    usb_endpoint_xfer_bulk(epd)
    usb_endpoint_xfer_control(epd)
    usb_endpoint_xfer_int(epd)
    usb_endpoint_xfer_isoc(epd)

    In some cases, introducing one of these functions is not possible, and it
    just replaces an explicit integer value by one of the following constants:

    USB_ENDPOINT_XFER_BULK
    USB_ENDPOINT_XFER_CONTROL
    USB_ENDPOINT_XFER_INT
    USB_ENDPOINT_XFER_ISOC

    An extract of the semantic patch that makes these changes is as follows:
    (http://www.emn.fr/x-info/coccinelle/)

    //
    @r1@ struct usb_endpoint_descriptor *epd; @@

    - ((epd->bmAttributes & \(USB_ENDPOINT_XFERTYPE_MASK\|3\)) ==
    - \(USB_ENDPOINT_XFER_CONTROL\|0\))
    + usb_endpoint_xfer_control(epd)

    @r5@ struct usb_endpoint_descriptor *epd; @@

    - ((epd->bEndpointAddress & \(USB_ENDPOINT_DIR_MASK\|0x80\)) ==
    - \(USB_DIR_IN\|0x80\))
    + usb_endpoint_dir_in(epd)

    @inc@
    @@

    #include

    @depends on !inc && (r1||r5)@
    @@

    + #include
    #include
    //

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

    Julia Lawall
     

31 Dec, 2008

5 commits

  • This patch adds DAPM implementaion for the capture path
    on twlx030.

    TWL has two physical ADC and two digital microphone (stereo) connections.
    The CPU interface has four microphone channels.
    For simplicity the microphone channel paths are named as:
    TX1 (Left/Right) - when using i2s mode, only the TX1 data is valid
    TX2 (Left/Right)

    Input routing (simplified version):
    There is two levels of mux settings for TWL in input path:
    Analog input mux:
    ADCL
    Signed-off-by: Mark Brown

    Peter Ujfalusi
     
  • Modify the enum filter to more generic that it will filter
    out the enums with text "Invalid".
    The enum filter also required for the capture path.

    Signed-off-by: Peter Ujfalusi
    Signed-off-by: Mark Brown

    Peter Ujfalusi
     
  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (583 commits)
    V4L/DVB (10130): use USB API functions rather than constants
    V4L/DVB (10129): dvb: remove deprecated use of RW_LOCK_UNLOCKED in frontends
    V4L/DVB (10128): modify V4L documentation to be a valid XHTML
    V4L/DVB (10127): stv06xx: Avoid having y unitialized
    V4L/DVB (10125): em28xx: Don't do AC97 vendor detection for i2s audio devices
    V4L/DVB (10124): em28xx: expand output formats available
    V4L/DVB (10123): em28xx: fix reversed definitions of I2S audio modes
    V4L/DVB (10122): em28xx: don't load em28xx-alsa for em2870 based devices
    V4L/DVB (10121): em28xx: remove worthless Pinnacle PCTV HD Mini 80e device profile
    V4L/DVB (10120): em28xx: remove redundant Pinnacle Dazzle DVC 100 profile
    V4L/DVB (10119): em28xx: fix corrupted XCLK value
    V4L/DVB (10118): zoran: fix warning for a variable not used
    V4L/DVB (10116): af9013: Fix gcc false warnings
    V4L/DVB (10111a): usbvideo.h: remove an useless blank line
    V4L/DVB (10111): quickcam_messenger.c: fix a warning
    V4L/DVB (10110): v4l2-ioctl: Fix warnings when using .unlocked_ioctl = __video_ioctl2
    V4L/DVB (10109): anysee: Fix usage of an unitialized function
    V4L/DVB (10104): uvcvideo: Add support for video output devices
    V4L/DVB (10102): uvcvideo: Ignore interrupt endpoint for built-in iSight webcams.
    V4L/DVB (10101): uvcvideo: Fix bulk URB processing when the header is erroneous
    ...

    Linus Torvalds
     
  • * 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm: (407 commits)
    [ARM] pxafb: add support for overlay1 and overlay2 as framebuffer devices
    [ARM] pxafb: cleanup of the timing checking code
    [ARM] pxafb: cleanup of the color format manipulation code
    [ARM] pxafb: add palette format support for LCCR4_PAL_FOR_3
    [ARM] pxafb: add support for FBIOPAN_DISPLAY by dma braching
    [ARM] pxafb: allow pxafb_set_par() to start from arbitrary yoffset
    [ARM] pxafb: allow video memory size to be configurable
    [ARM] pxa: add document on the MFP design and how to use it
    [ARM] sa1100_wdt: don't assume CLOCK_TICK_RATE to be a constant
    [ARM] rtc-sa1100: don't assume CLOCK_TICK_RATE to be a constant
    [ARM] pxa/tavorevb: update board support (smartpanel LCD + keypad)
    [ARM] pxa: Update eseries defconfig
    [ARM] 5352/1: add w90p910-plat config file
    [ARM] s3c: S3C options should depend on PLAT_S3C
    [ARM] mv78xx0: implement GPIO and GPIO interrupt support
    [ARM] Kirkwood: implement GPIO and GPIO interrupt support
    [ARM] Orion: share GPIO IRQ handling code
    [ARM] Orion: share GPIO handling code
    [ARM] s3c: define __io using the typesafe version
    [ARM] S3C64XX: Ensure CPU_V6 is selected
    ...

    Linus Torvalds
     
  • …l/git/tip/linux-2.6-tip

    * 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    hrtimers: fix warning in kernel/hrtimer.c
    x86: make sure we really have an hpet mapping before using it
    x86: enable HPET on Fujitsu u9200
    linux/timex.h: cleanup for userspace
    posix-timers: simplify de_thread()->exit_itimers() path
    posix-timers: check ->it_signal instead of ->it_pid to validate the timer
    posix-timers: use "struct pid*" instead of "struct task_struct*"
    nohz: suppress needless timer reprogramming
    clocksource, acpi_pm.c: put acpi_pm_read_slow() under CONFIG_PCI
    nohz: no softirq pending warnings for offline cpus
    hrtimer: removing all ur callback modes, fix
    hrtimer: removing all ur callback modes, fix hotplug
    hrtimer: removing all ur callback modes
    x86: correct link to HPET timer specification
    rtc-cmos: export second NVRAM bank

    Fixed up conflicts in sound/drivers/pcsp/pcsp.c and sound/core/hrtimer.c
    manually.

    Linus Torvalds
     

30 Dec, 2008

1 commit


26 Dec, 2008

1 commit


25 Dec, 2008

2 commits