All of lore.kernel.org
 help / color / mirror / Atom feed
* 1.0.16rc1 release
@ 2008-01-22 11:49 Jaroslav Kysela
  2008-01-22 16:23 ` James Pearson
  2008-01-22 19:25 ` 1.0.16rc1 release -- error: ‘system_utsname’ undeclared Rick Measham
  0 siblings, 2 replies; 19+ messages in thread
From: Jaroslav Kysela @ 2008-01-22 11:49 UTC (permalink / raw)
  To: ALSA development

Hello all,

	1.0.16rc1 release is available for download on 
http://www.alsa-project.org . I expect to release 1.0.16rc2 on next 
Tuesday.

					Jaroslav

-----
Jaroslav Kysela <perex@perex.cz>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 1.0.16rc1 release
  2008-01-22 11:49 1.0.16rc1 release Jaroslav Kysela
@ 2008-01-22 16:23 ` James Pearson
  2008-01-22 16:50   ` Takashi Iwai
  2008-01-22 19:25 ` 1.0.16rc1 release -- error: ‘system_utsname’ undeclared Rick Measham
  1 sibling, 1 reply; 19+ messages in thread
From: James Pearson @ 2008-01-22 16:23 UTC (permalink / raw)
  To: ALSA development

Jaroslav Kysela wrote:
> Hello all,
> 
> 	1.0.16rc1 release is available for download on 
> http://www.alsa-project.org . I expect to release 1.0.16rc2 on next 
> Tuesday.

Build problem on RHEL4/CentOS4:

In file included from /tmp/alsa-driver-1.0.16rc1/acore/ioctl32/hwdep32.c:16:
/tmp/alsa-driver-1.0.16rc1/acore/ioctl32/hwdep32_new.c:21:20: driver.h: 
No such file or directory
make[4]: *** [/tmp/alsa-driver-1.0.16rc1/acore/ioctl32/hwdep32.o] Error 1
make[3]: *** [/tmp/alsa-driver-1.0.16rc1/acore/ioctl32] Error 2
make[2]: *** [/tmp/alsa-driver-1.0.16rc1/acore] Error 2
make[1]: *** [_module_/tmp/alsa-driver-1.0.16rc1] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.9-67.mpc29-smp-x86_64'
make: *** [compile] Error 2

It looks like alsa-driver-1.0.16rc1/acore/ioctl32/hwdep32_new.c should 
be including "adriver.h" not "driver.h" ??

Also, at MODPOST stage:

*** Warning: "mutex_destroy" 
[/tmp/alsa-driver-1.0.16rc1/pci/oxygen/snd-oxygen-lib.ko] undefined!
*** Warning: "do_posix_clock_monotonic_gettime" 
[/tmp/alsa-driver-1.0.16rc1/acore/snd-timer.ko] undefined!
*** Warning: "do_posix_clock_monotonic_gettime" 
[/tmp/alsa-driver-1.0.16rc1/acore/snd-pcm.ko] undefined!

I'm not sure why its complaining about do_posix_clock_monotonic_gettime, 
as this is there in the 2.6.9 RHEL4 kernel.

James Pearson

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 1.0.16rc1 release
  2008-01-22 16:23 ` James Pearson
@ 2008-01-22 16:50   ` Takashi Iwai
  2008-01-22 17:15     ` James Pearson
  0 siblings, 1 reply; 19+ messages in thread
From: Takashi Iwai @ 2008-01-22 16:50 UTC (permalink / raw)
  To: James Pearson; +Cc: ALSA development

At Tue, 22 Jan 2008 16:23:28 +0000,
James Pearson wrote:
> 
> Jaroslav Kysela wrote:
> > Hello all,
> > 
> > 	1.0.16rc1 release is available for download on 
> > http://www.alsa-project.org . I expect to release 1.0.16rc2 on next 
> > Tuesday.
> 
> Build problem on RHEL4/CentOS4:
> 
> In file included from /tmp/alsa-driver-1.0.16rc1/acore/ioctl32/hwdep32.c:16:
> /tmp/alsa-driver-1.0.16rc1/acore/ioctl32/hwdep32_new.c:21:20: driver.h: 
> No such file or directory
> make[4]: *** [/tmp/alsa-driver-1.0.16rc1/acore/ioctl32/hwdep32.o] Error 1
> make[3]: *** [/tmp/alsa-driver-1.0.16rc1/acore/ioctl32] Error 2
> make[2]: *** [/tmp/alsa-driver-1.0.16rc1/acore] Error 2
> make[1]: *** [_module_/tmp/alsa-driver-1.0.16rc1] Error 2
> make[1]: Leaving directory `/usr/src/kernels/2.6.9-67.mpc29-smp-x86_64'
> make: *** [compile] Error 2
> 
> It looks like alsa-driver-1.0.16rc1/acore/ioctl32/hwdep32_new.c should 
> be including "adriver.h" not "driver.h" ??

Yes, it's a typo.

> 
> Also, at MODPOST stage:
> 
> *** Warning: "mutex_destroy" 
> [/tmp/alsa-driver-1.0.16rc1/pci/oxygen/snd-oxygen-lib.ko] undefined!

Do you have alsa-driver*/include/mutex.h?
Or, RH has an uncomplete mutex implementation?

> *** Warning: "do_posix_clock_monotonic_gettime" 
> [/tmp/alsa-driver-1.0.16rc1/acore/snd-timer.ko] undefined!
> *** Warning: "do_posix_clock_monotonic_gettime" 
> [/tmp/alsa-driver-1.0.16rc1/acore/snd-pcm.ko] undefined!
> 
> I'm not sure why its complaining about do_posix_clock_monotonic_gettime, 
> as this is there in the 2.6.9 RHEL4 kernel.

It seems that the function isn't exported.

The fix patch is below.  Give it a try.


thanks,

Takashi

diff -r c75eee2af74c acore/ioctl32/hwdep32_new.c
--- a/acore/ioctl32/hwdep32_new.c	Tue Jan 22 11:46:53 2008 +0100
+++ b/acore/ioctl32/hwdep32_new.c	Tue Jan 22 17:49:05 2008 +0100
@@ -18,7 +18,7 @@
  *
  */
 
-#include "driver.h"
+#include "adriver.h"
 #include <linux/time.h>
 #include <linux/fs.h>
 #include <sound/core.h>
diff -r c75eee2af74c include/adriver.h
--- a/include/adriver.h	Tue Jan 22 11:46:53 2008 +0100
+++ b/include/adriver.h	Tue Jan 22 17:49:05 2008 +0100
@@ -1483,7 +1483,8 @@ typedef unsigned long uintptr_t;
 typedef unsigned long uintptr_t;
 #endif
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 16)
+#include <linux/time.h>
 #define do_posix_clock_monotonic_gettime getnstimeofday
 #endif

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 1.0.16rc1 release
  2008-01-22 16:50   ` Takashi Iwai
@ 2008-01-22 17:15     ` James Pearson
  2008-01-22 17:20       ` Takashi Iwai
  0 siblings, 1 reply; 19+ messages in thread
From: James Pearson @ 2008-01-22 17:15 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: ALSA development

Takashi Iwai wrote:
> At Tue, 22 Jan 2008 16:23:28 +0000,
> James Pearson wrote:
>>
>>It looks like alsa-driver-1.0.16rc1/acore/ioctl32/hwdep32_new.c should 
>>be including "adriver.h" not "driver.h" ??
> 
> 
> Yes, it's a typo.
> 
> 
>>Also, at MODPOST stage:
>>
>>*** Warning: "mutex_destroy" 
>>[/tmp/alsa-driver-1.0.16rc1/pci/oxygen/snd-oxygen-lib.ko] undefined!
> 
> 
> Do you have alsa-driver*/include/mutex.h?

There is no alsa-driver*/include/mutex.h, there is a 
include/linux/mutex.h as part of the kernel - which contains:

/*
  * Copyright (c) 2006 Cisco Systems.  All rights reserved.
  *
  * This file is released under the GPLv2.
  */

/* mutex compatibility for pre-2.6.16 kernels */

#ifndef __LINUX_MUTEX_H
#define __LINUX_MUTEX_H

#include <asm/semaphore.h>

#define mutex semaphore
#define DEFINE_MUTEX(foo) DECLARE_MUTEX(foo)
#define mutex_init(foo) init_MUTEX(foo)
#define mutex_lock(foo) down(foo)
#define mutex_lock_interruptible(foo) down_interruptible(foo)
/* this function follows the spin_trylock() convention, so        *
  * it is negated to the down_trylock() return values! Be careful  */
