Re: [Alsa-user] pcm_min.c trouble with modification

2009-04-17 Thread Clemens Ladisch
MK wrote:
 I want to write a simple ALSA application. I have downloaded pcm_min.c
 from ALSA documentation and try to do some modifications in code like
 change channels to stereo or sampling rate to 44100Hz. But every time
 program fails. Can anybody explain me why this is happening?

Please show your changes.


Best regards,
Clemens

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] AMT8

2009-04-17 Thread Clemens Ladisch
immanuel litzroth wrote:
 Apr 13 12:08:39 voodochile kernel: [  169.622067] usb 2-10: new full speed 
 USB device using ohci_hcd and address 5
 Apr 13 12:08:39 voodochile kernel: [  169.844566] usb 2-10: configuration #1 
 chosen from 1 choice
 Apr 13 12:08:39 voodochile kernel: [  169.847594] snd-usb-audio: probe of 
 2-10:1.0 failed with error -5
 Apr 13 12:08:39 voodochile kernel: [  169.847616] snd-usb-audio: probe of 
 2-10:1.1 failed with error -5
 Apr 13 12:08:44 voodochile kernel: [  174.656857] usb 2-9: new full speed 
 USB device using ohci_hcd and address 6
 Apr 13 12:08:44 voodochile kernel: [  174.879643] usb 2-9: configuration #1 
 chosen from 1 choice
 Apr 13 12:08:44 voodochile kernel: [  174.882987] snd-usb-audio: probe of 
 2-9:1.0 failed with error -5
 Apr 13 12:08:44 voodochile kernel: [  174.883013] snd-usb-audio: probe of 
 2-9:1.1 failed with error -5
 What's up with that?

I'd guess the driver doesn't claim all the interfaces that the device
has.  This shouldn't matter.

 Then if I do and aplaymidi -l it lists the following ports:
  40:0AMT8 AMT8 MIDI 1
  40:1AMT8 AMT8 MIDI 2
  40:2AMT8 AMT8 MIDI 3
  40:3AMT8 AMT8 MIDI 4
  40:4AMT8 AMT8 MIDI 5
  40:5AMT8 AMT8 MIDI 6
  40:6AMT8 AMT8 MIDI 7
  40:7AMT8 AMT8 MIDI 8
  40:8AMT8 AMT8 Broadcast
  44:0AMT8 AMT8 MIDI 1
  44:1AMT8 AMT8 MIDI 2
  44:2AMT8 AMT8 MIDI 3
  44:3AMT8 AMT8 MIDI 4
  44:4AMT8 AMT8 MIDI 5
  44:5AMT8 AMT8 MIDI 6
  44:6AMT8 AMT8 MIDI 7
  44:7AMT8 AMT8 MIDI 8
  44:8AMT8 AMT8 Broadcast
 Is it possible to have other names generated for these ports through
 some magic?

You could add some entries to the snd_usbmidi_port_info array in the
driver source ...

 Preferably each port would be named after the synth connected to it.

Changing port names at runtime isn't supported by the driver.

 Then when I play the devices I get messages in /var/log/messages saying
 Apr 11 23:03:56 voodochile kernel: [14700.085974] rtc: lost 28 interrupts
 Apr 11 23:04:26 voodochile kernel: [14730.054964] rtc: lost 28 interrupts
 Apr 11 23:04:56 voodochile kernel: [14760.023963] rtc: lost 28 interrupts
 What's up with that?

Every thirty seconds, something on your computer eats some CPU and
disables all interrupts for about 27 milliseconds.  If you have a laptop,
this it probably some fan control or power management stuff done by the
BIOS.


Best regards,
Clemens

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] DELL SP2309W Monitor with Integrated microphone

2009-04-17 Thread Clemens Ladisch
Phil Gorbett wrote:
 I am having difficulty getting the microphone(s) going with this
 monitor, and get the get the following results when I disable pulseaudio
 and run arecord:
 
 arecord -v -f cd -D plughw:0 file.wav
 Recording WAVE 'file.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
 ALSA lib pcm_params.c:2135:(snd1_pcm_hw_refine_slave) Slave PCM not usable
 arecord: set_params:939: Broken configuration for this PCM: no configurations 
 available

Please show the output of lsusb -v for this device.


Best regards,
Clemens

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] query alsa for supported sample rates and formats?

2009-04-17 Thread Clemens Ladisch
Matt Garman wrote:
 Is there a way to query alsa to see what sample rates and formats
 the sound hardware natively supports?

Try the attached program.


HTH
Clemens
/*
 * hw_params.c - print hardware capabilities
 *
 * compile with: gcc -o hw_params hw_params.c -lasound
 */

#include stdio.h
#include alsa/asoundlib.h

#define ARRAY_SIZE(a) (sizeof(a) / sizeof *(a))

static const snd_pcm_access_t accesses[] = {
SND_PCM_ACCESS_MMAP_INTERLEAVED,
SND_PCM_ACCESS_MMAP_NONINTERLEAVED,
SND_PCM_ACCESS_MMAP_COMPLEX,
SND_PCM_ACCESS_RW_INTERLEAVED,
SND_PCM_ACCESS_RW_NONINTERLEAVED,
};

static const snd_pcm_format_t formats[] = {
SND_PCM_FORMAT_S8,
SND_PCM_FORMAT_U8,
SND_PCM_FORMAT_S16_LE,
SND_PCM_FORMAT_S16_BE,
SND_PCM_FORMAT_U16_LE,
SND_PCM_FORMAT_U16_BE,
SND_PCM_FORMAT_S24_LE,
SND_PCM_FORMAT_S24_BE,
SND_PCM_FORMAT_U24_LE,
SND_PCM_FORMAT_U24_BE,
SND_PCM_FORMAT_S32_LE,
SND_PCM_FORMAT_S32_BE,
SND_PCM_FORMAT_U32_LE,
SND_PCM_FORMAT_U32_BE,
SND_PCM_FORMAT_FLOAT_LE,
SND_PCM_FORMAT_FLOAT_BE,
SND_PCM_FORMAT_FLOAT64_LE,
SND_PCM_FORMAT_FLOAT64_BE,
SND_PCM_FORMAT_IEC958_SUBFRAME_LE,
SND_PCM_FORMAT_IEC958_SUBFRAME_BE,
SND_PCM_FORMAT_MU_LAW,
SND_PCM_FORMAT_A_LAW,
SND_PCM_FORMAT_IMA_ADPCM,
SND_PCM_FORMAT_MPEG,
SND_PCM_FORMAT_GSM,
SND_PCM_FORMAT_SPECIAL,
SND_PCM_FORMAT_S24_3LE,
SND_PCM_FORMAT_S24_3BE,
SND_PCM_FORMAT_U24_3LE,
SND_PCM_FORMAT_U24_3BE,
SND_PCM_FORMAT_S20_3LE,
SND_PCM_FORMAT_S20_3BE,
SND_PCM_FORMAT_U20_3LE,
SND_PCM_FORMAT_U20_3BE,
SND_PCM_FORMAT_S18_3LE,
SND_PCM_FORMAT_S18_3BE,
SND_PCM_FORMAT_U18_3LE,
SND_PCM_FORMAT_U18_3BE,
};

static const unsigned int rates[] = {
5512,
8000,
11025,
16000,
22050,
32000,
44100,
48000,
64000,
88200,
96000,
176400,
192000,
};

int main(int argc, char *argv[])
{
const char *device_name = hw;
snd_pcm_t *pcm;
snd_pcm_hw_params_t *hw_params;
unsigned int i;
unsigned int min, max;
int any_rate;
int err;

if (argc  1)
device_name = argv[1];

err = snd_pcm_open(pcm, device_name, SND_PCM_STREAM_PLAYBACK, 
SND_PCM_NONBLOCK);
if (err  0) {
fprintf(stderr, cannot open device '%s': %s\n, device_name, 
snd_strerror(err));
return 1;
}

snd_pcm_hw_params_alloca(hw_params);
err = snd_pcm_hw_params_any(pcm, hw_params);
if (err  0) {
fprintf(stderr, cannot get hardware parameters: %s\n, 
snd_strerror(err));
snd_pcm_close(pcm);
return 1;
}

printf(Device: %s (type: %s)\n, device_name, 
snd_pcm_type_name(snd_pcm_type(pcm)));

printf(Access types:);
for (i = 0; i  ARRAY_SIZE(accesses); ++i) {
if (!snd_pcm_hw_params_test_access(pcm, hw_params, accesses[i]))
printf( %s, snd_pcm_access_name(accesses[i]));
}
putchar('\n');

printf(Formats:);
for (i = 0; i  ARRAY_SIZE(formats); ++i) {
if (!snd_pcm_hw_params_test_format(pcm, hw_params, formats[i]))
printf( %s, snd_pcm_format_name(formats[i]));
}
putchar('\n');

err = snd_pcm_hw_params_get_channels_min(hw_params, min);
if (err  0) {
fprintf(stderr, cannot get minimum channels count: %s\n, 
snd_strerror(err));
snd_pcm_close(pcm);
return 1;
}
err = snd_pcm_hw_params_get_channels_max(hw_params, max);
if (err  0) {
fprintf(stderr, cannot get maximum channels count: %s\n, 
snd_strerror(err));
snd_pcm_close(pcm);
return 1;
}
printf(Channels:);
for (i = min; i = max; ++i) {
if (!snd_pcm_hw_params_test_channels(pcm, hw_params, i))
printf( %u, i);
}
putchar('\n');

err = snd_pcm_hw_params_get_rate_min(hw_params, min, NULL);
if (err  0) {
fprintf(stderr, cannot get minimum rate: %s\n, 
snd_strerror(err));
snd_pcm_close(pcm);
return 1;
}
err = snd_pcm_hw_params_get_rate_max(hw_params, max, NULL);
if (err  0) {
fprintf(stderr, cannot get maximum rate: %s\n, 
snd_strerror(err));
snd_pcm_close(pcm);
return 1;
}
printf(Sample rates:);
if (min == max)
printf( %u, min);
else if (!snd_pcm_hw_params_test_rate(pcm, hw_params, min + 1, 0))
printf( %u-%u, min, max);

Re: [Alsa-user] alsamixer does not save settings

2009-04-17 Thread Clemens Ladisch
Geoffrey Leach wrote:
 I'm havind a problem with alsamixer. It appears not to save the
 changes. The man page does not mention this, so perhaps its doing what
 it is designed to do.

It is only designed to change the sound card's mixer settings.

 In that case, can anyone point me to a tool that makes permanent
 (mute, in this case) settings?

alsactl store and alsactl restore do what you want.  In theory,
these calls should be made automatically by your distribution's shutdown/
startup scripts.


HTH
Clemens

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] ALSA/Creative Extigy Card

