Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* BUG/PATCH alsaconf in 1.0.0pre1
@ 2003-11-19 12:28 Philippe De Muyter
  2003-11-26 18:07 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Philippe De Muyter @ 2003-11-19 12:28 UTC (permalink / raw)
  To: alsa-devel

Hello,

Here are two small unrelated fixes to alsaconf.in :

First, a big one : alsaconf does not work for any legacy soundchip,
because of a typo when checking that the driver modules are really
loaded.

Second, for the digital celebris pc's, the cs4236b chip has its control port
located at 0xf00.  That's currently not in the list of the tested cport's.

Could you apply that to the main source tree ?

Thanks in advance

Philippe

Philippe De Muyter  phdm at macqel dot be  Tel +32 27029044
Macq Electronique SA  rue de l'Aeronef 2  B-1140 Bruxelles  Fax +32 27029077

2003-11-19  Philippe De Muyter  <phdm@macqel.be>

	* alsaconf.in (ac_try_load, ac_try_capture) : Removed erroneous
	space between `snd[-_]' and $1 in grep search expression.
	(ac_try_card_cs4236) : Test also `0xf00' for `cport'.

--- alsaconf.in	2003-11-17 19:32:52.000000000 +0100
+++ alsaconf.in	2003-11-19 10:50:05.000000000 +0100
@@ -677,7 +677,7 @@ check_irq_avail () {
 ac_try_load () {
     test $do_logging = 1 && echo "$1 ${*:2}" >> $LOGFILE
     /sbin/modprobe snd-$1 ${*:2} >/dev/null 2>&1
-    $lsmod | grep -E '(snd-|snd_)' $1 >/dev/null 2>&1 || return 1
+    $lsmod | grep -E '(snd-|snd_)'$1 >/dev/null 2>&1 || return 1
 
     # mute mixers
     amixer set Master 0% mute >/dev/null 2>&1
@@ -711,7 +711,7 @@ ac_try_load () {
 ac_try_capture () {
     test $do_logging = 1 && echo "$1 ${*:2}" >> $LOGFILE
     /sbin/modprobe snd-$1 ${*:3} >/dev/null 2>&1
-    $lsmod | grep -E '(snd-|snd_)' $1 >/dev/null 2>&1 || return 1
+    $lsmod | grep -E '(snd-|snd_)'$1 >/dev/null 2>&1 || return 1
 
     # mute mixers
     amixer set Master 0% mute >/dev/null 2>&1
@@ -913,7 +913,7 @@ ac_try_card_cs4236 () {
     card=cs4236
     irq_list=`check_irq_avail 5 7 9 11 12 15`
     isapnp=`ac_check_option $card ${mpfx}isapnp 0`
-    for cport in 0x538 0x210; do
+    for cport in 0x538 0x210 0xf00; do
 	for port in 0x530 0x534; do
 	    opts="${mpfx}port=$port ${mpfx}cport=$cport $isapnp"
 	    ac_try_dmas $card "$opts" $irq_list && return 0



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/

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

* Re: BUG/PATCH alsaconf in 1.0.0pre1
  2003-11-19 12:28 BUG/PATCH alsaconf in 1.0.0pre1 Philippe De Muyter
@ 2003-11-26 18:07 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2003-11-26 18:07 UTC (permalink / raw)
  To: Philippe De Muyter; +Cc: alsa-devel

At Wed, 19 Nov 2003 13:28:08 +0100 (CET),
Philippe De Muyter wrote:
> 
> Hello,
> 
> Here are two small unrelated fixes to alsaconf.in :
> 
> First, a big one : alsaconf does not work for any legacy soundchip,
> because of a typo when checking that the driver modules are really
> loaded.
> 
> Second, for the digital celebris pc's, the cs4236b chip has its control port
> located at 0xf00.  That's currently not in the list of the tested cport's.
> 
> Could you apply that to the main source tree ?

thanks for the patch.  applied to cvs now.


Takashi


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/

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

end of thread, other threads:[~2003-11-26 18:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-19 12:28 BUG/PATCH alsaconf in 1.0.0pre1 Philippe De Muyter
2003-11-26 18:07 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox