[Alsa-user] Alsa on Redhat Linux 2.6 Kernel

2007-07-24 Thread Wallace, Brooke
Hi,
 
I'm trying to install ALSA on a Redhat Linux 2.6 kernel.
 
I've downloaded the most recent software, ran configure, but it failed
to compile out of the box.
 
Most of documentation seems to related to 2.0 and 2.2 kernels. I'm
wondering if someone can point me to more up-to-date documentation.
 
I've been poking around and found that the apps aplay and arecord are
already included as part of the distro I have installed. There is some
talk in the docs about including ALSA as part of Linux, so I'm
wondering, has that already happened?
 
Obviously I'm a beginner with ALSA, and unfortunately audio as well, but
I'm tasked with reviewing ALSA for use in our embedded product, so any
pointers to getting started would be helpful.
 
-Brooke
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Alsa on Redhat Linux 2.6 Kernel

2007-07-24 Thread Bill Unruh
On Mon, 23 Jul 2007, Wallace, Brooke wrote:

 Hi,

 I'm trying to install ALSA on a Redhat Linux 2.6 kernel.

 I've downloaded the most recent software, ran configure, but it failed
 to compile out of the box.

Exactly which software did you download, and from where.

And what were the problems reported in the compile?
Remember that alsa is now part of the kernel, and since it is kernel code
you MUST have the source code for the precise kernel you are running
installed on your machine. 
This is the 
kernel-source*.i386.rpm
that you must have installed on your system.



 Most of documentation seems to related to 2.0 and 2.2 kernels. I'm
 wondering if someone can point me to more up-to-date documentation.

For what?



 I've been poking around and found that the apps aplay and arecord are
 already included as part of the distro I have installed. There is some
 talk in the docs about including ALSA as part of Linux, so I'm
 wondering, has that already happened?

Yes, a long time ago. Of course you have not told us which version of
redhat you are running.



 Obviously I'm a beginner with ALSA, and unfortunately audio as well, but
 I'm tasked with reviewing ALSA for use in our embedded product, so any
 pointers to getting started would be helpful.

Recent version of the kernel have alsa included. Now the most recent
version of alsa may be needed for your particular card, but again you have
given no info. It is probably that your card will already work out of the
box.



 -Brooke


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Help configuring the E-MU 1820m

2007-07-24 Thread Nicolas Mailhot

Le Lun 23 juillet 2007 23:25, James Courtier-Dutton a écrit :

 To capture sound on the EMU-1820m card, you need to run alsamixer, and
 adjust the EMU mixer (press F4 to get to it, it is over on the far
 right
 of the CAPTURE view) control to 0dB.
 This controls the digital capture gain from the EMU-1820m card.

 There is also a mixer control called DSP0 and DSP1 on the playback
 view.
 (should be in the capture view, but alsamixer has a bug) Adjust them
 to
 the Mic A input.

 then
 arecord -fdat -Ddefault  test.wav

 should capture some sound from Mic A.

Thank you very much for the instructions. I'll try them as soon as I
have some time to play with my computer (which may wait till end of
august) and report back if they don't work.

-- 
Nicolas Mailhot


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Alsa on Redhat Linux 2.6 Kernel

2007-07-24 Thread Wallace, Brooke
Thanks for the response Bill,

Here are some answers to your questions:

Version of Redhat:
Linux version 2.6.9-34.ELsmp ([EMAIL PROTECTED])
(gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)) #1 SMP Fri Feb 24
16:54:53 EST 2006

Software that I downloaded:

drwxr-x---  27 brookew users4096 Jul 23 19:20 alsa-driver-1.0.14rc4
-rwxr-x---   1 brookew users 2564644 Jul 23 16:46
alsa-driver-1.0.14rc4.tar.bz2
drwxr-x---  10 brookew users4096 May  2 01:03 alsa-lib-1.0.14rc4
-rwxr-x---   1 brookew users  784451 Jul 23 16:46
alsa-lib-1.0.14rc4.tar.bz2
drwxr-x---  15 brookew users4096 May  2 01:05 alsa-utils-1.0.14rc4
-rwxr-x---   1 brookew users 1013801 Jul 23 16:46
alsa-utils-1.0.14rc4.tar.bz2
drwxr-xr-x   2 brookew users   12288 Jun 11 01:54 doc
-rwxr-x---   1 brookew users   68594 Jul 23 16:46
mpg123-alsa-0.59o-1.i386.rpm
-rwxr-x---   1 brookew users   97369 Jul 23 16:46
mpg123-alsa-0.59o-1.src.rpm