2009-04-17 Thread MG
I disabled the onboard sound through blacklist however can you explain
please why the volume is so quiet
It needs to be in the red to hear anything.

2009/4/16 MG m.s0128...@gmail.com


  Firefox is still playin thru the onboard sound agh
 must b a way to tell it to use the Extigy


 Please help!!!



--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] USB Hard drive Errors

2009-04-17 Thread MG
Please can you tell me why some hard drives are only partially recognised?
It brings them up on the in a window but I can't go into them from the
terminal to execute
I already selected NTFS writing
Thx!!!
Nooby


r...@thundercat1:/media# sudo lsusb
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 041e:3000 Creative Technology, Ltd SoundBlaster
Extigy
Bus 002 Device 002: ID 046d:c00c Logitech, Inc. Optical Wheel Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 006: ID 0471:083a Philips
Bus 001 Device 005: ID 07ab:fcfe Freecom Technologies
Bus 001 Device 004: ID 04b4:6830 Cypress Semiconductor Corp. CY7C68300A
EZ-USB AT2 USB 2.0 to ATA/ATAPI
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
r...@thundercat1:/media# sudo fdisk -l

Disk /dev/sda: 164.6 GB, 16469620 bytes
255 heads, 63 sectors/track, 20023 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x7e91a39a

   Device Boot  Start End  Blocks   Id  System
/dev/sda1   *   1   19647   157814496   83  Linux
/dev/sda2   19648   20023 30202205  Extended
/dev/sda5   19648   20023 3020188+  82  Linux swap / Solaris

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xb51fa8fc

   Device Boot  Start End  Blocks   Id  System
/dev/sdb1   1   19457   1562883217  HPFS/NTFS

Disk /dev/sdc: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x227f1d55

   Device Boot  Start End  Blocks   Id  System
/dev/sdc1   1 392 3148708+   7  HPFS/NTFS

Disk /dev/sdd: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x524a757d

   Device Boot  Start End  Blocks   Id  System
/dev/sdd1   1   48641   390706232b  W95 FAT32
--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] snd_hda_codec_nvhdmi underpowered

2009-04-17 Thread Marco Gusy
In data venerdì 17 aprile 2009 05:33:29, hai scritto:
 What distro?  Is Pulseaudio enabled?

 Lee

No, but I don't think I need a sound daemon to make alsa work, right?

What about multichannel lpcm?

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] USB Hard drive Errors

2009-04-17 Thread MG
have mounted the drives but why is everything not visible and why are there
no accurate readings on free space?

2009/4/17 MG m.s0128...@gmail.com

 Please can you tell me why some hard drives are only partially recognised?
 It brings them up on the in a window but I can't go into them from the
 terminal to execute
 I already selected NTFS writing
 Thx!!!
 Nooby


 r...@thundercat1:/media# sudo lsusb
 Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 002 Device 003: ID 041e:3000 Creative Technology, Ltd SoundBlaster
 Extigy
 Bus 002 Device 002: ID 046d:c00c Logitech, Inc. Optical Wheel Mouse
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 001 Device 006: ID 0471:083a Philips
 Bus 001 Device 005: ID 07ab:fcfe Freecom Technologies
 Bus 001 Device 004: ID 04b4:6830 Cypress Semiconductor Corp. CY7C68300A
 EZ-USB AT2 USB 2.0 to ATA/ATAPI
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 r...@thundercat1:/media# sudo fdisk -l

 Disk /dev/sda: 164.6 GB, 16469620 bytes
 255 heads, 63 sectors/track, 20023 cylinders
 Units = cylinders of 16065 * 512 = 8225280 bytes
 Disk identifier: 0x7e91a39a

