]> pilppa.org Git - linux-2.6-omap-h63xx.git/log
linux-2.6-omap-h63xx.git
17 years ago[POWERPC] celleb: Move the SCC related code for celleb
Ishizaki Kou [Thu, 24 Apr 2008 09:26:28 +0000 (19:26 +1000)]
[POWERPC] celleb: Move the SCC related code for celleb

This moves the SCC (Super Companion Chip) related code for celleb
into platforms/cell/.
All files in this patch are used by celleb-beat and celleb-native
commonly.

Signed-off-by: Kou Ishizaki <kou.ishizaki@toshiba.co.jp>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] celleb: Move the files for celleb base support
Ishizaki Kou [Thu, 24 Apr 2008 09:25:16 +0000 (19:25 +1000)]
[POWERPC] celleb: Move the files for celleb base support

This moves the base code for celleb support into platforms/cell/.
All files in this patch are used by celleb-beat and celleb-native
commonly.

Signed-off-by: Kou Ishizaki <kou.ishizaki@toshiba.co.jp>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] celleb: Consolidate io-workarounds code
Ishizaki Kou [Thu, 24 Apr 2008 09:24:13 +0000 (19:24 +1000)]
[POWERPC] celleb: Consolidate io-workarounds code

Now, we can use generic io-workarounds mechanism and the workaround
code for spider-pci. This changes Celleb PCI code to use spider-pci
code.

Signed-off-by: Kou Ishizaki <kou.ishizaki@toshiba.co.jp>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] cell: Generalize io-workarounds code
Ishizaki Kou [Thu, 24 Apr 2008 09:21:10 +0000 (19:21 +1000)]
[POWERPC] cell: Generalize io-workarounds code

This splits cell io-workaround code into spider-pci dependent code and
a generic part, and also moves io-workarounds initialization into
cell_setup_phb.

Signed-off-by: Kou Ishizaki <kou.ishizaki@toshiba.co.jp>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] Add CONFIG_PPC_PSERIES_DEBUG to enable debugging for platforms/pseries
Michael Ellerman [Thu, 24 Apr 2008 05:13:21 +0000 (15:13 +1000)]
[POWERPC] Add CONFIG_PPC_PSERIES_DEBUG to enable debugging for platforms/pseries

Add a DEBUG config setting which turns on all (most) of the debugging
under platforms/pseries.

To have this take effect we need to remove all the #undef DEBUG's, in
various files. We leave the #undef DEBUG in platforms/pseries/lpar.c,
as this enables debugging printks from the low-level hash table routines,
and tends to make your system unusable. If you want those enabled you
still have to turn them on by hand.

Also some of the RAS code has a DEBUG block which causes a functional
change, so I've keyed this off a different (non-existant) debug #define.

This is only enabled if you have PPC_EARLY_DEBUG enabled also.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] Convert from DBG() to pr_debug() in platforms/pseries/
Michael Ellerman [Thu, 24 Apr 2008 05:13:19 +0000 (15:13 +1000)]
[POWERPC] Convert from DBG() to pr_debug() in platforms/pseries/

In pseries/lpar.c, fix some printf specifier mismatches, and add
a newline to one printk.

In pseries/rtasd.c add "rtasd" to some messages to make it clear
where they're coming from.

In pseries/scanlog.c remove the hand-rolled runtime debugging support
in there. This file has been largely unchanged for eons, if we need to
debug it in future we can recompile.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] Register udbg console early on pseries LPAR
Michael Ellerman [Thu, 24 Apr 2008 05:13:17 +0000 (15:13 +1000)]
[POWERPC] Register udbg console early on pseries LPAR

On pseries LPAR we can call the udbg routines, and the udbg console very
early. So mark the udbg console as safe to call early in boot, and register
the udbg console as soon as the udbg routines are hooked up.

This allows platforms/pseries code to use printk() and pr_debug() rather
than needing to call udbg_printf() directly for early debugging. This is
nice because a) it's standard, b) it goes via the printk buffer, and c)
you can get printk time stamps.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] Mark udbg console as CON_ANYTIME, ie. callable early in boot
Michael Ellerman [Thu, 24 Apr 2008 05:13:14 +0000 (15:13 +1000)]
[POWERPC] Mark udbg console as CON_ANYTIME, ie. callable early in boot

The udbg console should be safe to call basically at any time after boot.
It does not need any per-cpu resources or for the cpu to be online, as
long as there is a udbg_putc routine hooked up it should work. So mark it
as CON_ANYTIME.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] Set udbg_console index to 0
Michael Ellerman [Thu, 24 Apr 2008 05:13:13 +0000 (15:13 +1000)]
[POWERPC] Set udbg_console index to 0

Because the udbg_console has CON_ENABLED set, it's possible that when we
register it with the console code the index won't be set. This leads to
slightly confusing boot messages like:

[    0.000000] console [udbg-1] enabled

We could remove CON_ENABLED, but we don't want to do that, we always
want the udbg console to be activated, even if the user specified some
other console on the command line.

The simplest fix seems to be just to set the index to 0 by hand. There
is no issue with duplicate udbg consoles, as we guard against registering
multiple times in register_early_udbg_console().

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] Raise the upper limit of NR_CPUS and move the pacas into the BSS
Tony Breeds [Thu, 24 Apr 2008 03:43:49 +0000 (13:43 +1000)]
[POWERPC] Raise the upper limit of NR_CPUS and move the pacas into the BSS

This adds the required functionality to fill in all pacas at runtime.