Compile error:

make -C /lib/modules/2.6.9-34.ELsmp/source
SUBDIRS=/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4
O=/lib/modules/2.6.9-34.ELsmp/build CPP=gcc -E CC=gcc modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-34.EL-smp-i686'
  CC [M]
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.o
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:75: error: syntax error before snd_pcm_link_rwlock
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:75: warning: type defaults to `int' in declaration of
`snd_pcm_link_rwlock'
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:75: error: conflicting types for 'snd_pcm_link_rwlock'
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/include/sound/pc
m.h:463: error: previous declaration of 'snd_pcm_link_rwlock' was here
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:75: error: conflicting types for 'snd_pcm_link_rwlock'
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/include/sound/pc
m.h:463: error: previous declaration of 'snd_pcm_link_rwlock' was here
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:75: error: incompatible types in initialization
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:75: error: initializer element is not constant
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:75: warning: data definition has no type or storage class
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c: In function `snd_pcm_action_lock_irq':
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:814: warning: passing arg 1 of `_read_lock_irq' from incompatible
pointer type
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:826: warning: passing arg 1 of `_read_unlock_irq' from incompatible
pointer type
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c: In function `snd_pcm_suspend':
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:1107: warning: passing arg 1 of `_read_lock_irqsave' from
incompatible pointer type
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:1109: warning: passing arg 1 of `_read_unlock_irqrestore' from
incompatible pointer type
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c: In function `snd_pcm_link':
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:1640: warning: passing arg 1 of `_write_lock_irq' from incompatible
pointer type
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:1665: warning: passing arg 1 of `_write_unlock_irq' from incompatible
pointer type
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c: In function `snd_pcm_unlink':
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:1684: warning: passing arg 1 of `_write_lock_irq' from incompatible
pointer type
/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_native
.c:1700: warning: passing arg 1 of `_write_unlock_irq' from incompatible
pointer type
make[4]: ***
[/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore/pcm_nativ
e.o] Error 1
make[3]: ***
[/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4/acore] Error 2
make[2]: ***
[_module_/local/mnt/workspace/brookew/alsa/alsa-driver-1.0.14rc4] Error
2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.9-34.EL-smp-i686'
make: *** [compile] Error 2


 -Original Message-
 From: Bill Unruh [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, July 24, 2007 12:06 AM
 To: Wallace, Brooke
 Cc: [EMAIL PROTECTED]
 Subject: Re: [Alsa-user] Alsa on Redhat Linux 2.6 Kernel
 
 On Mon, 23 Jul 2007, Wallace, Brooke wrote:
 
  Hi,
 
  I'm trying to install ALSA on a Redhat Linux 2.6 kernel.
 
  I've downloaded the most recent software, ran configure, 
 but it failed
  to compile out of the 

Re: [Alsa-user] snd-hda-codec not being loaded

2007-07-24 Thread Takashi Iwai
At Mon, 23 Jul 2007 18:50:34 +0200,
Nigel Henry wrote:
 
 On Monday 23 July 2007 17:53, Takashi Iwai wrote:
  At Sun, 22 Jul 2007 23:53:33 +0200,
 
  Nigel Henry wrote:
   I'm looking at a problem on the Fedora list with the 2.6.22.1-27.fc7
   kernel, and snd-hda-intel.
  
   Sound had worked ok on FC6, before upgrading to Fedora7
  
/lib/modules/2.6.22.1-27.fc7/kernel/sound/pci/hda shows only the module
   snd-hda-intel. There is no snd-hda-codec.
  
   cat /proc/asound/version for the 2.6.22.1-27.fc7 kernel shows alsa 1.0.14
  
   I suggested trying an earlier kernel, as both my original kernel (from
   the install discs) , and a later kernel both had snd-hda-intel, and
   snd-hda-codec available. Alsa version here is 1.0.14rc3. He went for that
   and now has sound again.
  
   The question is. has snd-hda-codec now been integrated into snd-hda-intel
   , with the release of alsa 1.0.14. I ask this because for my TV card the
   tda9887 module was separate to the tuner module pre 2.6.18 kernels, but
   tda9887 is now integrated with the tuner module 2.6.18 kernels , and
   onward.
  
   I wondered if something similar was going on with snd-hda-intel, and that
   now snd-hda-codec is now integrated with snd-hda-intel for alsa 1.0.14.
 
  Yes, snd-hda-codec is now integrated into snd-hda-intel module.
 
 
  Takashi
 
 Hello Takashi. Thanks for confirming that. There is still the problem though 
 that booting with kernel 2.6.22.1-27.fc7 (alsa 1.0.14) produces no sound, but 
 booting with an earlier kernel using alsa 1.0.14rc3 (where snd-hda-intel, and 
 snd-hda-codec are separate modules), sound works with no problems, as it did 
 on his FC6 install before upgrading to Fedora 7.

It doesn't tell you whether the culprit is the ALSA update or the
other part of the kernel.  Could you check whether FC6 kernel + ALSA
1.0.14 (or better HG version) causes the same problem?


Takashi

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] snd-hda-codec not being loaded