Device Boot  Start End  Blocks   Id  System
 /dev/sda1   *   1   19647   157814496   83  Linux
 /dev/sda2   19648   20023 30202205  Extended
 /dev/sda5   19648   20023 3020188+  82  Linux swap /
 Solaris

 Disk /dev/sdb: 160.0 GB, 160041885696 bytes
 255 heads, 63 sectors/track, 19457 cylinders
 Units = cylinders of 16065 * 512 = 8225280 bytes
 Disk identifier: 0xb51fa8fc

Device Boot  Start End  Blocks   Id  System
 /dev/sdb1   1   19457   1562883217  HPFS/NTFS

 Disk /dev/sdc: 320.0 GB, 320072933376 bytes
 255 heads, 63 sectors/track, 38913 cylinders
 Units = cylinders of 16065 * 512 = 8225280 bytes
 Disk identifier: 0x227f1d55

Device Boot  Start End  Blocks   Id  System
 /dev/sdc1   1 392 3148708+   7  HPFS/NTFS

 Disk /dev/sdd: 400.0 GB, 400088457216 bytes
 255 heads, 63 sectors/track, 48641 cylinders
 Units = cylinders of 16065 * 512 = 8225280 bytes
 Disk identifier: 0x524a757d

Device Boot  Start End  Blocks   Id  System
 /dev/sdd1   1   48641   390706232b  W95 FAT32



--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] query alsa for supported sample rates and formats?

2009-04-17 Thread Matt Garman
On Fri, Apr 17, 2009 at 10:14:16AM +0200, Clemens Ladisch wrote:
 Matt Garman wrote:
  Is there a way to query alsa to see what sample rates and
  formats the sound hardware natively supports?
 
 Try the attached program.

Works perfectly.  That's exactly what I wanted.

Thank you!
Matt


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] JACK doesn't find ALSA

2009-04-17 Thread MG
Can you help please maybe ALSA is in the wrong dir but thought comes with
Ubuntu 2.6!!:

Checking for program g++ : ok /usr/bin/g++
Checking for compiler version: ok 4.3.2
Checking for program cpp : ok /usr/bin/cpp
Checking for program ar  : ok /usr/bin/ar
Checking for program ranlib  : ok /usr/bin/ranlib
Checking for g++ : ok
Checking for program gcc : ok /usr/bin/gcc
Checking for compiler version: ok 4.3.2
Checking for program ar  : ok /usr/bin/ar
Checking for program ranlib  : ok /usr/bin/ranlib
Checking for gcc : ok
Checking for header samplerate.h : not found
Checking for alsa = 1.0.0   : Package alsa (= 1.0.0) could
not be found or the found version is too old.
Checking for libfreebob = 1.0.0 : Package libfreebob (= 1.0.0)
could not be found or the found version is too old.
Checking for libffado = 1.999.17: Package libffado (= 1.999.17)
could not be found or the found version is too old.
Checking for header sndfile.h: not found
Checking for header ncurses.h: ok
Checking for library readline: not found

==
JACK 1.9.2 exported from r3454M
Build with a maximum of 64 JACK clients
Build with a maximum of 1024 ports
Install prefix   : /usr/local
Library directory: /usr/local/lib/
Drivers directory: /usr/local/lib/jack
Build doxygen documentation  : no
Build with engine profiling  : no
Build with ALSA support  : no
Build with FireWire (FreeBob) support: no
Build with FireWire (FFADO) support  : no
Build D-Bus JACK (jackdbus)  : no
--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] JACK doesn't find ALSA

2009-04-17 Thread MG

 Is this worrying:

../common/JackEngineProfiling.cpp: In destructor
‘Jack::JackEngineProfiling::~JackEngineProfiling()’:
../common/JackEngineProfiling.cpp:169: warning: format not a string literal
and no format arguments
../common/JackEngineProfiling.cpp:196: warning: format not a string literal
and no format arguments
../common/JackEngineProfiling.cpp:222: warning: format not a string literal
and no format arguments
../common/JackEngineProfiling.cpp:240: warning: format not a string literal
and no format arguments
../common/JackEngineProfiling.cpp:265: warning: format not a string literal
and no format arguments
../common/JackEngineProfiling.cpp:283: warning: format not a string literal
and no format arguments

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] DELL SP2309W Monitor with Integrated microphone

2009-04-17 Thread Paul Hartman
On Fri, Apr 17, 2009 at 2:27 AM, Clemens Ladisch
cladi...@googlemail.com wrote:
 Phil Gorbett wrote:
 I am having difficulty getting the microphone(s) going with this
 monitor, and get the get the following results when I disable pulseaudio
 and run arecord:

 arecord -v -f cd -D plughw:0 file.wav
 Recording WAVE 'file.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, 
 Stereo
 ALSA lib pcm_params.c:2135:(snd1_pcm_hw_refine_slave) Slave PCM not usable
 arecord: set_params:939: Broken configuration for this PCM: no 
 configurations available

 Please show the output of lsusb -v for this device.


 Best regards,
 Clemens

I'm not the OP but I have the same monitor and same problem. Here's
the lsusb output for the microphone:

http://pastebin.com/f4c340014

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] Compaq Presario B1914 (b1900 series), Realtek ALC260

2009-04-17 Thread Atul Aggarwal
Hello everybody,

I have no sound at all on my linux machine (ubuntu 8.10).
I checked the sound volumes are fine using alsamixer  and the output of
alsa-info.sh script is attached to this email and pasting url is
http://paste.ubuntu.com/152797/ for your reference.
My Audio driver seems to be Realtek ALC260.

Any help?

Regards,

Atul Aggarwal
upload=truescript=truecardinfo=
!!
!!ALSA Information Script v 0.4.56
!!

!!Script ran on: Fri Apr 17 13:40:10 UTC 2009


!!Linux Distribution
!!--

Ubuntu 8.10 \n \l DISTRIB_ID=Ubuntu DISTRIB_DESCRIPTION=Ubuntu 8.10


!!Kernel Information
!!--

Kernel release:2.6.27-11-generic
Operating System:  GNU/Linux
Architecture:  i686
Processor: unknown
SMP Enabled:   Yes


!!ALSA Version
!!

Driver version: 1.0.17
Library version:
Utilities version:  1.0.17


!!Loaded ALSA modules
!!---

snd_hda_intel


!!Sound Servers on this system
!!

Pulseaudio:
  Installed - Yes (/usr/bin/pulseaudio)
  Running - Yes

ESound Daemon:
  Installed - Yes (/usr/bin/esd)
  Running - No

aRts:
  Installed - Yes (/usr/bin/artsd)
  Running - No


!!Soundcards recognised by ALSA
!!-

 0 [SB ]: HDA-Intel - HDA ATI SB
  HDA ATI SB at 0xc050 irq 16


!!PCI Soundcards installed in the system
!!--

00:14.2 Audio device: ATI Technologies Inc IXP SB4x0 High Definition Audio 
Controller (rev 01)


!!Advanced information - PCI Vendor/Device/Susbsystem ID's
!!

00:14.2 0403: 1002:437b (rev 01)
Subsystem: 103c:30ba


!!Modprobe options (Sound related)
!!

snd-atiixp-modem: index=-2
snd-intel8x0m: index=-2
snd-via82xx-modem: index=-2
snd-usb-audio: index=-2
snd-usb-usx2y: index=-2
snd-usb-caiaq: index=-2
snd-cmipci: mpu_port=0x330 fm_port=0x388
snd-pcsp: index=-2


!!Loaded sound module options
!!--

!!Module: snd_hda_intel
bdl_pos_adj : 
32,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
enable : Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y
enable_msi : 0
id : 
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL
index : 
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
model : 
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL
position_fix : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
power_save : 0
power_save_controller : Y
probe_mask : 
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
single_cmd : N


!!HDA-Intel Codec information
!!---
--startcollapse--

Codec: Realtek ALC260
Address: 0
Vendor Id: 0x10ec0260
Subsystem Id: 0x103c
Revision Id: 0x100400
No Modem Function Group found
Default PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
GPIO: io=4, o=0, i=0, unsolicited=1, wake=0
  IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0
  IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0
  IO[2]: enable=0, dir=0, wake=0, sticky=0, data=0
  IO[3]: enable=0, dir=0, wake=0, sticky=0, data=0
Node 0x02 [Audio Output] wcaps 0x11: Stereo
  Converter: stream=0, channel=0
  PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x03 [Audio Output] wcaps 0x211: Stereo Digital
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0x1e]: 16 20 24 32
formats [0x1]: PCM
Node 0x04 [Audio Input] wcaps 0x10011b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x23, stepsize=0x03, mute=1
  Amp-In vals:  [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] 
[0x00 0x00] [0x00 0x00]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
rates [0x160]: 44100 48000 96000
bits [0x6]: 16 20
formats [0x1]: PCM
  Connection: 7
 0x12* 0x13 0x14 0x15 0x16 0x0f 0x10
Node 0x05 [Audio Input] wcaps 0x10011b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x23, stepsize=0x03, mute=1
  Amp-In vals:  [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] 
[0x00 0x00] [0x00 0x00] [0x00 0x00]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
rates [0x160]: 44100 48000 96000
bits [0x6]: 16 20
formats [0x1]: PCM
  Connection: 8
 0x12* 0x13 0x14 0x15 0x16 0x07 0x0f 0x10
Node 0x06 [Audio Input] wcaps 0x100391: Stereo Digital
  Converter: stream=0, 

Re: [Alsa-user] JACK doesn't find ALSA

2009-04-17 Thread MG
It's okay I seem to be able to load them together in Add/Remove
Applications.