With NR_CPUS=1024
text    data     bss     dec     hex filename
 137 1704032       0 1704169  1a00e9 arch/powerpc/kernel/paca.o :Before
 121 1179744  524288 1704153  1a00d9 arch/powerpc/kernel/paca.o :After

Also remove unneeded #includes from arch/powerpc/kernel/paca.c

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] Make iSeries spin on __secondary_hold_spinloop, like pSeries
Tony Breeds [Thu, 24 Apr 2008 03:43:49 +0000 (13:43 +1000)]
[POWERPC] Make iSeries spin on __secondary_hold_spinloop, like pSeries

Currently all iSeries secondary CPUs spin directly on the cpu_start
field in their paca.  Make them spin on the global
__secondary_hold_spinloop until after the pacas have been initialised.

As Stephen Rothwell points out, this works at the moment because
__secondary_hold_spinloop is being set already, but iSeries isn't
looking at it :)

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Acked-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] Clean up misc_64.S
Kumar Gala [Thu, 24 Apr 2008 03:20:16 +0000 (13:20 +1000)]
[POWERPC] Clean up misc_64.S

* Removed get_msr(), get_srr0(), and get_srr1() - not used anywhere
* Use STACK_FRAME_OVERHEAD instead of magic number

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] Use of_get_next_parent() in platforms/cell/axon_msi.c
Michael Ellerman [Thu, 24 Apr 2008 02:08:54 +0000 (12:08 +1000)]
[POWERPC] Use of_get_next_parent() in platforms/cell/axon_msi.c

Replace two open-coded occurences of the of_get_next_parent() logic.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] Discourage people from fiddling with kernel data from prom_init
Michael Ellerman [Thu, 24 Apr 2008 02:08:22 +0000 (12:08 +1000)]
[POWERPC] Discourage people from fiddling with kernel data from prom_init

As BenH said the other day, it is an "accident" that prom_init.o is
linked with the rest of the kernel.  The truth is a little more
subtle, prom_init isn't truly bootloader, it does access kernel data
in a few places.

What we can do is discourage people from adding new code that accesses
data outside of prom_init.  And hence this patch; from the script:

 # This script checks prom_init.o to see what external symbols it
 # is using, if it finds symbols not in the whitelist it returns
 # an error. The point of this is to discourage people from
 # intentionally or accidentally adding new code to prom_init.c
 # which has side effects on other parts of the kernel.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] Add Timur Tabi to the MAINTAINERS file
Timur Tabi [Wed, 23 Apr 2008 22:45:26 +0000 (08:45 +1000)]
[POWERPC] Add Timur Tabi to the MAINTAINERS file

Add Timur Tabi as the maintainer for the Freescale QE library, the
Freescale QE UART device driver, the Freescale SOC sound drivers, and
the Crystal Semiconductor CS4270 device driver.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] Cleanup asm-offsets.c
Kumar Gala [Wed, 23 Apr 2008 20:33:49 +0000 (06:33 +1000)]
[POWERPC] Cleanup asm-offsets.c

* Removed TI_EXECDOMAIN define as its not used anywhere
* Use STACK_INT_FRAME_SIZE to allow common define of INT_FRAME_SIZE
* Define TI_CPU on both ppc32 & ppc64 (removes an ifdef).

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] Clean up access to thread_info in assembly
Kumar Gala [Wed, 23 Apr 2008 20:29:36 +0000 (06:29 +1000)]
[POWERPC] Clean up access to thread_info in assembly

Use (31-THREAD_SHIFT) to get to thread_info from stack pointer.  This makes
the code a bit easier to read and more robust if we ever change THREAD_SHIFT.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] Fix new warnings arising from stacktrace patch
Christoph Hellwig [Wed, 23 Apr 2008 14:32:29 +0000 (00:32 +1000)]
[POWERPC] Fix new warnings arising from stacktrace patch

Remove the inclusion of asm-offsets.h from stacktrace.c.  It isn't
supposed to be included in C code and it causes problems with multiple
definitions of things.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] Port fixmap from x86 and use for kmap_atomic
Kumar Gala [Wed, 23 Apr 2008 13:05:20 +0000 (23:05 +1000)]
[POWERPC] Port fixmap from x86 and use for kmap_atomic

The fixmap code from x86 allows us to have compile time virtual addresses
that we change the physical addresses of at run time.

This is useful for applications like kmap_atomic, PCI config that is done
via direct memory map, kexec/kdump.

We got ride of CONFIG_HIGHMEM_START as we can now determine a more optimal
location for PKMAP_BASE based on where the fixmap addresses start and
working back from there.

Additionally, the kmap code in asm-powerpc/highmem.h always had debug
enabled.  Moved to using CONFIG_DEBUG_HIGHMEM to determine if we should
have the extra debug checking.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] char/xilinx_hwicap/ section fix
Adrian Bunk [Wed, 23 Apr 2008 09:51:38 +0000 (19:51 +1000)]
[POWERPC] char/xilinx_hwicap/ section fix

This patch fixes the following build error:

<--  snip  -->

...
  CC [M]  drivers/char/xilinx_hwicap/xilinx_hwicap.o
...
/home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/char/xilinx_hwicap/xilinx_hwicap.c:806: error: hwicap_of_match causes a section type conflict
/home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/char/xilinx_hwicap/xilinx_hwicap.c:806: error: hwicap_of_match causes a section type conflict
make[4]: *** [drivers/char/xilinx_hwicap/xilinx_hwicap.o] Error 1