2007-07-24 Thread Nigel Henry
On Tuesday 24 July 2007 12:14, Takashi Iwai wrote:
 At Mon, 23 Jul 2007 18:50:34 +0200,

 Nigel Henry wrote:
  On Monday 23 July 2007 17:53, Takashi Iwai wrote:
   At Sun, 22 Jul 2007 23:53:33 +0200,
  
   Nigel Henry wrote:
I'm looking at a problem on the Fedora list with the 2.6.22.1-27.fc7
kernel, and snd-hda-intel.
   
Sound had worked ok on FC6, before upgrading to Fedora7
   
 /lib/modules/2.6.22.1-27.fc7/kernel/sound/pci/hda shows only the
module snd-hda-intel. There is no snd-hda-codec.
   
cat /proc/asound/version for the 2.6.22.1-27.fc7 kernel shows alsa
1.0.14
   
I suggested trying an earlier kernel, as both my original kernel
(from the install discs) , and a later kernel both had snd-hda-intel,
and snd-hda-codec available. Alsa version here is 1.0.14rc3. He went
for that and now has sound again.
   
The question is. has snd-hda-codec now been integrated into
snd-hda-intel , with the release of alsa 1.0.14. I ask this because
for my TV card the tda9887 module was separate to the tuner module
pre 2.6.18 kernels, but tda9887 is now integrated with the tuner
module 2.6.18 kernels , and onward.
   
I wondered if something similar was going on with snd-hda-intel, and
that now snd-hda-codec is now integrated with snd-hda-intel for alsa
1.0.14.
  
   Yes, snd-hda-codec is now integrated into snd-hda-intel module.
  
  
   Takashi
 
  Hello Takashi. Thanks for confirming that. There is still the problem
  though that booting with kernel 2.6.22.1-27.fc7 (alsa 1.0.14) produces no
  sound, but booting with an earlier kernel using alsa 1.0.14rc3 (where
  snd-hda-intel, and snd-hda-codec are separate modules), sound works with
  no problems, as it did on his FC6 install before upgrading to Fedora 7.

 It doesn't tell you whether the culprit is the ALSA update or the
 other part of the kernel.  Could you check whether FC6 kernel + ALSA
 1.0.14 (or better HG version) causes the same problem?


 Takashi

I can't try your suggestion myself, as I don't have an hda intel card on 
either of my 2 machines, but will pass on the suggestion to Dave Cross.

To clarify. When you say FC6 kernel + ALSA, do you mean re-compiling the 
kernel with a later version of the Alsa driver, or do you mean installing a 
later version of alsa-lib?

He longer has access to an FC6 kernel, as he upgraded the machine to Fedora 7.

Latest kernel with the problem is 2.6.22.1-27.fc7 (Alsa version is 1.0.14)
Alsa-lib is currently 1.0.14-0.4.rc3.fc7

Thanks for your help.

Nigel.

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] snd-hda-codec not being loaded

2007-07-24 Thread Takashi Iwai
At Tue, 24 Jul 2007 13:37:11 +0200,
Nigel Henry wrote:
 
 On Tuesday 24 July 2007 12:14, Takashi Iwai wrote:
  At Mon, 23 Jul 2007 18:50:34 +0200,
 
  Nigel Henry wrote:
   On Monday 23 July 2007 17:53, Takashi Iwai wrote:
At Sun, 22 Jul 2007 23:53:33 +0200,
   
Nigel Henry wrote:
 I'm looking at a problem on the Fedora list with the 2.6.22.1-27.fc7
 kernel, and snd-hda-intel.

 Sound had worked ok on FC6, before upgrading to Fedora7

  /lib/modules/2.6.22.1-27.fc7/kernel/sound/pci/hda shows only the
 module snd-hda-intel. There is no snd-hda-codec.

 cat /proc/asound/version for the 2.6.22.1-27.fc7 kernel shows alsa
 1.0.14

 I suggested trying an earlier kernel, as both my original kernel
 (from the install discs) , and a later kernel both had snd-hda-intel,
 and snd-hda-codec available. Alsa version here is 1.0.14rc3. He went
 for that and now has sound again.

 The question is. has snd-hda-codec now been integrated into
 snd-hda-intel , with the release of alsa 1.0.14. I ask this because
 for my TV card the tda9887 module was separate to the tuner module
 pre 2.6.18 kernels, but tda9887 is now integrated with the tuner
 module 2.6.18 kernels , and onward.

 I wondered if something similar was going on with snd-hda-intel, and
 that now snd-hda-codec is now integrated with snd-hda-intel for alsa
 1.0.14.
   
Yes, snd-hda-codec is now integrated into snd-hda-intel module.
   
   
Takashi
  
   Hello Takashi. Thanks for confirming that. There is still the problem
   though that booting with kernel 2.6.22.1-27.fc7 (alsa 1.0.14) produces no
   sound, but booting with an earlier kernel using alsa 1.0.14rc3 (where
   snd-hda-intel, and snd-hda-codec are separate modules), sound works with
   no problems, as it did on his FC6 install before upgrading to Fedora 7.
 
  It doesn't tell you whether the culprit is the ALSA update or the
  other part of the kernel.  Could you check whether FC6 kernel + ALSA
  1.0.14 (or better HG version) causes the same problem?
 
 
  Takashi
 
 I can't try your suggestion myself, as I don't have an hda intel card on 
 either of my 2 machines, but will pass on the suggestion to Dave Cross.
 
 To clarify. When you say FC6 kernel + ALSA, do you mean re-compiling the 
 kernel with a later version of the Alsa driver, or do you mean installing a 
 later version of alsa-lib?

I meant the exteranl alsa-driver modules.  The alsa-lib shouldn't
matter.


Takashi

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] snd_pcm_delay doesn't work with softvol + rate conversion

2007-07-24 Thread Haakon Riiser
I'm trying to run a program that uses ALSA on a system with a HDA
VIA VT82xx sound card (built into the motherboard).  This useless
piece of hardware doesn't support sample rate conversion, and
doesn't have it's own volume control.  When I use ALSA's default
device on this system, I can change the volume with alsamixer,
and the program accepts non-native sample rates.

The problem is that when software SRC and volume control is
combined, snd_pcm_delay doesn't work as it should.  What happens
is that the reported delay never decreases, even though audio _is_
playing, and the buffer is draining.  That is, every time I write
audio into the sound card with snd_pcm_writei, the number returned
by snd_pcm_delay increases as it should, but when I wait for the
sound to play out, it doesn't decrease.

I have created a simple program that demonstrates this bug:  It
fills the sound card buffer, and then calls snd_pcm_delay until
it returns zero while printing every returned value.

When this program is run with my sound card's native sample rate
(48000 Hz), the numbers quickly drop to zero and the program
terminates.  When run with any other rate, it simply loops forever
in the snd_pcm_delay loop, printing the same value forever.

My system is:

CPU: Athlon64 3500+
RAM: 1 GB DDR2 (Corsair Value Select PC5300)
Motherboard: Asus M2V (VIA K8T890 northbridge, VT8237A south)
Audio codec: Realtek ALC 660 (built into the motherboard)
Linux distro: Fedora Core 6
ALSA packages: alsa-lib-1.0.14-0.1.rc1.fc6
   alsa-lib-devel-1.0.14-0.1.rc1.fc6
   alsa-utils-1.0.14-0.2.rc1.fc6
Kernel: 2.6.20-1.2962.fc6
Other: glibc-2.5-18.fc6 and gcc-4.1.2-13.fc6

