19 Dec, 2011

1 commit

  • module_param(bool) used to counter-intuitively take an int. In
    fddd5201 (mid-2009) we allowed bool or int/unsigned int using a messy
    trick.

    It's time to remove the int/unsigned int option. For this version
    it'll simply give a warning, but it'll break next kernel version.

    Signed-off-by: Rusty Russell
    Signed-off-by: Takashi Iwai

    Rusty Russell
     

01 Nov, 2011

1 commit


10 Jun, 2011

2 commits

  • The name argument of request_irq() appears in /proc/interrupts, and
    it's quite ugly when the name entry contains a space or special letters.
    In general, it's simpler and more readable when the module name appears
    there, so let's replace all entries with KBUILD_MODNAME.

    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • The convention for pci_driver.name entry in kernel drivers seem to be
    the module name or equivalent ones. But, so far, almost all PCI sound
    drivers use more verbose name like "ABC Xyz (12)", and these are fairly
    confusing when appearing as a file name.

    This patch converts the all pci_driver.name entries in sound/pci/* to
    use KBUILD_MODNAME for more unified appearance.

    Signed-off-by: Takashi Iwai

    Takashi Iwai
     

10 Jan, 2011

1 commit


09 Feb, 2010

1 commit


13 Oct, 2009

1 commit


02 Jun, 2009

1 commit


28 Apr, 2009

1 commit


12 Jan, 2009

1 commit


21 Oct, 2008

1 commit

  • Use the newly introduced pci_ioremap_bar() function in sound/.
    pci_ioremap_bar() just takes a pci device and a bar number, with the goal
    of making it really hard to get wrong, while also having a central place
    to stick sanity checks.

    Signed-off-by: Arjan van de Ven
    Signed-off-by: Takashi Iwai

    Arjan van de Ven
     

25 Aug, 2008

1 commit


23 Feb, 2008

1 commit


01 Feb, 2008

1 commit

  • This header file exists only for some hacks to adapt alsa-driver
    tree. It's useless for building in the kernel. Let's move a few
    lines in it to sound/core.h and remove it.
    With this patch, sound/driver.h isn't removed but has just a single
    compile warning to include it. This should be really killed in
    future.

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

    Takashi Iwai
     

23 Oct, 2007

2 commits

  • If the load_all option was turned on all cards would be treated as unknown,
    even those which are in the database. Of course, if the card is in the
    database there is no reason to use the load_all option. It's there to force
    loading when the card isn't in the database. But there are out of date wikis
    that say to do this and some distros might turn this option on by default.
    So, we keep the load_all option from turning known cards into unknown cards.

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

    Trent Piepho
     
  • const and __devinit aren't a good pair, resulting in a section
    mismatch error. Let's remove const as a temporary solution.

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

    Takashi Iwai
     

16 Oct, 2007

6 commits

  • Add an 'unknown' board type so that it is possible to differentiate
    between unknown and generic boards.

    Signed-off-by: Clemens Ladisch
    Signed-off-by: Jaroslav Kysela

    Clemens Ladisch
     
  • Sets a bit to power down the Bt87x's internal audio ADC when the ALSA device
    isn't open, or when it is in 'digital mode' using an external ADC.

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

    Trent Piepho
     
  • Different cards have different audio configurations, but the driver didn't
    support this. The only setting it had was the digital rate.
    This patch adds a board configuration list. Currently, configurable items are
    the digital rate and the digital data format (for cards with an external ADC),
    a flag for the absence of an external ADC, and a flag for no connection to the
    Bt87x internal ADC.
    This allows cards that don't use the internal ADC to omit the ALSA 'Bt87x
    analog' device and related controls. Cards without an external ADC can omit
    the 'Bt87x digital' device.
    In order to support the CS5331A ADC used on the Osprey 440 and 2x0 cards, the
    digital format needs to be different than the default.
    Support could be added for defining:
    The connections or lack of them to the Bt87x's internal ADC mux
    Multiple sample rates for an external ADC (e.g. Osprey)
    Control of an external mux for an external ADC (e.g. Osprey)
    The card definitions for cards other than the Ospreys are kept equivalent to
    their old values. This is likely inaccurate for most cards, as it is doubtful
    that both an external and the internal ADC would be used. Lacking information
    on those cards, the behavior is left unchanged.

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

    Trent Piepho
     
  • Added the PCI ID entries for known working devices
    - Prolink PixelView PV-M4900
    - Pinnacle Studio PCTV rave

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

    Takashi Iwai
     
  • Add a snd_pcm_rate_to_rate_bit() function to factor out common code used
    by several drivers.

    Signed-off-by: Clemens Ladisch
    Signed-off-by: Jaroslav Kysela

    Clemens Ladisch
     
  • Clean up codes using the new common snd_ctl_boolean_*_info() callbacks.

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

    Takashi Iwai
     

15 Oct, 2007

1 commit


31 Jul, 2007

1 commit

  • Various gpio and mux settings for the Osprey 440 weren't correct. Fix them
    and provide some documentation about how the gpios work.

    The osprey eeprom routine wasn't run for the 440, add it. It was also crap,
    re-written to be better.

    Add the Osprey 440 to the Bt878 ALSA driver's whitelist. Currently the sample
    rate is fixed at 32kHz, as the driver doesn't support different rates for
    digital input mode, though the card can select the rate from 32, 44.1, or 48
    kHz via gpio.

    Setting the audio gain via ALSA isn't supported yet; a userspace tool that
    programs the X9221 via i2c-dev must be used.

    The Bt878 digital audio format isn't programmed correctly for the CS5331A ADC
    used, resulting in extremely garbled sound. That is fixed in a followup
    patch.

    Signed-off-by: Trent Piepho
    Signed-off-by: Mauro Carvalho Chehab

    Trent Piepho
     

11 May, 2007

2 commits


21 Feb, 2007

1 commit


20 Dec, 2006

2 commits


05 Oct, 2006

1 commit

  • Maintain a per-CPU global "struct pt_regs *" variable which can be used instead
    of passing regs around manually through all ~1800 interrupt handlers in the
    Linux kernel.

    The regs pointer is used in few places, but it potentially costs both stack
    space and code to pass it around. On the FRV arch, removing the regs parameter
    from all the genirq function results in a 20% speed up of the IRQ exit path
    (ie: from leaving timer_interrupt() to leaving do_IRQ()).

    Where appropriate, an arch may override the generic storage facility and do
    something different with the variable. On FRV, for instance, the address is
    maintained in GR28 at all times inside the kernel as part of general exception
    handling.

    Having looked over the code, it appears that the parameter may be handed down
    through up to twenty or so layers of functions. Consider a USB character
    device attached to a USB hub, attached to a USB controller that posts its
    interrupts through a cascaded auxiliary interrupt controller. A character
    device driver may want to pass regs to the sysrq handler through the input
    layer which adds another few layers of parameter passing.

    I've build this code with allyesconfig for x86_64 and i386. I've runtested the
    main part of the code on FRV and i386, though I can't test most of the drivers.
    I've also done partial conversion for powerpc and MIPS - these at least compile
    with minimal configurations.

    This will affect all archs. Mostly the changes should be relatively easy.
    Take do_IRQ(), store the regs pointer at the beginning, saving the old one:

    struct pt_regs *old_regs = set_irq_regs(regs);

    And put the old one back at the end:

    set_irq_regs(old_regs);

    Don't pass regs through to generic_handle_irq() or __do_IRQ().

    In timer_interrupt(), this sort of change will be necessary:

    - update_process_times(user_mode(regs));
    - profile_tick(CPU_PROFILING, regs);
    + update_process_times(user_mode(get_irq_regs()));
    + profile_tick(CPU_PROFILING);

    I'd like to move update_process_times()'s use of get_irq_regs() into itself,
    except that i386, alone of the archs, uses something other than user_mode().

    Some notes on the interrupt handling in the drivers:

    (*) input_dev() is now gone entirely. The regs pointer is no longer stored in
    the input_dev struct.

    (*) finish_unlinks() in drivers/usb/host/ohci-q.c needs checking. It does
    something different depending on whether it's been supplied with a regs
    pointer or not.

    (*) Various IRQ handler function pointers have been moved to type
    irq_handler_t.

    Signed-Off-By: David Howells
    (cherry picked from 1b16e7ac850969f38b375e511e3fa2f474a33867 commit)

    David Howells
     

13 Jul, 2006

1 commit


03 Jul, 2006

1 commit


28 Jun, 2006

1 commit


23 Jun, 2006

2 commits


28 Apr, 2006

1 commit


22 Mar, 2006

2 commits


22 Jan, 2006

2 commits