<--  snip  -->

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] drivers/of/of_i2c.c: Add MODULE_LICENSE
Adrian Bunk [Wed, 23 Apr 2008 09:51:34 +0000 (19:51 +1000)]
[POWERPC] drivers/of/of_i2c.c: Add MODULE_LICENSE

After commit 585468e5d5962660867c269e26f0a4b89a599473
([POWERPC] i2c: Fix build breakage introduced by OF helpers)
drivers/of/of_i2c.c needs a MODULE_LICENSE.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] 85xx: Add support for relocatable kernel (and booting at non-zero)
Kumar Gala [Mon, 21 Apr 2008 18:22:34 +0000 (04:22 +1000)]
[POWERPC] 85xx: Add support for relocatable kernel (and booting at non-zero)

Added support to allow an 85xx kernel to be run from a non-zero physical
address (useful for cooperative asymmetric multiprocessing situations and
kdump).  The support can be configured at compile time by setting
CONFIG_PAGE_OFFSET, CONFIG_KERNEL_START, and CONFIG_PHYSICAL_START as
desired.

Alternatively, the kernel build can set CONFIG_RELOCATABLE.  Setting this
config option causes the kernel to determine at runtime the physical
addresses of CONFIG_PAGE_OFFSET and CONFIG_KERNEL_START.  If
CONFIG_RELOCATABLE is set, then CONFIG_PHYSICAL_START has no meaning.
However, CONFIG_PHYSICAL_START will always be used to set the LOAD program
header physical address field in the resulting ELF image.

Currently we are limited to running at a physical address that is a
multiple of 256M.  This is due to how we map TLBs to cover
lowmem.  This should be fixed to allow 64M or maybe even 16M alignment
in the future.  It is considered an error to try and run a kernel at a
non-aligned physical address.

All the magic for this support is accomplished by proper initialization
of the kernel memory subsystem and use of ARCH_PFN_OFFSET.

The use of ARCH_PFN_OFFSET only affects normal memory and not IO mappings.
ioremap uses map_page and isn't affected by ARCH_PFN_OFFSET.

/dev/mem continues to allow access to any physical address in the system
regardless of how CONFIG_PHYSICAL_START is set.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] Add strncmp to arch/ppc
Josh Boyer [Tue, 22 Apr 2008 00:50:27 +0000 (10:50 +1000)]
[POWERPC] Add strncmp to arch/ppc

Commit 0119536cd314ef95553604208c25bc35581f7f0a added an assembly
version of strncmp to PowerPC.  However, it changed a common header
file between arch/ppc and arch/powerpc without adding strncmp to
arch/ppc.  This fixes that omission so that arch/ppc links again.

Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] 4xx: Fix duplicate phys_addr_t definition
Josh Boyer [Tue, 22 Apr 2008 00:49:34 +0000 (10:49 +1000)]
[POWERPC] 4xx: Fix duplicate phys_addr_t definition

Commit d04ceb3fc294ea2c4f538a04343f3a473953a3b0 moved phys_addr_t
definitions to include/asm-powerpc/types.h.  However, arch/ppc 440
builds had a duplicate definition in include/asm-ppc/mmu.h that caused
the build to fail.

This removes the duplicate definition in arch/ppc.

Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] Fix mv64x60 early console code to use cell-index property
Remi Machet [Mon, 21 Apr 2008 21:02:56 +0000 (07:02 +1000)]
[POWERPC] Fix mv64x60 early console code to use cell-index property

The MPSC driver and prpmc2800.dts have been modified to use property
'cell-index' as the serial port number, but the early serial console
driver for the mv64x60 has not been modified to use this new property.
This fixes it.

Signed-off-by: Remi Machet (rmachet@slac.stanford.edu)
Acked-by: Dale Farnsworth <dale@farnsworth.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] Initialize all mv64x60 devices even if one fails
Remi Machet [Mon, 21 Apr 2008 18:46:12 +0000 (04:46 +1000)]
[POWERPC] Initialize all mv64x60 devices even if one fails

If one of the devices of the mv64x60 init fails, the remaining
devices are not initialized.

This changes the code to display an error and continue the
initialization.

Signed-off-by: Remi Machet (rmachet@slac.stanford.edu)
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] Use default values if necessary in mv64x60 I2C initialization
Remi Machet [Mon, 21 Apr 2008 17:36:48 +0000 (03:36 +1000)]
[POWERPC] Use default values if necessary in mv64x60 I2C initialization

I2C parameters freq_m and freq_n are assigned defaults in the code,
but if properties for those parameters are not found in the open
firmware description the init routine returns an error and doesn't
create the platform device.

This changes the code so that it doesn't return an error if the
properties are not found but instead uses the default values.

Signed-off-by: Remi Machet (rmachet@slac.stanford.edu)
Acked-by: Dale Farnsworth <dale@farnsworth.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] Use __weak macro for smp_setup_processor_id
Benjamin Herrenschmidt [Fri, 18 Apr 2008 06:56:18 +0000 (16:56 +1000)]
[POWERPC] Use __weak macro for smp_setup_processor_id

Use the __weak macro instead of the longer __attribute__ ((weak)) form
in one place in init/main.c.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Andrew Morton <akpm@linux-foundation.org>
--

 init/main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] Fix kernel stack allocation alignment
Benjamin Herrenschmidt [Fri, 18 Apr 2008 06:56:17 +0000 (16:56 +1000)]
[POWERPC] Fix kernel stack allocation alignment

The powerpc kernel stacks need to be naturally aligned, as they
contain the thread info at the bottom, which is obtained by
clearing the low bits of the stack pointer.

However, when using 64K pages, the stack is smaller than a page,
so we use kmalloc to allocate it, but that doesn't provide the
alignment guarantee we need.

It appeared to work so far... until one enables SLUB debugging
which then returns unaligned pointers.  Ooops...

This fixes it by using a slab cache with enforced alignment.  It
relies on my previous patch that adds a thread_info_cache_init()
callback.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] Add thread_info_cache_init() weak hook
Benjamin Herrenschmidt [Fri, 18 Apr 2008 06:56:15 +0000 (16:56 +1000)]
[POWERPC] Add thread_info_cache_init() weak hook

Some architectures need to maintain a kmem cache for thread info
structures.  The next commit adds that to powerpc to fix an alignment
problem.

There is no good arch callback to use to initialize that cache
that I can find, so this adds a new one in the form of a weak
function whose default is empty.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] PS3: Fix gelic net module dependency
Geoff Levand [Wed, 9 Apr 2008 21:01:53 +0000 (07:01 +1000)]
[POWERPC] PS3: Fix gelic net module dependency

The PS3 gelic network driver depends on the wake-on-lan support
provided by the PS3 sys manager driver.  Add that dependency
to the GELIC_NET Kconfig option.

Prevents these build errors:

  ps3_gelic_net.c:1277: undefined reference to `.ps3_sys_manager_get_wol'
  ps3_gelic_net.c:1337: undefined reference to `.ps3_sys_manager_set_wol'

CC: Masakazu Mokuno <mokuno@sm.sony.co.jp>
CC: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] Add include of linux/of.h to os-area.c
Michael Ellerman [Thu, 14 Feb 2008 00:37:50 +0000 (11:37 +1100)]
[POWERPC] Add include of linux/of.h to os-area.c

os-area.c requires routines declared in linux/of.h, so should include it.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years ago[POWERPC] Add include of linux/of.h to numa.c
Michael Ellerman [Thu, 14 Feb 2008 00:37:49 +0000 (11:37 +1100)]
[POWERPC] Add include of linux/of.h to numa.c

numa.c requires routines declared in linux/of.h, so should include it.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years agoMerge branch 'powerpc-next' of master.kernel.org:/pub/scm/linux/kernel/git/galak...
Paul Mackerras [Thu, 24 Apr 2008 10:57:20 +0000 (20:57 +1000)]
Merge branch 'powerpc-next' of master.kernel.org:/pub/scm/linux/kernel/git/galak/powerpc

17 years ago[POWERPC] macintosh/windfarm: Fix platform driver hotplug/coldplug
Kay Sievers [Fri, 18 Apr 2008 20:33:53 +0000 (13:33 -0700)]
[POWERPC] macintosh/windfarm: Fix platform driver hotplug/coldplug

Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform modalias
is prefixed with "platform:".  Add MODULE_ALIAS() to the hotpluggable
"macintosh" platform drivers, to re-enable auto loading.

[dbrownell@users.sourceforge.net: registration fixes]
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years agotun: Multicast handling in tun_chr_ioctl() needs proper locking.
David S. Miller [Thu, 24 Apr 2008 10:44:43 +0000 (03:44 -0700)]
tun: Multicast handling in tun_chr_ioctl() needs proper locking.

Since these operations don't go through the normal
device calls, we have to ensure we synchronize with
those paths.

Noticed by Alan Cox.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years ago[ALSA] ice1724 - Fix IRQ lock-up with MPU access
Takashi Iwai [Wed, 23 Apr 2008 15:47:28 +0000 (17:47 +0200)]
[ALSA] ice1724 - Fix IRQ lock-up with MPU access

The sound boards with VT1724 and compatible chips may lock up when
MPU401 is accessed together with the PCM streaming.
This patch fixes the problem.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] Define MPU401 registers in sound/mpu401_uart.h
Takashi Iwai [Wed, 23 Apr 2008 15:47:28 +0000 (17:47 +0200)]
[ALSA] Define MPU401 registers in sound/mpu401_uart.h

Define some MPU401 registers in sound/mpu401_uart.h so that other
drivers can refer to them.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] pcsp: fix wording in DEBUG_PAGEALLOC warning
Stas Sergeev [Wed, 23 Apr 2008 15:16:38 +0000 (17:16 +0200)]
[ALSA] pcsp: fix wording in DEBUG_PAGEALLOC warning

Signed-off-by: Stas Sergeev <stsp@aknet.ru>
(fixed invalid KERN_WARNING by tiwai)
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] pcsp - Fix dependency in Kconfig
Takashi Iwai [Wed, 23 Apr 2008 15:08:58 +0000 (17:08 +0200)]
[ALSA] pcsp - Fix dependency in Kconfig

Added the proper dependency to Kconfig for snd-pcsp driver.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years agosparc: sunzilog uart order
Robert Reif [Thu, 24 Apr 2008 10:37:51 +0000 (03:37 -0700)]
sparc: sunzilog uart order

I have a sparcstation 20 clone with a lot of on board serial ports.
The serial core code assumes that uarts are assigned contiguously
and that may not be the case when there are multiple zs devices
present.  This patch insures that uart chips are placed in front of
keyboard/mouse chips in the port table.