I am unable to reproduce this bug on a system that has an SB Live 5.1
so it might just be reproducible on the sound card integrated
into the above system, but I'd appreciate it if someone could test
it on a system with an equally crappy sound card. :-)

Finally, here's the program that demonstrates the bug:

/***/

#include alsa/asoundlib.h

int main(int argc, char *argv[])
{
if (argc  2) {
fprintf(stderr, usage: %s SAMPLE-RATE\n, argv[0]);
exit(1);
}

snd_pcm_t *pcm_handle;
if (snd_pcm_open
(pcm_handle, default, SND_PCM_STREAM_PLAYBACK,
 SND_PCM_NONBLOCK)  0) {
fprintf(stderr, Error opening PCM device\n);
exit(1);
}

snd_pcm_hw_params_t *hwparams;
snd_pcm_hw_params_alloca(hwparams);
if (snd_pcm_hw_params_any(pcm_handle, hwparams)  0) {
fprintf(stderr, Can not configure this PCM device\n);
exit(1);
}

if (snd_pcm_hw_params_set_access
(pcm_handle, hwparams, SND_PCM_ACCESS_RW_INTERLEAVED)  0) {
fprintf(stderr, Error setting access\n);
exit(1);
}

if (snd_pcm_hw_params_set_format
(pcm_handle, hwparams, SND_PCM_FORMAT_S16_LE)  0) {
fprintf(stderr, Error setting format\n);
exit(1);
}

if (snd_pcm_hw_params_set_rate
(pcm_handle, hwparams, atoi(argv[1]), 0)  0) {
fprintf(stderr, Error setting rate\n);
exit(1);
}

if (snd_pcm_hw_params_set_channels(pcm_handle, hwparams, 2)  0) {
fprintf(stderr, Error setting channels\n);
exit(1);
}

snd_pcm_uframes_t frames;
snd_pcm_hw_params_get_buffer_size_max(hwparams, frames);
if (snd_pcm_hw_params_set_buffer_size(pcm_handle, hwparams, frames) 
0) {
fprintf(stderr, Error setting buffer size\n);
exit(1);
}

if (snd_pcm_hw_params(pcm_handle, hwparams)  0) {
fprintf(stderr, Error setting HW params\n);
exit(1);
}

char buf[4096] = { };
// Uncomment the below lines to hear some sound that confirms that the
// buffer is draining despite what snd_pcm_delay is saying.
//int i;
//for (i = 0; i  4096; i++) {
//buf[i] = i  0xff;
//}
while (snd_pcm_writei(pcm_handle, buf, sizeof(buf) / 4)  0);

snd_pcm_sframes_t delay;
do {
while (snd_pcm_delay(pcm_handle, delay) == -EPIPE) {
snd_pcm_prepare(pcm_handle);
}
fprintf(stderr, %d\n, (int) delay);
} while (delay  0);

exit(0);
}

/***/

-- 
 Haakon

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Alsa problem on Dell XPS M1710 (or not??)

2007-07-24 Thread Takashi Iwai
At Tue, 24 Jul 2007 07:14:40 +0200,
Michael Gerdau wrote:
 
 Hi Colleen,
 
  I'm tearing my hair out by the roots here.  I don't know if the problem
  is Alsa or something else because I *do* have sound.  However, I do not
  have sound when I try to play an audio CD, although I can rip the CD to
  my hard drive and then, I can hear it.
 
 I do have a Dell XPS M1710 and AFAICT alsa works as advertised. I'm on
 SuSE 10.2.
 
 While I'm using a (more or less) current daily snapshot I remember it
 used to work with 1.0.13 and all versions I tried since then.

FYI, the daily snapshot versions are available also as SUSE RPMs
under:

http://software.opensuse.org/download/home:/tiwai/

alsa.rpm is split to several sub-packages now (as of the recent 10.3):
alsa, libasound2, alsa-utils, and alsa-oss.  Install them
apprioriately from the repository above.  Also, installation of
alsa-plugins.rpm is recommended, too.

The alsa drivers are provided as KMP.  Install the corresponding
alsa-driver-kmp-* package.  Note that rcalsasound restart might not
be enough, and you'll unload the all snd* modules once.


Takashi

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] sending alsaconf 3 carriage returns

2007-07-24 Thread Jerry Geis
Is there a way to send alsaconf three carriage returns on the command 
line???

I am always accepting the 3 defaults and want to automate that step.

How do I redirect 3 carriage returns into alsaconf?

I dont see a command line option to accept the three defaults.
OK to skip initial screen,
OK to accept the only driver I have compiled in,
OK to modify /etc/modprove.conf

I wish to automate that step... Thanks,

Jerry


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] Delta 66, everything but sound

2007-07-24 Thread Danny Ayers
Hi,

By appearances, everything appears to be ok with my setup with a new
Delta 66, I'm just not getting any sound out :-(

With Hydrogen - jack - envy24control the level meters in
envy24control (0.6)are bouncing merrily.

I've seen mention of routing in envy24control, but trial  error there
hasn't produced any results...

I'm running Ubuntu Studio (Feisty, with low-latency kernel, upgraded
from a straight Feisty install), I just upgraded the ALSA packages to
the versions in Debian unstable, but that didn't help.

Yes, the amp is connected, in fact earlier when I was trying alsaconf
(with a different config) I was getting very quiet clicks when I
changed settings.

Any suggestions?

Cheers,
Danny.

-- 

http://dannyayers.com

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] sending alsaconf 3 carriage returns

2007-07-24 Thread Lee Revell
On 7/24/07, Jerry Geis [EMAIL PROTECTED] wrote:
 Is there a way to send alsaconf three carriage returns on the command
 line???

 I am always accepting the 3 defaults and want to automate that step.

 How do I redirect 3 carriage returns into alsaconf?

 I dont see a command line option to accept the three defaults.
 OK to skip initial screen,
 OK to accept the only driver I have compiled in,
 OK to modify /etc/modprove.conf


Why do you feel you need alsaconf?  It should only be necessary for
old ISA stuff.

PCI sound cards should just work without it.

Lee

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] sending alsaconf 3 carriage returns

2007-07-24 Thread Jerry Geis
Lee Revell wrote:
 On 7/24/07, Jerry Geis [EMAIL PROTECTED] wrote:
 Is there a way to send alsaconf three carriage returns on the command
 line???

 I am always accepting the 3 defaults and want to automate that step.

 How do I redirect 3 carriage returns into alsaconf?

 I dont see a command line option to accept the three defaults.
 OK to skip initial screen,
 OK to accept the only driver I have compiled in,
 OK to modify /etc/modprove.conf


 Why do you feel you need alsaconf?  It should only be necessary for
 old ISA stuff.

 PCI sound cards should just work without it.

 Lee


Lee,

alsaconf also reloads or loads the driver right now.
So I can test it without rebooting...

Is there a way to give alsaconf 3 carriage returns???

I tried to echo -e \n\n\n | alsaconf and that did nothing for me.

Jerry

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Delta 66, everything but sound

2007-07-24 Thread stan
On Tue, 24 Jul 2007 17:43:06 +0200
Danny Ayers [EMAIL PROTECTED] wrote:

 Hi,
 
 By appearances, everything appears to be ok with my setup with a new
 Delta 66, I'm just not getting any sound out :-(
 
 With Hydrogen - jack - envy24control the level meters in
 envy24control (0.6)are bouncing merrily.
 
 I've seen mention of routing in envy24control, but trial  error there
 hasn't produced any results...
 
 I'm running Ubuntu Studio (Feisty, with low-latency kernel, upgraded
 from a straight Feisty install), I just upgraded the ALSA packages to
 the versions in Debian unstable, but that didn't help.
 
 Yes, the amp is connected, in fact earlier when I was trying alsaconf
 (with a different config) I was getting very quiet clicks when I
 changed settings.
 
 Any suggestions?
 
 Cheers,
 Danny.
 
If you have two cards, the other card might be selected as default.

aplay -lLv  run at a command line will tell you.

Alsa defaults to starting at zero amp levels the first time.  Use
alsamixer at the commandline to adjust, switch to capture using F4,
playback using F3, man alsamixer for more info.

Searching the archives at http://www.gmane.org/ should give you hits for
any previous solutions.

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] sending alsaconf 3 carriage returns

2007-07-24 Thread Bruce Richardson
On Tue, Jul 24, 2007 at 01:06:59PM -0400, Jerry Geis wrote:
 
 alsaconf also reloads or loads the driver right now.
 So I can test it without rebooting...

You can do that without alsaconf, using rmmod and modprobe.  You may not
find this informatin useful but then I don't know how to send carriage
returns to alsaconf.