2009/4/17 MG m.s0128...@gmail.com

 Can you help please maybe ALSA is in the wrong dir but thought comes with
 Ubuntu 2.6!!:

 Checking for program g++ : ok /usr/bin/g++
 Checking for compiler version: ok 4.3.2
 Checking for program cpp : ok /usr/bin/cpp
 Checking for program ar  : ok /usr/bin/ar
 Checking for program ranlib  : ok /usr/bin/ranlib
 Checking for g++ : ok
 Checking for program gcc : ok /usr/bin/gcc
 Checking for compiler version: ok 4.3.2
 Checking for program ar  : ok /usr/bin/ar
 Checking for program ranlib  : ok /usr/bin/ranlib
 Checking for gcc : ok
 Checking for header samplerate.h : not found
 Checking for alsa = 1.0.0   : Package alsa (= 1.0.0) could
 not be found or the found version is too old.
 Checking for libfreebob = 1.0.0 : Package libfreebob (= 1.0.0)
 could not be found or the found version is too old.
 Checking for libffado = 1.999.17: Package libffado (= 1.999.17)
 could not be found or the found version is too old.
 Checking for header sndfile.h: not found
 Checking for header ncurses.h: ok
 Checking for library readline: not found

 ==
 JACK 1.9.2 exported from r3454M
 Build with a maximum of 64 JACK clients
 Build with a maximum of 1024 ports
 Install prefix   : /usr/local
 Library directory: /usr/local/lib/
 Drivers directory: /usr/local/lib/jack
 Build doxygen documentation  : no
 Build with engine profiling  : no
 Build with ALSA support  : no
 Build with FireWire (FreeBob) support: no
 Build with FireWire (FFADO) support  : no
 Build D-Bus JACK (jackdbus)  : no



--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] JACK doesn't find ALSA

2009-04-17 Thread Nigel Henry
On Friday 17 April 2009 16:08, MG wrote:
 Can you help please maybe ALSA is in the wrong dir but thought comes with
 Ubuntu 2.6!!:

 Checking for program g++ : ok /usr/bin/g++
 Checking for compiler version: ok 4.3.2
 Checking for program cpp : ok /usr/bin/cpp
 Checking for program ar  : ok /usr/bin/ar
 Checking for program ranlib  : ok /usr/bin/ranlib
 Checking for g++ : ok
 Checking for program gcc : ok /usr/bin/gcc
 Checking for compiler version: ok 4.3.2
 Checking for program ar  : ok /usr/bin/ar
 Checking for program ranlib  : ok /usr/bin/ranlib
 Checking for gcc : ok
 Checking for header samplerate.h : not found
 Checking for alsa = 1.0.0   : Package alsa (= 1.0.0) could
 not be found or the found version is too old.
 Checking for libfreebob = 1.0.0 : Package libfreebob (= 1.0.0)
 could not be found or the found version is too old.
 Checking for libffado = 1.999.17: Package libffado (= 1.999.17)
 could not be found or the found version is too old.
 Checking for header sndfile.h: not found
 Checking for header ncurses.h: ok
 Checking for library readline: not found

 ==
 JACK 1.9.2 exported from r3454M
 Build with a maximum of 64 JACK clients
 Build with a maximum of 1024 ports
 Install prefix   : /usr/local
 Library directory: /usr/local/lib/
 Drivers directory: /usr/local/lib/jack
 Build doxygen documentation  : no
 Build with engine profiling  : no
 Build with ALSA support  : no
 Build with FireWire (FreeBob) support: no
 Build with FireWire (FFADO) support  : no
 Build D-Bus JACK (jackdbus)  : no

It appears you are missing some development packages. I'm still unsure on 
which version of Ubuntu you are using. You say Ubuntu 2.6, but what is that?

Anyway. I'm looking on Ubuntu Intrepid 8.10, and in that, the packages you 
need to install are as below. 

libasound2-dev
libsamplerate0-dev
libsndfile1-dev

If you are using a different version of Ubuntu, open synaptic, and check that 
the package names are the same.

I don't know why you are building jack from a source tarball, as both jackd, 
and qjackctl (the gui for jack, and midi settings) are available from the 
repo's, but of course it's your choice.

Have you got the sounds working yet on your Extigy card?

All the best.

Nigel.


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] ALSA Volume is quiet

2009-04-17 Thread MG
I have already been using the alsamixer
However although I have volume it can't be right that you have to turn it
almost to Max to hear anything!
--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] USB Hard drive Errors

2009-04-17 Thread Paul Hartman
On Fri, Apr 17, 2009 at 5:47 AM, MG m.s0128...@gmail.com wrote:
 Please can you tell me why some hard drives are only partially recognised?
 It brings them up on the in a window but I can't go into them from the
 terminal to execute
 I already selected NTFS writing
 Thx!!!
 Nooby

What does this have to do with ALSA?

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] ALSA Volume is quiet

2009-04-17 Thread Paul Hartman
On Fri, Apr 17, 2009 at 10:47 AM, MG m.s0128...@gmail.com wrote:
 I have already been using the alsamixer
 However although I have volume it can't be right that you have to turn it
 almost to Max to hear anything!

Check PCM volume as well as master and output volume

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] JACK doesn't find ALSA