ffd37420: ttyS0 at MMIO 0xf1100000 (irq = 44) is a zs (ESCC)
Console: ttyS0 (SunZilog zs0)
console [ttyS0] enabled
ffd37420: ttyS1 at MMIO 0xf1100004 (irq = 44) is a zs (ESCC)
ffd37500: Keyboard at MMIO 0xf1000000 (irq = 44) is a zs
ffd37500: Mouse at MMIO 0xf1000004 (irq = 44) is a zs
ffd3c5c0: ttyS2 at MMIO 0xf1100008 (irq = 44) is a zs (ESCC)
ffd3c5c0: ttyS3 at MMIO 0xf110000c (irq = 44) is a zs (ESCC)
ffd3c6a0: ttyS4 at MMIO 0xf1100010 (irq = 44) is a zs (ESCC)
ffd3c6a0: ttyS5 at MMIO 0xf1100014 (irq = 44) is a zs (ESCC)
ffd3c780: ttyS6 at MMIO 0xf1100018 (irq = 44) is a zs (ESCC)
ffd3c780: ttyS7 at MMIO 0xf110001c (irq = 44) is a zs (ESCC)

Signed-off-by: Robert Reif <reif@earthlink.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 years ago[SPARC64]: Detect trap frames in stack backtraces.
David S. Miller [Thu, 24 Apr 2008 10:28:52 +0000 (03:28 -0700)]
[SPARC64]: Detect trap frames in stack backtraces.

Now that we have a magic cookie in the pt_regs, we can
properly detect trap frames in stack bactraces.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years ago[SPARC64]: %l6 trap return handling no longer necessary.
David S. Miller [Thu, 24 Apr 2008 10:15:22 +0000 (03:15 -0700)]
[SPARC64]: %l6 trap return handling no longer necessary.

Now that we indicate the "restart system call" in the
trap type field of pt_regs->magic, we don't need to
set the %l6 boolean in all of the trap return paths.

And we therefore don't need to pass it to do_notify_resume().

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years ago[SPARC64]: Use trap type stored in pt_regs to handle syscall restart.
David S. Miller [Thu, 24 Apr 2008 10:01:48 +0000 (03:01 -0700)]
[SPARC64]: Use trap type stored in pt_regs to handle syscall restart.

Now that we can check the trap type directly, we don't need the
funny restart_syscall indication from the trap return paths.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years ago[ALSA] soc - ac97 - Clean up checkpatch warnings
Mark Brown [Wed, 23 Apr 2008 13:26:45 +0000 (15:26 +0200)]
[ALSA] soc - ac97 - Clean up checkpatch warnings

Also change some if (x == NULL) to if (!x).

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] soc - wm8750 - Clean up checkpatch warnings
Mark Brown [Wed, 23 Apr 2008 13:17:12 +0000 (15:17 +0200)]
[ALSA] soc - wm8750 - Clean up checkpatch warnings

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] soc - wm8731 - Clean up checkpatch warnings
Mark Brown [Wed, 23 Apr 2008 13:16:46 +0000 (15:16 +0200)]
[ALSA] soc - wm8731 - Clean up checkpatch warnings

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] soc - pxa2xx-pcm - Fix checkpatch warnings
Mark Brown [Wed, 23 Apr 2008 13:14:18 +0000 (15:14 +0200)]
[ALSA] soc - pxa2xx-pcm - Fix checkpatch warnings

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] soc - spitz - Fix checkpatch warnings
Mark Brown [Wed, 23 Apr 2008 13:13:33 +0000 (15:13 +0200)]
[ALSA] soc - spitz - Fix checkpatch warnings

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] soc - poodle - Fix checkpatch warnings
Mark Brown [Wed, 23 Apr 2008 13:13:04 +0000 (15:13 +0200)]
[ALSA] soc - poodle - Fix checkpatch warnings

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] soc - corgi - Fix checkpatch warnings
Mark Brown [Wed, 23 Apr 2008 13:12:19 +0000 (15:12 +0200)]
[ALSA] soc - corgi - Fix checkpatch warnings

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] soc - s3c24xx-i2s - Add missing spaces
Mark Brown [Wed, 23 Apr 2008 13:10:28 +0000 (15:10 +0200)]
[ALSA] soc - s3c24xx-i2s - Add missing spaces

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] soc - s3c24xx-i2s - Fix tab/space breakage
Mark Brown [Wed, 23 Apr 2008 13:09:57 +0000 (15:09 +0200)]
[ALSA] soc - s3c24xx-i2s - Fix tab/space breakage

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] soc - s3c24xx-i2s - Use linux/io.h
Mark Brown [Wed, 23 Apr 2008 13:09:31 +0000 (15:09 +0200)]
[ALSA] soc - s3c24xx-i2s - Use linux/io.h

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] hda - Fix Thinkpad X300 digital mic
Takashi Iwai [Wed, 23 Apr 2008 11:50:08 +0000 (13:50 +0200)]
[ALSA] hda - Fix Thinkpad X300 digital mic

TP X300 digital mic requires additional init verbs with magic COEFs.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years agopcsp - Don't build pcspkr when snd-pcsp is enabled
Stas Sergeev [Wed, 23 Apr 2008 08:50:32 +0000 (10:50 +0200)]
pcsp - Don't build pcspkr when snd-pcsp is enabled

- Update CREDITS with the pc-speaker driver authors.
- Prevent pcspkr from being built together with snd-pcsp.
  Both pcspkr and snd-pcsp use the same platform driver name "pcspkr".

Signed-off-by: Stas Sergeev <stsp@aknet.ru>
17 years ago[ALSA] hda - Fix model for Acer Aspire 5720z
Takashi Iwai [Tue, 22 Apr 2008 17:39:49 +0000 (19:39 +0200)]
[ALSA] hda - Fix model for Acer Aspire 5720z