-- 
Bruce

Bitterly it mathinketh me, that I spent mine wholle lyf in the lists
against the ignorant.  -- Roger Bacon, Doctor Mirabilis

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] scripting question

2007-07-24 Thread Jerry Geis
Why does something like this not work?
echo -e \n\n\n | alsaconf

This seems to be basic piping data into a program.
How do I get 3 returns into alsaconf (as an example)
so the program accepts 3 default values and exists.

seems like that should work.

Jerry

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] scripting question

2007-07-24 Thread Lee Revell
On 7/24/07, Jerry Geis [EMAIL PROTECTED] wrote:
 Why does something like this not work?
 echo -e \n\n\n | alsaconf

 This seems to be basic piping data into a program.
 How do I get 3 returns into alsaconf (as an example)
 so the program accepts 3 default values and exists.

 seems like that should work.

Some apps don't read from standard in this way, apparently alsaconf is
such an app.

Can't you just edit alsaconf?  It's a Perl script IIRC...

Leed

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] sending alsaconf 3 carriage returns

2007-07-24 Thread Dominique Michel
Le Tue, 24 Jul 2007 13:06:59 -0400,
Jerry Geis [EMAIL PROTECTED] a écrit :

 Lee Revell wrote:
  On 7/24/07, Jerry Geis [EMAIL PROTECTED] wrote:
  Is there a way to send alsaconf three carriage returns on the command
  line???
 
  I am always accepting the 3 defaults and want to automate that step.
 
  How do I redirect 3 carriage returns into alsaconf?
 
  I dont see a command line option to accept the three defaults.
  OK to skip initial screen,
  OK to accept the only driver I have compiled in,
  OK to modify /etc/modprove.conf
 
 
  Why do you feel you need alsaconf?  It should only be necessary for
  old ISA stuff.
 
  PCI sound cards should just work without it.
 
  Lee
 
 
 Lee,
 
 alsaconf also reloads or loads the driver right now.
 So I can test it without rebooting...
 

Your distribution must have a script to start alsa at boot time. It
is /etc/init.d/alsa on gentoo. To run

/etc/init.d/alsa restart

is enough to restart alsa for me. The exact location and syntax of this script
is distribution dependant.

Dominique

 Is there a way to give alsaconf 3 carriage returns???
 
 I tried to echo -e \n\n\n | alsaconf and that did nothing for me.
 
 Jerry
 


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] alsaconf change request

2007-07-24 Thread Jerry Geis
Lee Revell wrote:
 On 7/24/07, Jerry Geis [EMAIL PROTECTED] wrote:
 Why does something like this not work?
 echo -e \n\n\n | alsaconf

 This seems to be basic piping data into a program.
 How do I get 3 returns into alsaconf (as an example)
 so the program accepts 3 default values and exists.

 seems like that should work.

 Some apps don't read from standard in this way, apparently alsaconf is
 such an app.

 Can't you just edit alsaconf?  It's a Perl script IIRC...

 Leed


Is it possible to request a change to alsaconf?
Simply add an option for accept defaults or autoconfig.
The purpose is to not present the user with any questions just accept 
the default as if the user hit enter.

Again, I have already configured the driver for the hardware I want - 
nice config command line so
no questions are asked. Then running alsaconf needs that same kind of 
command line option to
just accept all the defaults and do its normal thing.

Is that possible to add?

I looked at alsaconf and yes I can change it. however, I when then next 
version of alsa comes out
I dont want something that I did in a special script to no longer 
work. I would think others would
find that useful also.

Jerry

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] sending alsaconf 3 carriage returns

2007-07-24 Thread Thomas Mueller
 Why do you feel you need alsaconf?  It should only be necessary for
 old ISA stuff.

 PCI sound cards should just work without it.

 Lee

My on-motherboard PCI (un)sound card , Creative (Ensoniq?) CT-5880, didn't
work without alsaconf, but didn't work with alsaconf either.  Problem was
AC97 codec invalid ID 0, or not readable, or not responding.  So error
messages make it look like defective hardware, and it's not just ALSA or
Linux but DOS and the BSDs as well.  Now I have a startech.com 4-channel
PCI sound card on order, advertising Linux and DOS compatibility, so I've 
given up on getting this on-motherboard sound to work.

Tom


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user