2009-04-17 Thread Nigel Henry
On Friday 17 April 2009 17:37, you wrote:
 I meant 8.10 yes
 I am now downloading ALSA and JACK from Applications so hopefully that's
 all I need to do
 I thought they were installed but yes I got Firefox sound by blacklisting
 the onboard sound
 I enjoy making things hard for myself though, I learn more that way!!
 Thanks for input, don't suppose you know anything about mounting the hard
 drives as only got them in dev/usb1 etc after a lot of terminal work.
 I still need those 3 files u mention?
 Thx


Those 3 files are still worth installing, as you may want to install some 
other audio related app which is only available as a source tarball, and 
usually are required when compiling audio apps.

Nigel.


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] ALSA Volume is quiet

2009-04-17 Thread Paul Hartman
On Fri, Apr 17, 2009 at 11:00 AM, MG m.s0128...@gmail.com wrote:
 2009/4/17 Paul Hartman paul.hartman+gen...@gmail.com
 On Fri, Apr 17, 2009 at 10:47 AM, MG m.s0128...@gmail.com wrote:
  I have already been using the alsamixer
  However although I have volume it can't be right that you have to turn
  it
  almost to Max to hear anything!

 Check PCM volume as well as master and output volume

 They are all level near max!!!

Please reply to the list and don't top-post...

On my system Master, PCM, Front are the volume settings that have a
noticeable effect... also make sure the program that is generating the
audio has sufficient volume.

Also, on some motherboard/chips the headphone and master volume are
backwards... meaning the main audio output will be low, as if for
headphones... so you may want to look for something like that (or try
changing output jack if you have more than one on your machine).

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] JACK doesn't find ALSA

2009-04-17 Thread MG
The sound only started playing in Firefox through my Extigy when I installed
Pulseaudio so not sure about that
It's saying I need qmake
only one output works and that's headphones
the other output for surround/line out is as loud as the phones usually

Now Ubuntu Intrepid 8.10 has pulseaudio installed as default (Kubuntu
Intrepid
doesn't). I have seen problems where folks had very low sound output, and
have suggested removing pulseaudio, which has brought the sounds back to
normal levels. To remove pulseaudio do as below. You can always put it back
later, if you want it.

sudo apt-get remove pulseaudio

Before doing that though, have a look in alsamixer for sliders that may need
to be pushed up. With pulseaudio installed, opening alsamixer in Gnomes
terminal as alsamixer, simply shows the pulseaudio slider, so open alsamixer
as below. I don't have an Extigy card, but you will probably see sliders
like
Master, PCM, Front, which may need to be pushed up.

alsamixer -D hw:0

The above is if  cat /proc/asound/cards shows the Extigy card as card0.

You said on a previous post that you'd blacklisted the onboard card, so the
above alsamixer command should be correct. If the Extigy card is still shown
as card1, open alsamixer as below.

alsamixer -D hw:1

Post back, and let us know how you get on.

All the best.

Nigel.




ReplyForwardInvite Nigel to Google Mail







 *R*eply
[image: Reply to all] Reply to all[image: Forward] Forward Print Add Paul to
Contacts list Delete this message Report phishing Show original Message text
garbled?
 Paul Hartman to alsa-user
show details
 17:15 (7 minutes ago)
On Fri, Apr 17, 2009 at 11:00 AM, MG m.s0128...@gmail.com wrote:
 2009/4/17 Paul Hartman 
 paul.hartman+gen...@gmail.compaul.hartman%2bgen...@gmail.com

 On Fri, Apr 17, 2009 at 10:47 AM, MG m.s0128...@gmail.com wrote:
  I have already been using the alsamixer
  However although I have volume it can't be right that you have to turn
  it
  almost to Max to hear anything!

 Check PCM volume as well as master and output volume

 They are all level near max!!!

Please reply to the list and don't top-post...

On my system Master, PCM, Front are the volume settings that have a
noticeable effect... also make sure the program that is generating the
audio has sufficient volume.

Also, on some motherboard/chips the headphone and master volume are
backwards... meaning the main audio output will be low, as if for
headphones... so you may want to look for something like that (or try
changing output jack if you have more than one on your machine).





--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] DELL SP2309W Monitor with Integrated microphone

2009-04-17 Thread Phil Gorbett
Paul Hartman paul.hartman+gentoo at gmail.com writes:

 
 On Fri, Apr 17, 2009 at 2:27 AM, Clemens Ladisch
 cladisch at googlemail.com wrote:
  Phil Gorbett wrote:
  I am having difficulty getting the microphone(s) going with this
 
  Please show the output of lsusb -v for this device.
 
 
  Best regards,
  Clemens
 
 I'm not the OP but I have the same monitor and same problem. Here's
 the lsusb output for the microphone:
 
 http://pastebin.com/f4c340014
 