Set the proper model=acer for Acer Aspire 5720z with ALC268 codec.
ALSA bug#3550:
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3550

Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] soc - s3c24xx - Declare suspend and resume static
Mark Brown [Tue, 22 Apr 2008 16:27:22 +0000 (18:27 +0200)]
[ALSA] soc - s3c24xx - Declare suspend and resume static

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] soc - s3c24xx - Improve diagnostic output
Tim Niemeyer [Tue, 22 Apr 2008 16:26:59 +0000 (18:26 +0200)]
[ALSA] soc - s3c24xx - Improve diagnostic output

Add some debug messages for suspend/resume and to add a clear prefix to
s3c24xx-i2s and s3c24xx-pcm.

Signed-off-by: Tim Niemeyer <reddog@mastersword.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] Fix possible races at free_irq in PCI drivers
Takashi Iwai [Tue, 22 Apr 2008 15:28:11 +0000 (17:28 +0200)]
[ALSA] Fix possible races at free_irq in PCI drivers

The irq handler of PCI drivers must be released before releasing other
resources since the handler for a shared irq can be still called and
may access the freed resource again.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] soc - neo1973_wm8753 - Fix module unload
Tim Niemeyer [Tue, 22 Apr 2008 15:10:23 +0000 (17:10 +0200)]
[ALSA] soc - neo1973_wm8753 - Fix module unload

Signed-off-by: Tim Niemeyer <reddog@mastersword.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] pxa2xx-ac97: Support PXA3xx AC97
Mark Brown [Tue, 22 Apr 2008 15:09:49 +0000 (17:09 +0200)]
[ALSA] pxa2xx-ac97: Support PXA3xx AC97

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] soc - Support PXA3xx AC97
Mark Brown [Tue, 22 Apr 2008 15:08:52 +0000 (17:08 +0200)]
[ALSA] soc - Support PXA3xx AC97

The PXA3xx does not support the use of interrupts during reset and access
to the GPIO status requires similar handling to that for PXA27x.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] ice1712 - Add Terrasoniq TS88 support
Peter Lienig [Tue, 22 Apr 2008 15:05:07 +0000 (17:05 +0200)]
[ALSA] ice1712 - Add Terrasoniq TS88 support

Added the support of Terrasonq TS88.

Signed-off-by: Peter Lienig <lienig@rheinmetall-de.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] Fix synchronize_irq() bugs, redundancies
Jeff Garzik [Tue, 22 Apr 2008 11:50:34 +0000 (13:50 +0200)]
[ALSA] Fix synchronize_irq() bugs, redundancies

free_irq() calls synchronize_irq() for you, so there is no need for
drivers to manually do the same thing (again).  Thus, calls where
sync-irq immediately precedes free-irq can be simplified.

However, during this audit several bugs were noticed, where free-irq is
preceded by a "irq >= 0" check... but the sync-irq call is not covered
by the same check.

So, where sync-irq could not be eliminated completely, the missing check
was added.

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] Audiophile 192: Fix ad converter initialization
Karsten Wiese [Tue, 22 Apr 2008 10:53:12 +0000 (12:53 +0200)]
[ALSA] Audiophile 192: Fix ad converter initialization

Correct some arguments in calls to snd_ice1712_gpio_write_bits() from
ap192_set_rate_val().

Signed-off-by: Karsten Wiese <fzu@wemgehoertderstaat.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] Don't set gpio mask register in snd_ice1712_gpio_write_bits()
Karsten Wiese [Tue, 22 Apr 2008 10:52:45 +0000 (12:52 +0200)]
[ALSA] Don't set gpio mask register in snd_ice1712_gpio_write_bits()

Some calls to snd_ice1712_gpio_write() go wrong, if
snd_ice1712_gpio_write_bits() ran before and changed the gpio mask register.
Read the actual gpio value and combine it with the to be set bits in the cpu
instead.

Signed-off-by: Karsten Wiese <fzu@wemgehoertderstaat.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] ice1724.c: toggle "chip reset" and "eeprom based setup" sequence
Karsten Wiese [Tue, 22 Apr 2008 10:52:15 +0000 (12:52 +0200)]
[ALSA] ice1724.c: toggle "chip reset" and "eeprom based setup" sequence

Let "chip reset" become first. Increasement of the "chip reset" related timeout
leads to correctly read eeprom's contents here.

Signed-off-by: Karsten Wiese <fzu@wemgehoertderstaat.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years agoOSS: dmabuf: fix negative DMAbuf_get_buffer_pointer() check
Roel Kluin [Fri, 18 Apr 2008 10:25:41 +0000 (12:25 +0200)]
OSS: dmabuf: fix negative DMAbuf_get_buffer_pointer() check

Since unsigned active_offs < 0 is even true when DMAbuf_get_buffer_pointer()
returns negative

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] SOC: fix tests in cs4270_hw_params()
Roel Kluin [Thu, 17 Apr 2008 16:58:34 +0000 (18:58 +0200)]
[ALSA] SOC: fix tests in cs4270_hw_params()

cs4270_hw_params does several times:

ret = snd_soc_write()
if (ret < 0)
...

This only works when ret is signed.

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] usb-audio - Fix race in reconnection
Takashi Iwai [Thu, 17 Apr 2008 10:53:26 +0000 (12:53 +0200)]
[ALSA] usb-audio - Fix race in reconnection