#define mutex_trylock(foo) !down_trylock(foo)
#define mutex_unlock(foo) up(foo)

#endif /* __LINUX_MUTEX_H */

i.e. it doesn't define mutex_destroy()

> Or, RH has an uncomplete mutex implementation?

Don't know - see above?

>>*** Warning: "do_posix_clock_monotonic_gettime" 
>>[/tmp/alsa-driver-1.0.16rc1/acore/snd-timer.ko] undefined!
>>*** Warning: "do_posix_clock_monotonic_gettime" 
>>[/tmp/alsa-driver-1.0.16rc1/acore/snd-pcm.ko] undefined!
>>
>>I'm not sure why its complaining about do_posix_clock_monotonic_gettime, 
>>as this is there in the 2.6.9 RHEL4 kernel.
> 
> 
> It seems that the function isn't exported.
> 
> The fix patch is below.  Give it a try.

Patch fixed these issues

Thanks

James Pearson

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 1.0.16rc1 release
  2008-01-22 17:15     ` James Pearson
@ 2008-01-22 17:20       ` Takashi Iwai
  2008-01-22 17:39         ` James Pearson
  0 siblings, 1 reply; 19+ messages in thread
From: Takashi Iwai @ 2008-01-22 17:20 UTC (permalink / raw)
  To: James Pearson; +Cc: ALSA development

At Tue, 22 Jan 2008 17:15:18 +0000,
James Pearson wrote:
> 
> Takashi Iwai wrote:
> > At Tue, 22 Jan 2008 16:23:28 +0000,
> > James Pearson wrote:
> >>
> >>It looks like alsa-driver-1.0.16rc1/acore/ioctl32/hwdep32_new.c should 
> >>be including "adriver.h" not "driver.h" ??
> > 
> > 
> > Yes, it's a typo.
> > 
> > 
> >>Also, at MODPOST stage:
> >>
> >>*** Warning: "mutex_destroy" 
> >>[/tmp/alsa-driver-1.0.16rc1/pci/oxygen/snd-oxygen-lib.ko] undefined!
> > 
> > 
> > Do you have alsa-driver*/include/mutex.h?
> 
> There is no alsa-driver*/include/mutex.h, there is a 
> include/linux/mutex.h as part of the kernel - which contains:
> 
> /*
>   * Copyright (c) 2006 Cisco Systems.  All rights reserved.
>   *
>   * This file is released under the GPLv2.
>   */
> 
> /* mutex compatibility for pre-2.6.16 kernels */
> 
> #ifndef __LINUX_MUTEX_H
> #define __LINUX_MUTEX_H
> 
> #include <asm/semaphore.h>
> 
> #define mutex semaphore
> #define DEFINE_MUTEX(foo) DECLARE_MUTEX(foo)
> #define mutex_init(foo) init_MUTEX(foo)
> #define mutex_lock(foo) down(foo)
> #define mutex_lock_interruptible(foo) down_interruptible(foo)
> /* this function follows the spin_trylock() convention, so        *
>   * it is negated to the down_trylock() return values! Be careful  */
> #define mutex_trylock(foo) !down_trylock(foo)
> #define mutex_unlock(foo) up(foo)
> 
> #endif /* __LINUX_MUTEX_H */
> 
> i.e. it doesn't define mutex_destroy()
> 
> > Or, RH has an uncomplete mutex implementation?
> 
> Don't know - see above?

Looks like so...  Sigh.

Can someone report RedHat to fix their kernel?


> >>*** Warning: "do_posix_clock_monotonic_gettime" 
> >>[/tmp/alsa-driver-1.0.16rc1/acore/snd-timer.ko] undefined!
> >>*** Warning: "do_posix_clock_monotonic_gettime" 
> >>[/tmp/alsa-driver-1.0.16rc1/acore/snd-pcm.ko] undefined!
> >>
> >>I'm not sure why its complaining about do_posix_clock_monotonic_gettime, 
> >>as this is there in the 2.6.9 RHEL4 kernel.
> > 
> > 
> > It seems that the function isn't exported.
> > 
> > The fix patch is below.  Give it a try.
> 
> Patch fixed these issues

Thanks for confirmation.  They are already on HG tree.


Takashi

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 1.0.16rc1 release
  2008-01-22 17:20       ` Takashi Iwai
@ 2008-01-22 17:39         ` James Pearson
  2008-01-22 17:56           ` Tobin Davis
  0 siblings, 1 reply; 19+ messages in thread
From: James Pearson @ 2008-01-22 17:39 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: ALSA development

Takashi Iwai wrote:

>>
>>>Or, RH has an uncomplete mutex implementation?
>>
>>Don't know - see above?
> 
> 
> Looks like so...  Sigh.
> 
> Can someone report RedHat to fix their kernel?

May be that should be someone that has an interest in sound and has 
recently started working for RedHat ??

Is it possible to define mutex_destroy in the ALSA code if it isn't 
defined elsewhere for this case?

Thanks

James Pearson

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 1.0.16rc1 release
  2008-01-22 17:39         ` James Pearson
@ 2008-01-22 17:56           ` Tobin Davis
  0 siblings, 0 replies; 19+ messages in thread
From: Tobin Davis @ 2008-01-22 17:56 UTC (permalink / raw)
  To: James Pearson; +Cc: Takashi Iwai, ALSA development

One of the main problems with supporting Redhat kernels is that they
backport functions into their kernels from later revisions.  As an
example, there is a typedef (gfp_t) that in the alsa driver will be used
if the kernel is older than a certain version.  Redhat added it in their
Enterprise 4.4 kernel, but not their 4.3 kernel (both have the same
major rev - 2.6.9).  This makes it difficult at the preparser level, and
I think the way we got around that was in the configure script.  But it
takes extra work to make alsa-driver compile on the various
distributions that do this kind of backporting (fortunately this is
limited to Redhat/Centos at the moment AFAIK), and Alsa doesn't have the
manpower to do all of these fixes.

If someone that works for Redhat or works on Redhat distros wants to
jump in and help, great.

On Tue, 2008-01-22 at 17:39 +0000, James Pearson wrote:

> Takashi Iwai wrote:
> 
> >>
> >>>Or, RH has an uncomplete mutex implementation?
> >>
> >>Don't know - see above?
> > 
> > 
> > Looks like so...  Sigh.
> > 
> > Can someone report RedHat to fix their kernel?
> 
> May be that should be someone that has an interest in sound and has 
> recently started working for RedHat ??
> 
> Is it possible to define mutex_destroy in the ALSA code if it isn't 
> defined elsewhere for this case?
> 
> Thanks
> 
> James Pearson
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

-- 
Tobin Davis 


The sheep died in the wool.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 1.0.16rc1 release -- error: ‘system_utsname’ undeclared
  2008-01-22 11:49 1.0.16rc1 release Jaroslav Kysela
  2008-01-22 16:23 ` James Pearson
@ 2008-01-22 19:25 ` Rick Measham
  2008-01-23  7:03   ` Takashi Iwai
  1 sibling, 1 reply; 19+ messages in thread
From: Rick Measham @ 2008-01-22 19:25 UTC (permalink / raw)
  To: alsa-devel


[-- Attachment #1.1: Type: text/plain, Size: 1150 bytes --]

Jaroslav Kysela wrote:
> 	1.0.16rc1 release is available for download on 

Running Kubuntu:

# uname -a
Linux lugtop 2.6.20-16-386 #2 Sun Sep 23 19:47:10 UTC 2007 i686 GNU/Linux


During the make:

In file included from 
/usr/src/alsa/alsa-driver-1.0.16rc1/acore/info_oss.c:7:
/usr/src/alsa/alsa-driver-1.0.16rc1/acore/../alsa-kernel/core/info_oss.c: 
In function ‘snd_sndstat_proc_read’:
/usr/src/alsa/alsa-driver-1.0.16rc1/acore/../alsa-kernel/core/info_oss.c:96: 
error: ‘system_utsname’ undeclared (first use in this function)
/usr/src/alsa/alsa-driver-1.0.16rc1/acore/../alsa-kernel/core/info_oss.c:96: 
error: (Each undeclared identifier is reported only once
/usr/src/alsa/alsa-driver-1.0.16rc1/acore/../alsa-kernel/core/info_oss.c:96: 
error: for each function it appears in.)
make[3]: *** [/usr/src/alsa/alsa-driver-1.0.16rc1/acore/info_oss.o] Error 1
make[2]: *** [/usr/src/alsa/alsa-driver-1.0.16rc1/acore] Error 2
make[1]: *** [_module_/usr/src/alsa/alsa-driver-1.0.16rc1] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-16-386'
make: *** [compile] Error 2


Cheers!
Rick Measham


[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3241 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 1.0.16rc1 release -- error: ‘system_utsname’ undeclared
  2008-01-22 19:25 ` 1.0.16rc1 release -- error: ‘system_utsname’ undeclared Rick Measham