Yes, I concur.  The output listed at the referred URL matches exactly that for
my config (device 0:4).  It appears to be a problem with the usb-audio driver. 
While the monitor is fairly new, it is a Dell monitor and from numerous postings
on monitor reviews, is quite popular and well received although no one has been
able the get the mics going in Linux and Dell unable to assist, including Ubuntu
which they supposedly support (I'm running FC10).  Hence I'd suggest that
resolving will make many people happy now and in the future.  I'm happy to
assist as well.

Cheers,
PG



--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] DELL SP2309W Monitor with Integrated microphone

2009-04-17 Thread Paul Hartman
On Fri, Apr 17, 2009 at 12:47 PM, Phil Gorbett pgorb...@usc.edu.au wrote:
 Paul Hartman paul.hartman+gentoo at gmail.com writes:


 On Fri, Apr 17, 2009 at 2:27 AM, Clemens Ladisch
 cladisch at googlemail.com wrote:
  Phil Gorbett wrote:
  I am having difficulty getting the microphone(s) going with this
 
  Please show the output of lsusb -v for this device.
 
 
  Best regards,
  Clemens

 I'm not the OP but I have the same monitor and same problem. Here's
 the lsusb output for the microphone:

 http://pastebin.com/f4c340014


 Yes, I concur.  The output listed at the referred URL matches exactly that for
 my config (device 0:4).  It appears to be a problem with the usb-audio driver.
 While the monitor is fairly new, it is a Dell monitor and from numerous 
 postings
 on monitor reviews, is quite popular and well received although no one has 
 been
 able the get the mics going in Linux and Dell unable to assist, including 
 Ubuntu
 which they supposedly support (I'm running FC10).  Hence I'd suggest that
 resolving will make many people happy now and in the future.  I'm happy to
 assist as well.

Dell does not support Ubuntu at all, Dell just sells computers with
Ubuntu on them and sells support contracts from Canonical. On the Dell
forums people have specifically asked Dell about it and they basically
say the microphone is not linux compatible, try asking the ubuntu
forums for help, maybe someone can figure it out... despite the fact
that it will let you order this monitor along with an Ubuntu computer.

FWIW the microphones do not work on Mac OS X without commercial
third-party drivers, and there have been numerous posts by Windows
users who are having problems getting the microphones to work on
XP/Vista as well. So I guess the mic is not totally standard usb-audio
(if there is such a thing as standard).

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] need help to setup a 5.1 to 2.0 config

2009-04-17 Thread MALET Jean-Luc
Hi!
I have looked the wiki, tried lot of stuff, asked to some LUG list and 
since nothing else worked, I fall back on you
I don't understand clearly how alsa is working...
I started with http://www.alsa-project.org/main/index.php/Asoundrc

my need :
I have a 5.1 ogg stream, and a 5.1 soundcard, but I just use the 2.0 one 
(I don't have 5.1 speaker system, just headphones)
sadely ogg don't merge the streams as aac lib does to make a 2.0 sound 
from a 5.1 one, so when I listen to this stream I just hear partial sound...

so what I need is
  - a way to create a virtual 5.1 alsa device that merge all streams 
into a 2.0 one
  - the device shall accept multiple client (like dmix)

I thought first at using
Plugin: Route  Volume
but it don't allow multiple client
I then tried dmix, but the binding field don't seems to work correctly

I tried with

bindings {
  0 0 # map front left to left
  1 0 # map front center to left
  1 1 # map front center to right
  2 1 # map front right to right
  3 0 # map rear left to left
  4 1 # map rear right to right
  5 0 # map subwoofer to right
  5 1 # map subwooder to left
}

as a first approximation but well didn't worked correctly
can someone help me?
thanks
JLM

-- 
KISS! (Keep It Simple, Stupid!)
(garde le simple, imbécile!)
mais qu'est-ce que tu m'as pondu comme usine à gaz? fait des choses 
simples et qui marchent, espèce d'imbécile!
-
Si vous pensez que vous êtes trop petit pour changer quoique ce soit, 
essayez donc de dormir avec un moustique dans votre chambre. Betty Reese
http://www.grainesdechangement.com/citations.htm


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] alsamixer does not save settings

2009-04-17 Thread Geoffrey Leach
On 04/17/2009 01:16:26 AM, Clemens Ladisch wrote:
 Geoffrey Leach wrote:
  I'm havind a problem with alsamixer. It appears not to save the
  changes. The man page does not mention this, so perhaps its doing
 what
  it is designed to do.
 
 It is only designed to change the sound card's mixer settings.
 
  In that case, can anyone point me to a tool that makes permanent
  (mute, in this case) settings?
 
 alsactl store and alsactl restore do what you want.  In theory,
 these calls should be made automatically by your distribution's
 shutdown/
 startup scripts.

Thanks.

FWIW, it appears that this (1.0.19) is the problem:

function stop() {
  #
  # store driver settings
  #
  if [ -x $alsactl ]; then
$alsactl -f $asoundcfg store

The file as installed from the source distribution, does not have 
executable permissions. Or perhaps the '-x' was not intended?



--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user