Fix the race at reconnection of the device.
The disconnected usb_chip[] must be cleared before the next probe
call properly.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] Clean up snd_card_free*()
Takashi Iwai [Thu, 17 Apr 2008 10:52:02 +0000 (12:52 +0200)]
[ALSA] Clean up snd_card_free*()

A little clean up of snd_card_free*().
Removed snd_card_free_prepare() since it's actually almost identical
with snd_card_disconnect().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] Fix the race of card instance unregistration
Takashi Iwai [Thu, 17 Apr 2008 10:50:47 +0000 (12:50 +0200)]
[ALSA] Fix the race of card instance unregistration

Move the call of device_unregister() for the card instance in
snd_card_disconnect() to avoid the race of sysfs card entry, which
can be typically found on usb-audio reconnection.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] snd-powermac: style burgundy.c
Risto Suominen [Wed, 16 Apr 2008 17:45:51 +0000 (19:45 +0200)]
[ALSA] snd-powermac: style burgundy.c

Coding style corrections for burgundy.c.

Signed-off-by: Risto Suominen <Risto.Suominen@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] snd-powermac: Burgundy mixers for B&W and iMac
Risto Suominen [Wed, 16 Apr 2008 17:45:31 +0000 (19:45 +0200)]
[ALSA] snd-powermac: Burgundy mixers for B&W and iMac

Add mixer controls and correct headphone detection bits for PowerMac
G3 B&W and iMac G3 Tray-loading, both having Burgundy chipset.

Signed-off-by: Risto Suominen <Risto.Suominen@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] snd-powermac: style awacs.s and awacs.h
Risto Suominen [Wed, 16 Apr 2008 17:39:27 +0000 (19:39 +0200)]
[ALSA] snd-powermac: style awacs.s and awacs.h

Coding style corrections for awacs.c and awacs.h.

Signed-off-by: Risto Suominen <Risto.Suominen@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] snd-powermac: AWACS and Screamer mixers for PM7500, Beige, and iMac SL
Risto Suominen [Thu, 17 Apr 2008 15:55:30 +0000 (17:55 +0200)]
[ALSA] snd-powermac: AWACS and Screamer mixers for PM7500, Beige, and iMac SL

Add mixer controls and correct headphone detection bits for PowerMacs
7300/7500 (AWACS) and G3 Beige (Screamer), and iMac G3 Slot-loading
(Screamer).

Signed-off-by: Risto Suominen <Risto.Suominen@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] snd-powermac: style pmac.c
Risto Suominen [Wed, 16 Apr 2008 11:16:05 +0000 (13:16 +0200)]
[ALSA] snd-powermac: style pmac.c

Coding style corrections for pmac.c.

Signed-off-by: Risto Suominen <Risto.Suominen@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] snd-powermac: enable headphone detection
Risto Suominen [Wed, 16 Apr 2008 11:15:38 +0000 (13:15 +0200)]
[ALSA] snd-powermac: enable headphone detection

Enable port change interrupt while initialising AWACS, Screamer, and
Burgundy chipsets.

Signed-off-by: Risto Suominen <Risto.Suominen@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] sound/drivers/dummy.c: fix negative snd_pcm_format_width() check
Roel Kluin [Wed, 16 Apr 2008 17:30:30 +0000 (19:30 +0200)]
[ALSA] sound/drivers/dummy.c: fix negative snd_pcm_format_width() check

bps is unsigned, a negative snd_pcm_format_width() return value is not noticed

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] hda - Avoid unexpected breakage with ALC889A hack
Takashi Iwai [Wed, 16 Apr 2008 15:29:09 +0000 (17:29 +0200)]
[ALSA] hda - Avoid unexpected breakage with ALC889A hack

The last ALC889A hack may break on some devices with certain model presets
since patch_alc*() have different model tables.  So, now it's handled in
the original patch_alc882() but fly to patch_alc883() in model=auto
appropriately.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] hda - Fix ALC889A codec support
Takashi Iwai [Wed, 16 Apr 2008 12:13:29 +0000 (14:13 +0200)]
[ALSA] hda - Fix ALC889A codec support

ALC889A is recognized ALC885/ALC882 but it's actually closer to
ALC888/ALC883.

Cc: Kasper Sandberg <lkml@metanurb.dk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] hda: Add 5.1 support for second headphone jack
Matthew Ranostay [Wed, 16 Apr 2008 11:13:59 +0000 (13:13 +0200)]
[ALSA] hda: Add 5.1 support for second headphone jack

Several 92hd7xxx and STAC9228 laptops have multiple headphone jacks,
the second headphone jack should be used for the 5.1 surround sound.
Add support for 'Headphone as Line Out' switch, which allows it be used
in 5.1 surround sound.

Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] soc - wm9712: Remove unneeded AC97_EXTENDED_MID updates
Mark Brown [Wed, 16 Apr 2008 10:59:55 +0000 (12:59 +0200)]
[ALSA] soc - wm9712: Remove unneeded AC97_EXTENDED_MID updates

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] oxygen: generalize DAC volume TLV handling
Clemens Ladisch [Wed, 16 Apr 2008 07:15:45 +0000 (09:15 +0200)]
[ALSA] oxygen: generalize DAC volume TLV handling

Add a pointer for DAC volume TLV data to the model structure so that the
model driver do not need to manually assign it in their control filter.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] oxygen: mute by default
Clemens Ladisch [Wed, 16 Apr 2008 07:14:30 +0000 (09:14 +0200)]
[ALSA] oxygen: mute by default