@ 2008-01-23  7:03   ` Takashi Iwai
  2008-01-23  7:31     ` Takashi Iwai
  0 siblings, 1 reply; 19+ messages in thread
From: Takashi Iwai @ 2008-01-23  7:03 UTC (permalink / raw)
  To: Rick Measham; +Cc: alsa-devel

At Wed, 23 Jan 2008 06:25:54 +1100,
Rick Measham wrote:
> 
> [1  <multipart/signed (7bit)>]
> [1.1  <text/plain; UTF-8 (quoted-printable)>]
> Jaroslav Kysela wrote:
> > 	1.0.16rc1 release is available for download on 
> 
> Running Kubuntu:
> 
> # uname -a
> Linux lugtop 2.6.20-16-386 #2 Sun Sep 23 19:47:10 UTC 2007 i686 GNU/Linux
> 
> 
> During the make:
> 
> In file included from 
> /usr/src/alsa/alsa-driver-1.0.16rc1/acore/info_oss.c:7:
> /usr/src/alsa/alsa-driver-1.0.16rc1/acore/../alsa-kernel/core/info_oss.c: 
> In function ‘snd_sndstat_proc_read’:
> /usr/src/alsa/alsa-driver-1.0.16rc1/acore/../alsa-kernel/core/info_oss.c:96: 
> error: ‘system_utsname’ undeclared (first use in this function)
> /usr/src/alsa/alsa-driver-1.0.16rc1/acore/../alsa-kernel/core/info_oss.c:96: 
> error: (Each undeclared identifier is reported only once
> /usr/src/alsa/alsa-driver-1.0.16rc1/acore/../alsa-kernel/core/info_oss.c:96: 
> error: for each function it appears in.)
> make[3]: *** [/usr/src/alsa/alsa-driver-1.0.16rc1/acore/info_oss.o] Error 1
> make[2]: *** [/usr/src/alsa/alsa-driver-1.0.16rc1/acore] Error 2
> make[1]: *** [_module_/usr/src/alsa/alsa-driver-1.0.16rc1] Error 2
> make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-16-386'
> make: *** [compile] Error 2

Isn't it fixed on HG version?


Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 1.0.16rc1 release -- error: ‘system_utsname’ undeclared
  2008-01-23  7:03   ` Takashi Iwai
@ 2008-01-23  7:31     ` Takashi Iwai
  2008-01-24 12:14       ` Rick Measham
  0 siblings, 1 reply; 19+ messages in thread
From: Takashi Iwai @ 2008-01-23  7:31 UTC (permalink / raw)
  To: Rick Measham; +Cc: alsa-devel

At Wed, 23 Jan 2008 08:03:05 +0100,
I wrote:
> 
> At Wed, 23 Jan 2008 06:25:54 +1100,
> Rick Measham wrote:
> > 
> > [1  <multipart/signed (7bit)>]
> > [1.1  <text/plain; UTF-8 (quoted-printable)>]
> > Jaroslav Kysela wrote:
> > > 	1.0.16rc1 release is available for download on 
> > 
> > Running Kubuntu:
> > 
> > # uname -a
> > Linux lugtop 2.6.20-16-386 #2 Sun Sep 23 19:47:10 UTC 2007 i686 GNU/Linux
> > 
> > 
> > During the make:
> > 
> > In file included from 
> > /usr/src/alsa/alsa-driver-1.0.16rc1/acore/info_oss.c:7:
> > /usr/src/alsa/alsa-driver-1.0.16rc1/acore/../alsa-kernel/core/info_oss.c: 
> > In function ‘snd_sndstat_proc_read’:
> > /usr/src/alsa/alsa-driver-1.0.16rc1/acore/../alsa-kernel/core/info_oss.c:96: 
> > error: ‘system_utsname’ undeclared (first use in this function)
> > /usr/src/alsa/alsa-driver-1.0.16rc1/acore/../alsa-kernel/core/info_oss.c:96: 
> > error: (Each undeclared identifier is reported only once
> > /usr/src/alsa/alsa-driver-1.0.16rc1/acore/../alsa-kernel/core/info_oss.c:96: 
> > error: for each function it appears in.)
> > make[3]: *** [/usr/src/alsa/alsa-driver-1.0.16rc1/acore/info_oss.o] Error 1
> > make[2]: *** [/usr/src/alsa/alsa-driver-1.0.16rc1/acore] Error 2
> > make[1]: *** [_module_/usr/src/alsa/alsa-driver-1.0.16rc1] Error 2
> > make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-16-386'
> > make: *** [compile] Error 2
> 
> Isn't it fixed on HG version?

Nevermind, I myself can confirm that it's broken.
The patch below should fix the problem.


Takashi

diff -r a5f603cb254a configure.in
--- a/configure.in	Tue Jan 22 17:52:34 2008 +0100
+++ b/configure.in	Wed Jan 23 08:28:56 2008 +0100
@@ -2571,7 +2571,7 @@ init_utsname="0"
 init_utsname="0"
 ac_save_CFLAGS="$CFLAGS"
 ac_save_CC="$CC"
-CFLAGS="$KERNEL_CHECK_CFLAGS -Werror"
+CFLAGS="$KERNEL_CHECK_CFLAGS -Werror=implicit-function-declaration"
 CC=$KCC
 AC_TRY_COMPILE([
 #define __KERNEL__
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 1.0.16rc1 release -- error: ‘system_utsname’ undeclared
  2008-01-23  7:31     ` Takashi Iwai
@ 2008-01-24 12:14       ` Rick Measham
  2008-01-24 13:24         ` Takashi Iwai
  0 siblings, 1 reply; 19+ messages in thread
From: Rick Measham @ 2008-01-24 12:14 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel


[-- Attachment #1.1: Type: text/plain, Size: 9023 bytes --]

Takashi Iwai wrote:
> Nevermind, I myself can confirm that it's broken.
> The patch below should fix the problem.

I've grabbed hg and tried to apply the patch, but the line to be patched 
reads:
CFLAGS="$KERNEL_CHECK_CFLAGS"

So I changed it by hand to include the patched version:
CFLAGS="$KERNEL_CHECK_CFLAGS -Werror=implicit-function-declaration"

Which got me past the previous problem. However, hgcompile errors during 
make on alsa-driver/pci/ice1712/prodigy_hifi.o -- which I don't need. So 
once it errored, I ran:

./configure -with-cards=hda-intel --with-sequencer=yes

Which then had no problems with configure; make; make install.

I then ran hgcompile and 'make install' on alsa-lib and alsa-utils.

All fine.

But then when I went to restart alsa all hell broke loose!

# /etc/init.d/alsasound restart
Shutting down sound driver: done
Starting sound driver: snd-hda-intel FATAL: Error inserting snd 
(/lib/modules/2.6.20-16-386/kernel/sound/acore/snd.ko): Unknown symbol 
in module, or unknown parameter (see dmesg)
WARNING: Error running install command for snd
WARNING: Error inserting snd_hwdep 
(/lib/modules/2.6.20-16-386/kernel/sound/acore/snd-hwdep.ko): Unknown 
symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_timer 
(/lib/modules/2.6.20-16-386/kernel/sound/acore/snd-timer.ko): Unknown 
symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting snd 
(/lib/modules/2.6.20-16-386/kernel/sound/acore/snd.ko): Unknown symbol 
in module, or unknown parameter (see dmesg)
WARNING: Error running install command for snd
WARNING: Error inserting snd_timer 
(/lib/modules/2.6.20-16-386/kernel/sound/acore/snd-timer.ko): Unknown 
symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting snd_pcm 
(/lib/modules/2.6.20-16-386/kernel/sound/acore/snd-pcm.ko): Unknown 
symbol in module, or unknown parameter (see dmesg)
WARNING: Error running install command for snd_pcm
FATAL: Error inserting snd_hda_intel 
(/lib/modules/2.6.20-16-386/kernel/sound/pci/hda/snd-hda-intel.ko): 
Unknown symbol in module, or unknown parameter (see dmesg)
done


So as it suggested, I checked dmesg:

[96738.292000] snd: Unknown symbol pm_unregister
[96738.300000] snd_hwdep: Unknown symbol snd_info_register
[96738.300000] snd_hwdep: Unknown symbol snd_info_create_module_entry
[96738.300000] snd_hwdep: Unknown symbol snd_info_free_entry
[96738.300000] snd_hwdep: Unknown symbol snd_unregister_oss_device
[96738.300000] snd_hwdep: Unknown symbol snd_verbose_printk
[96738.300000] snd_hwdep: Unknown symbol snd_register_oss_device
[96738.300000] snd_hwdep: Unknown symbol snd_ctl_register_ioctl
[96738.300000] snd_hwdep: Unknown symbol snd_card_file_add
[96738.300000] snd_hwdep: Unknown symbol snd_iprintf
[96738.300000] snd_hwdep: Unknown symbol snd_major
[96738.300000] snd_hwdep: Unknown symbol snd_unregister_device
[96738.300000] snd_hwdep: Unknown symbol snd_device_new
[96738.300000] snd_hwdep: Unknown symbol snd_ctl_unregister_ioctl
[96738.300000] snd_hwdep: Unknown symbol snd_lookup_oss_minor_data
[96738.300000] snd_hwdep: Unknown symbol snd_lookup_minor_data
[96738.300000] snd_hwdep: Unknown symbol snd_card_file_remove
[96738.300000] snd_hwdep: Unknown symbol snd_register_device_for_dev
[96738.304000] snd_timer: Unknown symbol snd_info_register
[96738.304000] snd_timer: Unknown symbol snd_info_create_module_entry
[96738.304000] snd_timer: Unknown symbol snd_info_free_entry
[96738.304000] snd_timer: Unknown symbol snd_verbose_printk
[96738.304000] snd_timer: Unknown symbol snd_iprintf
[96738.304000] snd_timer: Unknown symbol snd_ecards_limit
[96738.304000] snd_timer: Unknown symbol snd_oss_info_register
[96738.304000] snd_timer: Unknown symbol snd_unregister_device
[96738.304000] snd_timer: Unknown symbol snd_device_new
[96738.304000] snd_timer: Unknown symbol snd_register_device_for_dev
[96738.344000] snd: Unknown symbol pm_unregister
[96738.344000] snd_timer: Unknown symbol snd_info_register
[96738.344000] snd_timer: Unknown symbol snd_info_create_module_entry
[96738.344000] snd_timer: Unknown symbol snd_info_free_entry
[96738.344000] snd_timer: Unknown symbol snd_verbose_printk
[96738.344000] snd_timer: Unknown symbol snd_iprintf
[96738.344000] snd_timer: Unknown symbol snd_ecards_limit
[96738.344000] snd_timer: Unknown symbol snd_oss_info_register
[96738.344000] snd_timer: Unknown symbol snd_unregister_device
[96738.344000] snd_timer: Unknown symbol snd_device_new
[96738.344000] snd_timer: Unknown symbol snd_register_device_for_dev
[96738.348000] snd_pcm: Unknown symbol snd_info_register
[96738.348000] snd_pcm: Unknown symbol snd_info_create_module_entry
[96738.348000] snd_pcm: Unknown symbol snd_timer_notify
[96738.348000] snd_pcm: Unknown symbol snd_timer_interrupt
[96738.348000] snd_pcm: Unknown symbol snd_info_free_entry
[96738.348000] snd_pcm: Unknown symbol snd_add_device_sysfs_file
[96738.348000] snd_pcm: Unknown symbol snd_info_get_str
[96738.348000] snd_pcm: Unknown symbol snd_verbose_printk
[96738.348000] snd_pcm: Unknown symbol snd_ctl_register_ioctl
[96738.348000] snd_pcm: Unknown symbol snd_card_file_add
[96738.348000] snd_pcm: Unknown symbol snd_iprintf
[96738.348000] snd_pcm: Unknown symbol snd_major
[96738.348000] snd_pcm: Unknown symbol snd_unregister_device
[96738.348000] snd_pcm: Unknown symbol snd_timer_new
[96738.348000] snd_pcm: Unknown symbol snd_device_new
[96738.348000] snd_pcm: Unknown symbol snd_ctl_unregister_ioctl
[96738.348000] snd_pcm: Unknown symbol snd_lookup_minor_data
[96738.348000] snd_pcm: Unknown symbol snd_info_create_card_entry
[96738.348000] snd_pcm: Unknown symbol snd_power_wait
[96738.348000] snd_pcm: Unknown symbol snd_device_free
[96738.348000] snd_pcm: Unknown symbol snd_card_file_remove
[96738.348000] snd_pcm: Unknown symbol snd_register_device_for_dev
[96738.348000] snd_pcm: Unknown symbol snd_device_register
[96738.348000] snd_pcm: Unknown symbol snd_info_get_line
[96738.356000] snd_hda_intel: Unknown symbol snd_ctl_add
[96738.356000] snd_hda_intel: Unknown symbol snd_pcm_new
[96738.356000] snd_hda_intel: Unknown symbol snd_pcm_limit_hw_rates
[96738.356000] snd_hda_intel: Unknown symbol snd_card_register
[96738.356000] snd_hda_intel: Unknown symbol snd_card_free
[96738.356000] snd_hda_intel: Unknown symbol 
snd_pcm_lib_preallocate_pages_for_all
[96738.356000] snd_hda_intel: Unknown symbol snd_card_proc_new
[96738.356000] snd_hda_intel: Unknown symbol snd_ctl_find_id
[96738.356000] snd_hda_intel: Unknown symbol snd_verbose_printk
[96738.356000] snd_hda_intel: Unknown symbol snd_ctl_new1
[96738.356000] snd_hda_intel: Unknown symbol snd_component_add
[96738.356000] snd_hda_intel: Unknown symbol snd_card_new
[96738.356000] snd_hda_intel: Unknown symbol snd_iprintf
[96738.356000] snd_hda_intel: Unknown symbol snd_pcm_lib_malloc_pages
[96738.356000] snd_hda_intel: Unknown symbol snd_ctl_boolean_mono_info
[96738.356000] snd_hda_intel: Unknown symbol snd_pcm_lib_ioctl
[96738.356000] snd_hda_intel: Unknown symbol snd_pcm_lib_free_pages
[96738.356000] snd_hda_intel: Unknown symbol snd_hwdep_new
[96738.356000] snd_hda_intel: Unknown symbol snd_pcm_set_ops
[96738.356000] snd_hda_intel: Unknown symbol snd_pcm_hw_constraint_list
[96738.356000] snd_hda_intel: Unknown symbol snd_device_new
[96738.356000] snd_hda_intel: Unknown symbol snd_pcm_suspend_all
[96738.356000] snd_hda_intel: Unknown symbol snd_card_disconnect
[96738.356000] snd_hda_intel: Unknown symbol snd_pcm_hw_constraint_integer
[96738.356000] snd_hda_intel: Unknown symbol snd_pci_quirk_lookup
[96738.356000] snd_hda_intel: Unknown symbol snd_pcm_period_elapsed
[96738.356000] snd_hda_intel: Unknown symbol snd_pcm_hw_constraint_step
[96738.356000] snd_hda_intel: Unknown symbol snd_pcm_format_width

So it looks like I've done something fairly wrong somewhere :-D

I had this problem with I only configured for hda-intel with another 
release (I can't remember which) but it went away if I didn't specify 
any parameters to 'configure'.

Unfortunately, I can't do that while 
alsa-driver/pci/ice1712/prodigy_hifi.o is erroring during the make:

   [-- lots snipped --]
   CC [M]  /usr/src/alsa/alsa-driver/pci/ice1712/aureon.o
   CC [M]  /usr/src/alsa/alsa-driver/pci/ice1712/vt1720_mobo.o
   CC [M]  /usr/src/alsa/alsa-driver/pci/ice1712/pontis.o
   CC [M]  /usr/src/alsa/alsa-driver/pci/ice1712/prodigy192.o
make[4]: *** No rule to make target 
`/usr/src/alsa/alsa-driver/pci/ice1712/prodigy_hifi.o', needed by 
`/usr/src/alsa/alsa-driver/pci/ice1712/snd-ice1712.o'.  Stop.
make[3]: *** [/usr/src/alsa/alsa-driver/pci/ice1712] Error 2
make[2]: *** [/usr/src/alsa/alsa-driver/pci] Error 2
make[1]: *** [_module_/usr/src/alsa/alsa-driver] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-16-386'
make: *** [compile] Error 2

Any chance of further help? I'm concerned that I might be taking your 
time away from dev work to fix some obscurity ..

Cheers!
Rick Measham

P.S. Would you prefer that I put outputs into a pastebin and just 
include links?

[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3241 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 1.0.16rc1 release -- error: ‘system_utsname’ undeclared
  2008-01-24 12:14       ` Rick Measham
@ 2008-01-24 13:24         ` Takashi Iwai
  2008-01-24 21:12           ` 1.0.16rc1 release -- error: 'system_utsname' undeclared Rick Measham
  0 siblings, 1 reply; 19+ messages in thread
From: Takashi Iwai @ 2008-01-24 13:24 UTC (permalink / raw)
  To: Rick Measham; +Cc: alsa-devel

At Thu, 24 Jan 2008 23:14:46 +1100,
Rick Measham wrote:
> 
> Takashi Iwai wrote:
> > Nevermind, I myself can confirm that it's broken.
> > The patch below should fix the problem.
> 
> I've grabbed hg and tried to apply the patch, but the line to be patched 
> reads:
> CFLAGS="$KERNEL_CHECK_CFLAGS"
> 
> So I changed it by hand to include the patched version:
> CFLAGS="$KERNEL_CHECK_CFLAGS -Werror=implicit-function-declaration"
> 
> Which got me past the previous problem. However, hgcompile errors during 
> make on alsa-driver/pci/ice1712/prodigy_hifi.o -- which I don't
> need. 

It is surely on the current HG repo.  You must be using an older
repo.  Try hg.alsa-project.org instead of hg-mirror.

> So as it suggested, I checked dmesg:
> 
> [96738.292000] snd: Unknown symbol pm_unregister

Check include/config.h whether CONFIG_HAV_PNP_SUSPEND is
defined.  It must be defined for 2.6.20.  If not, check config.log.

The rest unknown symbol errors can be a chain reaction.

> P.S. Would you prefer that I put outputs into a pastebin and just 
> include links?

I guess config.log is too big for pastebin.  You post with a
compressed attachment.


Takashi

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 1.0.16rc1 release -- error: 'system_utsname' undeclared
  2008-01-24 13:24         ` Takashi Iwai
@ 2008-01-24 21:12           ` Rick Measham
  2008-01-25  8:03             ` Takashi Iwai
  0 siblings, 1 reply; 19+ messages in thread
From: Rick Measham @ 2008-01-24 21:12 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel


[-- Attachment #1.1: Type: text/plain, Size: 1603 bytes --]

Takashi Iwai wrote:
> It is surely on the current HG repo.  You must be using an older
> repo.  Try hg.alsa-project.org instead of hg-mirror.

That fixed it. I grabbed the latest alsa-driver and it didn't need the 
patch. It all built just fine and installed without errors.

However it didn't fix the speakers so I'm no further ahead that 0.15 or 
0.14 (input and output jacks work, but the internal speakers don't)

dmesg tells me there are zero speaker_outs. So I figure it didn't 
auto-detect them, and there are no pins specified for this exact setup.

# dmesg
[128924.764000] ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 21 (level, 
low) -> IRQ 21
[128924.764000] PCI: Setting latency timer of device 0000:00:1b.0 to 64
[128924.796000] ALSA /usr/src/alsa/alsa-driver/pci/hda/hda_codec.c:2855: 
autoconfig: line_outs=4 (0xd/0xc/0xf/0xb/0x0)
[128924.796000] ALSA /usr/src/alsa/alsa-driver/pci/hda/hda_codec.c:2859: 
    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[128924.796000] ALSA /usr/src/alsa/alsa-driver/pci/hda/hda_codec.c:2863: 
    hp_outs=1 (0xa/0x0/0x0/0x0/0x0)
[128924.796000] ALSA /usr/src/alsa/alsa-driver/pci/hda/hda_codec.c:2871: 
    inputs: mic=0xe, fmic=0x10, line=0x0, fline=0x0, cd=0x0, aux=0x0
[128924.796000] ALSA 
/usr/src/alsa/alsa-driver/pci/hda/../../alsa-kernel/pci/hda/patch_sigmatel.c:2172: 
dac_nids=4 (0x2/0x3/0x5/0x4/0x0)

My full setup (as output by alsa-info.sh) can be seen at 
http://pastebin.ca/871257

If there isn't an 'obvious' fix, I'm most happy to spend the time doing 
whatever to get it working if you can point me in the right direction.

Cheers!
Rick Measham

[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3241 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 1.0.16rc1 release -- error: 'system_utsname' undeclared
  2008-01-24 21:12           ` 1.0.16rc1 release -- error: 'system_utsname' undeclared Rick Measham
@ 2008-01-25  8:03             ` Takashi Iwai
       [not found]               ` <4799CC9B.9050809@measham.id.au>
  0 siblings, 1 reply; 19+ messages in thread
From: Takashi Iwai @ 2008-01-25  8:03 UTC (permalink / raw)
  To: Rick Measham; +Cc: alsa-devel

At Fri, 25 Jan 2008 08:12:06 +1100,
Rick Measham wrote:
> 
> Takashi Iwai wrote:
> > It is surely on the current HG repo.  You must be using an older
> > repo.  Try hg.alsa-project.org instead of hg-mirror.
> 
> That fixed it. I grabbed the latest alsa-driver and it didn't need the 
> patch. It all built just fine and installed without errors.
> 
> However it didn't fix the speakers so I'm no further ahead that 0.15 or 
> 0.14 (input and output jacks work, but the internal speakers don't)
> 
> dmesg tells me there are zero speaker_outs. So I figure it didn't 
> auto-detect them, and there are no pins specified for this exact setup.

OK, it means that either the BIOS set up is broken or the preset
pincfg is broken.  Could you check which board_config is chosen for
your device?  It's selected via PCI SSID (see lspci -nv output).

If it's a bugin preset pincfg, it'd be realtivelyeasy to fix (once
after we figure out which pin corresponds to the spekaer output).

thanks,

Takashi
 
> # dmesg
> [128924.764000] ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 21 (level, 
> low) -> IRQ 21
> [128924.764000] PCI: Setting latency timer of device 0000:00:1b.0 to 64
> [128924.796000] ALSA /usr/src/alsa/alsa-driver/pci/hda/hda_codec.c:2855: 
> autoconfig: line_outs=4 (0xd/0xc/0xf/0xb/0x0)
> [128924.796000] ALSA /usr/src/alsa/alsa-driver/pci/hda/hda_codec.c:2859: 
>     speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
> [128924.796000] ALSA /usr/src/alsa/alsa-driver/pci/hda/hda_codec.c:2863: 
>     hp_outs=1 (0xa/0x0/0x0/0x0/0x0)
> [128924.796000] ALSA /usr/src/alsa/alsa-driver/pci/hda/hda_codec.c:2871: 
>     inputs: mic=0xe, fmic=0x10, line=0x0, fline=0x0, cd=0x0, aux=0x0
> [128924.796000] ALSA 
> /usr/src/alsa/alsa-driver/pci/hda/../../alsa-kernel/pci/hda/patch_sigmatel.c:2172: 
> dac_nids=4 (0x2/0x3/0x5/0x4/0x0)
> 
> My full setup (as output by alsa-info.sh) can be seen at 
> http://pastebin.ca/871257
> 
> If there isn't an 'obvious' fix, I'm most happy to spend the time doing 
> whatever to get it working if you can point me in the right direction.
> 
> Cheers!
> Rick Measham

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 1.0.16rc1 release -- error: 'system_utsname' undeclared
       [not found]               ` <4799CC9B.9050809@measham.id.au>
@ 2008-01-25 12:10                 ` Takashi Iwai
  2008-01-25 13:33                   ` Rick Measham
  0 siblings, 1 reply; 19+ messages in thread
From: Takashi Iwai @ 2008-01-25 12:10 UTC (permalink / raw)
  To: Rick Measham; +Cc: alsa-devel

At Fri, 25 Jan 2008 22:48:43 +1100,
Rick Measham wrote:
> 
> > Rick Measham wrote:
> >> dmesg tells me there are zero speaker_outs. So I figure it didn't 
> >> auto-detect them, and there are no pins specified for this exact setup.
> 
> Takashi Iwai wrote:
> > OK, it means that either the BIOS set up is broken or the preset
> > pincfg is broken.  Could you check which board_config is chosen for
> > your device?  It's selected via PCI SSID (see lspci -nv output).
> > 
> > If it's a bugin preset pincfg, it'd be realtivelyeasy to fix (once
> > after we figure out which pin corresponds to the spekaer output).
> 
> I'm certainly hoping for the latter .. and it looks hopeful
> 
> 00:1b.0 0403: 8086:27d8 (rev 01)
>          Subsystem: 1028:01bf
>          Flags: bus master, fast devsel, latency 0, IRQ 21
>          Memory at dfffc000 (64-bit, non-prefetchable) [size=16K]
>          Capabilities: [50] Power Management version 2
>          Capabilities: [60] Message Signalled Interrupts: Mask- 64bit+ 
> Queue=0/0 Enable-
>          Capabilities: [70] Express Unknown type IRQ 0
> 
> Lines up with:
> /*
>      STAC 922X pin configs for
>      102801BF
> */
> static unsigned int dell_922x_m81_pin_configs[10] = {
>          0x0321101f, 0x01112024, 0x01111222, 0x91174220,
>          0x03a11050, 0x01116221, 0x90a70330, 0x01452340,
>          0x40C003f1, 0x405003f0,
> };
> 
> 
> So it certainly looks like we might have some hope?
> 
> It's listed as "unknown Dell" .. so let me fill that blank: It's the XPS 
>   M2010.
> 
> Now for the billion dollar question: How do I work out what the 
> pin_configs SHOULD be? I can play guess-the-number, but that's going to 
> take some time and I'd guess a lot of crashing!

That pin config actually looks strange.  It defines 4 "speaker"
outputs.  The autocfg routine in hda-intel driver switches these
speaker outputs to line-outs (just for compatibility issue).  That's
why you don't see any speaker there.

The patch below is a quick fix to change the jack types for 3
outputs.  Give it a try.

Now more questions:

- Does your machine have 3 output jacks in addition to HP?

- What is the content of /proc/asound/card0/codec#* when you load the
  driver with model=auto?  After setting it, reboot so that BIOS
  resets the configuration.

- Show both codec#* files for model=auto and without model option.


thanks,

Takashi

---

diff -r 19029da61288 pci/hda/patch_sigmatel.c
--- a/pci/hda/patch_sigmatel.c	Fri Jan 25 11:56:57 2008 +0100
+++ b/pci/hda/patch_sigmatel.c	Fri Jan 25 13:04:20 2008 +0100
@@ -1273,8 +1273,8 @@ static unsigned int dell_922x_d82_pin_co
     102801BF
 */
 static unsigned int dell_922x_m81_pin_configs[10] = {
-	0x0321101f, 0x01112024, 0x01111222, 0x91174220,
-	0x03a11050, 0x01116221, 0x90a70330, 0x01452340, 
+	0x0321101f, 0x01012024, 0x01011222, 0x91174220,
+	0x03a11050, 0x01016221, 0x90a70330, 0x01452340, 
 	0x40C003f1, 0x405003f0,
 };

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 1.0.16rc1 release -- error: 'system_utsname' undeclared
  2008-01-25 12:10                 ` Takashi Iwai
@ 2008-01-25 13:33                   ` Rick Measham
  2008-01-25 13:48                     ` Takashi Iwai
  0 siblings, 1 reply; 19+ messages in thread
From: Rick Measham @ 2008-01-25 13:33 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel


[-- Attachment #1.1: Type: text/plain, Size: 11373 bytes --]

Takashi Iwai wrote:
 > That pin config actually looks strange.  It defines 4 "speaker"
 > outputs.  The autocfg routine in hda-intel driver switches these
 > speaker outputs to line-outs (just for compatibility issue).  That's
 > why you don't see any speaker there.
 >
 > The patch below is a quick fix to change the jack types for 3
 > outputs.  Give it a try.

Tried it, speaker-test still gives no sound out the internal speakers

dmesg, however, now shows 1 speaker:
[ 7023.408000] ALSA /usr/src/alsa/alsa-driver/pci/hda/hda_codec.c:2859:
      speaker_outs=1 (0xd/0x0/0x0/0x0/0x0)


 > Now more questions:
 >
 > - Does your machine have 3 output jacks in addition to HP?

There's the HP and Mic on the left-hand-side and then on the back is an 
S/PDIF port that has an adapter with a whole pile of inputs and outputs. 
I don't know what they all do, so maybe if I just take a photo, it will
help: http://rick.measham.id.au/paste/spdif.jpg

 > - What is the content of /proc/asound/card0/codec#* when you load the
 >   driver with model=auto?  After setting it, reboot so that BIOS
 >   resets the configuration.
 >
 > - Show both codec#* files for model=auto and without model option.
They appear to be exactly the same ..

# tail -n1 /etc/modprobe.d/alsa-base
options snd-hda-intel model=auto

# cat /proc/asound/card0/codec#0
Codec: SigmaTel STAC9221 A1
Address: 0
Vendor Id: 0x83847680
Subsystem Id: 0x102801bf
Revision Id: 0x103601
No Modem Function Group found
Default PCM:
      rates [0x7e0]: 44100 48000 88200 96000 176400 192000
      bits [0xe]: 16 20 24
      formats [0x1]: PCM
Default Amp-In caps: ofs=0x00, nsteps=0x0e, stepsize=0x05, mute=1
Default Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x02, mute=1
Node 0x02 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
    Amp-Out caps: N/A
    Amp-Out vals:  [0x7f 0x7f]
    Power: 0x0
Node 0x03 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
    Amp-Out caps: N/A
    Amp-Out vals:  [0xff 0xff]
    Power: 0x0
Node 0x04 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
    Amp-Out caps: N/A
    Amp-Out vals:  [0xff 0xff]
    Power: 0x0
Node 0x05 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
    Amp-Out caps: N/A
    Amp-Out vals:  [0x7f 0x7f]
    Power: 0x0
Node 0x06 [Audio Input] wcaps 0x1d0541: Stereo
    Power: 0x0
    Connection: 1
       0x17
Node 0x07 [Audio Input] wcaps 0x1d0541: Stereo
    Power: 0x0
    Connection: 1
       0x18
Node 0x08 [Audio Output] wcaps 0x40211: Stereo Digital
    PCM:
      rates [0x7e0]: 44100 48000 88200 96000 176400 192000
      bits [0xe]: 16 20 24
      formats [0x5]: PCM AC3
Node 0x09 [Audio Input] wcaps 0x140311: Stereo Digital
    PCM:
      rates [0x160]: 44100 48000 96000
      bits [0xe]: 16 20 24
      formats [0x5]: PCM AC3
    Connection: 1
       0x11
Node 0x0a [Pin Complex] wcaps 0x400181: Stereo
    Pincap 0x08173f: IN OUT HP Detect
    Pin Default 0x0321101f: [Jack] HP Out at Ext Left
      Conn = 1/8, Color = Black
    EAPD: 0x0
    Pin-ctls: 0xc0: OUT HP
    Connection: 1
       0x02
Node 0x0b [Pin Complex] wcaps 0x400181: Stereo
    Pincap 0x081737: IN OUT Detect
    Pin Default 0x01012024: [Jack] Line Out at Ext Rear
      Conn = 1/8, Color = Grey
    EAPD: 0x0
    Pin-ctls: 0x40: OUT
    Connection: 1
       0x04
Node 0x0c [Pin Complex] wcaps 0x400181: Stereo
    Pincap 0x081737: IN OUT Detect
    Pin Default 0x01011222: [Jack] Line Out at Ext Rear
      Conn = 1/8, Color = Black
    EAPD: 0x0
    Pin-ctls: 0x40: OUT
    Connection: 1
       0x03
Node 0x0d [Pin Complex] wcaps 0x400181: Stereo
    Pincap 0x08173f: IN OUT HP Detect
    Pin Default 0x91174220: [Fixed] Speaker at Int Rear
      Conn = Analog, Color = Green
    EAPD: 0x0
    Pin-ctls: 0x40: OUT
    Connection: 1
       0x02
Node 0x0e [Pin Complex] wcaps 0x400081: Stereo
    Pincap 0x0824: IN Detect
    Pin Default 0x03a11050: [Jack] Mic at Ext Left
      Conn = 1/8, Color = Black
    EAPD: 0x0
    Pin-ctls: 0x20: IN
Node 0x0f [Pin Complex] wcaps 0x400181: Stereo
    Pincap 0x0837: IN OUT Detect
    Pin Default 0x01016221: [Jack] Line Out at Ext Rear
      Conn = 1/8, Color = Orange
    EAPD: 0x0
    Pin-ctls: 0x40: OUT
    Connection: 1
       0x05
Node 0x10 [Pin Complex] wcaps 0x400301: Stereo Digital
    Pincap 0x0810: OUT
    Pin Default 0x90a70330: [Fixed] Mic at Int N/A
      Conn = Analog, Color = Unknown
    EAPD: 0x0
    Pin-ctls: 0x00:
    Connection: 3
       0x08* 0x17 0x19
Node 0x11 [Pin Complex] wcaps 0x430681: Stereo Digital
    Pincap 0x0810024: IN EAPD Detect
    Pin Default 0x01452340: [Jack] SPDIF Out at Ext Rear
      Conn = Optical, Color = Grey
    EAPD: 0x0
    Pin-ctls: 0x00:
    Power: 0x0
Node 0x12 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
    Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
    Amp-Out vals:  [0x00 0x00]
    Connection: 7
       0x0e* 0x15 0x0f 0x0b 0x0c 0x0d 0x0a
Node 0x13 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
    Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
    Amp-Out vals:  [0x00 0x00]
    Connection: 7
       0x0e* 0x15 0x0f 0x0b 0x0c 0x0d 0x0a
Node 0x14 [Beep Generator Widget] wcaps 0x70000c: Mono Amp-Out
    Amp-Out caps: ofs=0x03, nsteps=0x03, stepsize=0x17, mute=0
    Amp-Out vals:  [0x00]
Node 0x15 [Pin Complex] wcaps 0x400001: Stereo
    Pincap 0x0820: IN
    Pin Default 0x40c003f1: [N/A] SPDIF In at Ext N/A
      Conn = Unknown, Color = Unknown
    Pin-ctls: 0x00:
Node 0x16 [Volume Knob Widget] wcaps 0x600000: Mono
    Volume-Knob: delta=1, steps=127, direct=1, val=127
    Connection: 4
       0x02* 0x03 0x04 0x05
Node 0x17 [Audio Selector] wcaps 0x300903: Stereo Amp-In
    Amp-In caps: N/A
    Amp-In vals:  [0x80 0x80]
    Connection: 1
       0x12
Node 0x18 [Audio Selector] wcaps 0x300903: Stereo Amp-In
    Amp-In caps: N/A
    Amp-In vals:  [0x00 0x00]
    Connection: 1
       0x13
Node 0x19 [Vendor Defined Widget] wcaps 0xf30201: Stereo Digital
Node 0x1a [Audio Output] wcaps 0x30201: Stereo Digital
Node 0x1b [Pin Complex] wcaps 0x400301: Stereo Digital
    Pincap 0x0810: OUT
    Pin Default 0x405003f0: [N/A] Digital Out at Ext N/A
      Conn = Unknown, Color = Unknown
    Pin-ctls: 0x00:
    Connection: 1
       0x1a


# cat /proc/asound/card0/codec#1
Codec: Conexant ID 2bfa
Address: 1
Vendor Id: 0x14f12bfa
Subsystem Id: 0x14f100c3
Revision Id: 0x90000
Modem Function Group: 0x2


++ REMOVED the options line and restarted

# tail -n1 /etc/modprobe.d/alsa-base
#options snd-hda-intel model=auto

# cat /proc/asound/card0/codec#0
Codec: SigmaTel STAC9221 A1
Address: 0
Vendor Id: 0x83847680
Subsystem Id: 0x102801bf
Revision Id: 0x103601
No Modem Function Group found
Default PCM:
     rates [0x7e0]: 44100 48000 88200 96000 176400 192000
     bits [0xe]: 16 20 24
     formats [0x1]: PCM
Default Amp-In caps: ofs=0x00, nsteps=0x0e, stepsize=0x05, mute=1
Default Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x02, mute=1
Node 0x02 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
   Amp-Out caps: N/A
   Amp-Out vals:  [0x7f 0x7f]
   Power: 0x0
Node 0x03 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
   Amp-Out caps: N/A
   Amp-Out vals:  [0xff 0xff]
   Power: 0x0
Node 0x04 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
   Amp-Out caps: N/A
   Amp-Out vals:  [0xff 0xff]
   Power: 0x0
Node 0x05 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
   Amp-Out caps: N/A
   Amp-Out vals:  [0x7f 0x7f]
   Power: 0x0
Node 0x06 [Audio Input] wcaps 0x1d0541: Stereo
   Power: 0x0
   Connection: 1
      0x17
Node 0x07 [Audio Input] wcaps 0x1d0541: Stereo
   Power: 0x0
   Connection: 1
      0x18
Node 0x08 [Audio Output] wcaps 0x40211: Stereo Digital
   PCM:
     rates [0x7e0]: 44100 48000 88200 96000 176400 192000
     bits [0xe]: 16 20 24
     formats [0x5]: PCM AC3
Node 0x09 [Audio Input] wcaps 0x140311: Stereo Digital
   PCM:
     rates [0x160]: 44100 48000 96000
     bits [0xe]: 16 20 24
     formats [0x5]: PCM AC3
   Connection: 1
      0x11
Node 0x0a [Pin Complex] wcaps 0x400181: Stereo
   Pincap 0x08173f: IN OUT HP Detect
   Pin Default 0x0321101f: [Jack] HP Out at Ext Left
     Conn = 1/8, Color = Black
   EAPD: 0x0
   Pin-ctls: 0xc0: OUT HP
   Connection: 1
      0x02
Node 0x0b [Pin Complex] wcaps 0x400181: Stereo
   Pincap 0x081737: IN OUT Detect
   Pin Default 0x01012024: [Jack] Line Out at Ext Rear
     Conn = 1/8, Color = Grey
   EAPD: 0x0
   Pin-ctls: 0x40: OUT
   Connection: 1
      0x04
Node 0x0c [Pin Complex] wcaps 0x400181: Stereo
   Pincap 0x081737: IN OUT Detect
   Pin Default 0x01011222: [Jack] Line Out at Ext Rear
     Conn = 1/8, Color = Black
   EAPD: 0x0
   Pin-ctls: 0x40: OUT
   Connection: 1
      0x03
Node 0x0d [Pin Complex] wcaps 0x400181: Stereo
   Pincap 0x08173f: IN OUT HP Detect
   Pin Default 0x91174220: [Fixed] Speaker at Int Rear
     Conn = Analog, Color = Green
   EAPD: 0x0
   Pin-ctls: 0x40: OUT
   Connection: 1
      0x02
Node 0x0e [Pin Complex] wcaps 0x400081: Stereo
   Pincap 0x0824: IN Detect
   Pin Default 0x03a11050: [Jack] Mic at Ext Left
     Conn = 1/8, Color = Black
   EAPD: 0x0
   Pin-ctls: 0x20: IN
Node 0x0f [Pin Complex] wcaps 0x400181: Stereo
   Pincap 0x0837: IN OUT Detect
   Pin Default 0x01016221: [Jack] Line Out at Ext Rear
     Conn = 1/8, Color = Orange
   EAPD: 0x0
   Pin-ctls: 0x40: OUT
   Connection: 1
      0x05
Node 0x10 [Pin Complex] wcaps 0x400301: Stereo Digital
   Pincap 0x0810: OUT
   Pin Default 0x90a70330: [Fixed] Mic at Int N/A
     Conn = Analog, Color = Unknown
   EAPD: 0x0
   Pin-ctls: 0x00:
   Connection: 3
      0x08* 0x17 0x19
Node 0x11 [Pin Complex] wcaps 0x430681: Stereo Digital
   Pincap 0x0810024: IN EAPD Detect
   Pin Default 0x01452340: [Jack] SPDIF Out at Ext Rear
     Conn = Optical, Color = Grey
   EAPD: 0x0
   Pin-ctls: 0x00:
   Power: 0x0
Node 0x12 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
   Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
   Amp-Out vals:  [0x00 0x00]
   Connection: 7
      0x0e* 0x15 0x0f 0x0b 0x0c 0x0d 0x0a
Node 0x13 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
   Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
   Amp-Out vals:  [0x00 0x00]
   Connection: 7
      0x0e* 0x15 0x0f 0x0b 0x0c 0x0d 0x0a
Node 0x14 [Beep Generator Widget] wcaps 0x70000c: Mono Amp-Out
   Amp-Out caps: ofs=0x03, nsteps=0x03, stepsize=0x17, mute=0
   Amp-Out vals:  [0x00]
Node 0x15 [Pin Complex] wcaps 0x400001: Stereo
   Pincap 0x0820: IN
   Pin Default 0x40c003f1: [N/A] SPDIF In at Ext N/A
     Conn = Unknown, Color = Unknown
   Pin-ctls: 0x00:
Node 0x16 [Volume Knob Widget] wcaps 0x600000: Mono
   Volume-Knob: delta=1, steps=127, direct=1, val=127
   Connection: 4
      0x02* 0x03 0x04 0x05
Node 0x17 [Audio Selector] wcaps 0x300903: Stereo Amp-In
   Amp-In caps: N/A
   Amp-In vals:  [0x80 0x80]
   Connection: 1
      0x12
Node 0x18 [Audio Selector] wcaps 0x300903: Stereo Amp-In
   Amp-In caps: N/A
   Amp-In vals:  [0x00 0x00]
   Connection: 1
      0x13
Node 0x19 [Vendor Defined Widget] wcaps 0xf30201: Stereo Digital
Node 0x1a [Audio Output] wcaps 0x30201: Stereo Digital
Node 0x1b [Pin Complex] wcaps 0x400301: Stereo Digital
   Pincap 0x0810: OUT
   Pin Default 0x405003f0: [N/A] Digital Out at Ext N/A
     Conn = Unknown, Color = Unknown
   Pin-ctls: 0x00:
   Connection: 1
      0x1a


# cat /proc/asound/card0/codec#1
Codec: Conexant ID 2bfa
Address: 1
Vendor Id: 0x14f12bfa
Subsystem Id: 0x14f100c3
Revision Id: 0x90000
Modem Function Group: 0x2

[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3241 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 1.0.16rc1 release -- error: 'system_utsname' undeclared
  2008-01-25 13:33                   ` Rick Measham
@ 2008-01-25 13:48                     ` Takashi Iwai
  2008-01-25 13:51                       ` Rick Measham
  0 siblings, 1 reply; 19+ messages in thread
From: Takashi Iwai @ 2008-01-25 13:48 UTC (permalink / raw)
  To: Rick Measham; +Cc: alsa-devel

At Sat, 26 Jan 2008 00:33:06 +1100,
Rick Measham wrote:
> 
> Takashi Iwai wrote:
>  > That pin config actually looks strange.  It defines 4 "speaker"
>  > outputs.  The autocfg routine in hda-intel driver switches these
>  > speaker outputs to line-outs (just for compatibility issue).  That's
>  > why you don't see any speaker there.
>  >
>  > The patch below is a quick fix to change the jack types for 3
>  > outputs.  Give it a try.
> 
> Tried it, speaker-test still gives no sound out the internal speakers
> 
> dmesg, however, now shows 1 speaker:
> [ 7023.408000] ALSA /usr/src/alsa/alsa-driver/pci/hda/hda_codec.c:2859:
>       speaker_outs=1 (0xd/0x0/0x0/0x0/0x0)
> 
> 
>  > Now more questions:
>  >
>  > - Does your machine have 3 output jacks in addition to HP?
> 
> There's the HP and Mic on the left-hand-side and then on the back is an 
> S/PDIF port that has an adapter with a whole pile of inputs and outputs. 
> I don't know what they all do, so maybe if I just take a photo, it will
> help: http://rick.measham.id.au/paste/spdif.jpg
> 
>  > - What is the content of /proc/asound/card0/codec#* when you load the
>  >   driver with model=auto?  After setting it, reboot so that BIOS
>  >   resets the configuration.
>  >
>  > - Show both codec#* files for model=auto and without model option.
> They appear to be exactly the same ..
> 
> # tail -n1 /etc/modprobe.d/alsa-base
> options snd-hda-intel model=auto

After adding model=auto, then reboot and get a proc file.  The result
you attached is the overridden one.

BTW, please update to the very latest HG version.  I see that you are
still using the older version.  The newer version should have more
detailed proc output.

If I understand correctly, the speaker output on this laptop has never
worked, so far, right?


thanks,

Takashi

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 1.0.16rc1 release -- error: 'system_utsname' undeclared
  2008-01-25 13:48                     ` Takashi Iwai
@ 2008-01-25 13:51                       ` Rick Measham
  2008-01-25 14:19                         ` Takashi Iwai
  0 siblings, 1 reply; 19+ messages in thread
From: Rick Measham @ 2008-01-25 13:51 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel


[-- Attachment #1.1: Type: text/plain, Size: 624 bytes --]

Takashi Iwai wrote:
> After adding model=auto, then reboot and get a proc file.  The result
> you attached is the overridden one.

Hmm .. that's what I did ..

> BTW, please update to the very latest HG version.  I see that you are
> still using the older version.  The newer version should have more
> detailed proc output.

It's 24 hours old (or maybe 48?) but OK, I'll do that

> If I understand correctly, the speaker output on this laptop has never
> worked, so far, right?

Never. For anyone using Linux :-/

I'll grab the latest Hg in the morning (it's 0050 here) and try again.

Thanks HEAPS!

Cheers!
Rick Measham


[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3241 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 1.0.16rc1 release -- error: 'system_utsname' undeclared
  2008-01-25 13:51                       ` Rick Measham
@ 2008-01-25 14:19                         ` Takashi Iwai
  0 siblings, 0 replies; 19+ messages in thread
From: Takashi Iwai @ 2008-01-25 14:19 UTC (permalink / raw)
  To: Rick Measham; +Cc: alsa-devel

At Sat, 26 Jan 2008 00:51:58 +1100,
Rick Measham wrote:
> 
> Takashi Iwai wrote:
> > After adding model=auto, then reboot and get a proc file.  The result
> > you attached is the overridden one.
> 
> Hmm .. that's what I did ..

OK, then it's indeed so.  Interesting that the pincfg is identical
with the *modified* preset.

> > BTW, please update to the very latest HG version.  I see that you are
> > still using the older version.  The newer version should have more
> > detailed proc output.
> 
> It's 24 hours old (or maybe 48?) but OK, I'll do that

Hm... is it from hg.alsa-project.org?

The newest changeset is:
changeset:   5771:19029da61288
tag:         tip
user:        tiwai
date:        Fri Jan 25 11:56:57 2008 +0100
summary:     hda-codec - Add missing slave for AD1884 master switch

Check "hg log" whether it matches.

> > If I understand correctly, the speaker output on this laptop has never
> > worked, so far, right?
> 
> Never. For anyone using Linux :-/

Then this is at least no regression.  A good thing (let's think
positively :)

Seriously, another missing thing can be either EAPD on this widget or
EAPD via GPIO.
In the former case, the patch like below might fix.
In the latter case, you'd need to add the following line appropriately
in patch_stac922x():

	spec->gpio_mask = spec->gpio_data = 0x01;

The value 0x01 can vary depending on the machine implementation.  Try
different values if the above doesn't work.


Takashi

---

diff -r 19029da61288 pci/hda/patch_sigmatel.c
--- a/pci/hda/patch_sigmatel.c	Fri Jan 25 11:56:57 2008 +0100
+++ b/pci/hda/patch_sigmatel.c	Fri Jan 25 15:18:03 2008 +0100
@@ -610,6 +610,7 @@ static struct hda_verb stac922x_core_ini
 static struct hda_verb stac922x_core_init[] = {
 	/* set master volume and direct control */	
 	{ 0x16, AC_VERB_SET_VOLUME_KNOB_CONTROL, 0xff},
+	{ 0x0d, AC_VERB_SET_EAPD_BTLENABLE, 0x02 }, /* EAPD on speaker */
 	{}
 };

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2008-01-25 14:19 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-22 11:49 1.0.16rc1 release Jaroslav Kysela
2008-01-22 16:23 ` James Pearson
2008-01-22 16:50   ` Takashi Iwai
2008-01-22 17:15     ` James Pearson
2008-01-22 17:20       ` Takashi Iwai
2008-01-22 17:39         ` James Pearson
2008-01-22 17:56           ` Tobin Davis
2008-01-22 19:25 ` 1.0.16rc1 release -- error: ‘system_utsname’ undeclared Rick Measham
2008-01-23  7:03   ` Takashi Iwai
2008-01-23  7:31     ` Takashi Iwai
2008-01-24 12:14       ` Rick Measham
2008-01-24 13:24         ` Takashi Iwai
2008-01-24 21:12           ` 1.0.16rc1 release -- error: 'system_utsname' undeclared Rick Measham
2008-01-25  8:03             ` Takashi Iwai
     [not found]               ` <4799CC9B.9050809@measham.id.au>
2008-01-25 12:10                 ` Takashi Iwai
2008-01-25 13:33                   ` Rick Measham
2008-01-25 13:48                     ` Takashi Iwai
2008-01-25 13:51                       ` Rick Measham
2008-01-25 14:19                         ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.