Initialize the playback volume controls as being muted and having
minimal volume.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] oxygen: generalize handling of DAC volume limits
Clemens Ladisch [Wed, 16 Apr 2008 07:13:36 +0000 (09:13 +0200)]
[ALSA] oxygen: generalize handling of DAC volume limits

Add fields for the DAC volume limits to the module structure so that
model drivers do not need to install their own control info handlers.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] hifier: remove empty hifier_mixer_init()
Clemens Ladisch [Wed, 16 Apr 2008 07:12:27 +0000 (09:12 +0200)]
[ALSA] hifier: remove empty hifier_mixer_init()

The empty hifier_mixer_init() function is useless; remove it.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] hda - Add support of AD1989A/AD1989B
Takashi Iwai [Tue, 15 Apr 2008 16:46:42 +0000 (18:46 +0200)]
[ALSA] hda - Add support of AD1989A/AD1989B

Added the support of AD1989A and AD1989B codecs.
These codecs can have multiple SPDIF devices, but currently we handle
only one SPDIF.  If any real devices with two SPDIF interfaces (likely
one for SPDIF and one for HDMI), we'll fix this rightly.

Otherwise, these codecs are pretty similar with AD1988.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] sound/core.h: evil #ifdefs
Pavel Machek [Mon, 14 Apr 2008 16:31:35 +0000 (18:31 +0200)]
[ALSA] sound/core.h: evil #ifdefs

snd_minor_info_oss_* is an function returning int _or_ comment,
depending on config parameters. That is truly evil, fix it.

Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] virtuoso: fix DX front panel I/O
Clemens Ladisch [Tue, 15 Apr 2008 06:57:31 +0000 (08:57 +0200)]
[ALSA] virtuoso: fix DX front panel I/O

Fix the GPIO 1 mixer control to enable I/O through the front panel
connector of the Xonar DX.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] snd_usb_caiaq: make high sample rates work with A8DJ
Daniel Mack [Mon, 14 Apr 2008 13:40:31 +0000 (15:40 +0200)]
[ALSA] snd_usb_caiaq: make high sample rates work with A8DJ

This patch for snd_usb_caiaq makes sample rates higher dann 48KHz work
with devices which have more than 2 stereo input/output pairs.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] snd_usb_caiaq: correct input channel order
Daniel Mack [Mon, 14 Apr 2008 13:39:47 +0000 (15:39 +0200)]
[ALSA] snd_usb_caiaq: correct input channel order

This patch corrects the input channel order of hardware supported by
snd_usb_caiaq.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] snd_usb_caiaq: fix potential lockups locking
Daniel Mack [Mon, 14 Apr 2008 13:39:14 +0000 (15:39 +0200)]
[ALSA] snd_usb_caiaq: fix potential lockups locking

This patch fixes potential lockups in snd_usb_caiaq by refining the
locking mechanims and by using usb_kill_urb() in favor to
usb_unlink_urb().

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] ASoC: Add support for 19.2 MHz MCLK in TLV320AIC3X
Jarkko Nikula [Mon, 14 Apr 2008 13:28:19 +0000 (15:28 +0200)]
[ALSA] ASoC: Add support for 19.2 MHz MCLK in TLV320AIC3X

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] wm9713: Don't control touch screen power on suspend
Mark Brown [Mon, 14 Apr 2008 13:27:30 +0000 (15:27 +0200)]
[ALSA] wm9713: Don't control touch screen power on suspend

Leave the power bit for the touch screen alone when suspending the WM9713
so that the touch screen driver can handle it. This allows the touch
screen to be used as a wakeup source when the system is suspended.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] sound: this amplifier only goes up to 7
Nick Andrew [Mon, 14 Apr 2008 13:22:11 +0000 (15:22 +0200)]
[ALSA] sound: this amplifier only goes up to 7

sound: kernel log levels are 0-7

Kernel log levels are 0-7, not 0-9.

Signed-off-by: Nick Andrew <nick@nick-andrew.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] hda-intel: Add Quanta IL1 ALC267 model
Herton Ronaldo Krzesinski [Mon, 14 Apr 2008 11:46:28 +0000 (13:46 +0200)]
[ALSA] hda-intel: Add Quanta IL1 ALC267 model

This adds support for Quanta IL1 mini-notebook to alsa, defining a new model
for it. It comes with an ALC267 codec chip. Some notes about this model:

* In headphone automute, I use AC_VERB_SET_PIN_WIDGET_CONTROL instead of common
  amp mute, to avoid conflict with mixer switch (mixer and automute use the
  same nid).
* The only connected capture sources in the hardware are the internal mic and
  external mic jack. So instead of using an input source selector like on other
  ALC268 models, the mic automute automatically switch between captures.

Signed-off-by: Herton Ronaldo Krzesinski <herton@mandriva.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] sound: fix platform driver hotplug/coldplug
Kay Sievers [Mon, 14 Apr 2008 11:33:36 +0000 (13:33 +0200)]
[ALSA] sound: fix platform driver hotplug/coldplug

Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform modalias is
prefixed with "platform:".  Add MODULE_ALIAS() to the hotpluggable sound
platform drivers, to re-enable auto loading.

[dbrownell@users.sourceforge.net: more drivers, registration fixes]

Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years ago[ALSA] hda: EAPD power management
Matthew Ranostay [Mon, 14 Apr 2008 11:32:54 +0000 (13:32 +0200)]
[ALSA] hda: EAPD power management

Power management support for EAPD enabled laptops, when headphones
are sensed it pulls the EAPD GPIO line low to power it down.

Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>