On Sun, Apr 27, 2008 at 13:08:54 -0400, Frank McCormick wrote:
> On Sun, 27 Apr 2008 17:51:36 +0200 Florian Kulzer wrote:
> > > 
> > >    Been there. Tried that. /dev/dsp works for playback as does Alsa
> > > default...but for record..nothing works including /dev/dsp. Most of the
> > > selections for recording produce the " can't open device error". I am
> > > totally baffled because Audacity works out of the box on Ubuntu Gutsy
> > > and Windows XP. How much of a difference can there be between Debian
> > > Sid/Lenny and Gutsy ??
> > 
> > You'll have to tell us... 
> > 
> > Run these commands on the Debian install:
> > 
> > cat /dev/sndstat > sndstat-debian.txt
> > cat /proc/asound/cards > cards-debian.txt
> > amixer > amixer-debian.txt
> > grep '.*' /sys/module/snd_*/parameters/* > modparams-debian.txt
> > 
> > Then do the same on the Ubuntu system to generate the equivalent
> > *-ubuntu.txt files. Compare the pairs of corresponding files (e.g. with
> > "diff -u") and post the results here.
> 
> diff.amixer
> 
> --- amixer-debian.txt 2008-04-27 12:38:11.000000000 -0400
> +++ amixer-gutsy.txt  2008-04-27 12:47:01.000000000 -0400

[ snip: Let's focus on the "Capture" channels for the moment, since your
        problem is with recording and not with playback. ]

>  Simple mixer control 'Surround Jack Mode',0
>    Capabilities: enum
>    Items: 'Shared' 'Independent'
> -  Item0: 'Independent'
> +  Item0: 'Shared'

I don't know what this does; you can try to change it to 'Shared' on the
Debian system.

>  Simple mixer control 'Line',0
>    Capabilities: pvolume pswitch cswitch cswitch-exclusive
>    Capture exclusive group: 0
>    Playback channels: Front Left - Front Right
>    Capture channels: Front Left - Front Right
>    Limits: Playback 0 - 31
> -  Front Left: Playback 1 [3%] [-33.00dB] [on] Capture [off]
> -  Front Right: Playback 1 [3%] [-33.00dB] [on] Capture [off]
> +  Front Left: Playback 0 [0%] [-34.50dB] [off] Capture [off]
> +  Front Right: Playback 0 [0%] [-34.50dB] [off] Capture [off]

I don't think the difference in the playback setting matters here,
becuase capture is off in both cases.

> @@ -75,9 +75,9 @@
>    Playback channels: Mono
>    Capture channels: Front Left - Front Right
>    Limits: Playback 0 - 31
> -  Mono: Playback 29 [94%] [9.00dB] [on]
> +  Mono: Playback 28 [90%] [7.50dB] [on]
>    Front Left: Capture [on]
> -  Front Right: Capture [off]
> +  Front Right: Capture [on]

Try to activate capture for front right of whatever control that is.
(Look above line number 75 for its name.)

> @@ -136,14 +136,14 @@
>    Capabilities: cvolume cswitch
>    Capture channels: Front Left - Front Right
>    Limits: Capture 0 - 15
> -  Front Left: Capture 15 [100%] [22.50dB] [on]
> -  Front Right: Capture 15 [100%] [22.50dB] [on]
> +  Front Left: Capture 12 [80%] [18.00dB] [on]
> +  Front Right: Capture 12 [80%] [18.00dB] [on]

The amplification is higher for the Debian system here, maybe you are
saturating an amplifier. Try to reduce the level of this control. (Look
above line number 136 for its name.)

>  Simple mixer control 'Mix',0
>    Capabilities: cswitch cswitch-exclusive
>    Capture exclusive group: 0
>    Capture channels: Front Left - Front Right
>    Front Left: Capture [off]
> -  Front Right: Capture [on]
> +  Front Right: Capture [off]

This is exactly the other way round as for the control near line 75. I
would change this, too.

[...]

All in all it is the usual mess of somewhat cryptically named controls,
interacting in mysterious ways. I think your best bet is to use
amixer-gutsy.txt as a template to set up the alsa mixer controls in
exactly the same way on the Debian system. You can use the amixer
command itself for this or "alsamixer" if you prefer a (curses-based)
GUI.

> diff.modparams
> 
> --- modparams-debian.txt      2008-04-27 12:38:14.000000000 -0400
> +++ modparams-gutsy.txt       2008-04-27 12:47:01.000000000 -0400
> @@ -6,13 +6,28 @@
>  /sys/module/snd_intel8x0/parameters/buggy_semaphore:N
>  /sys/module/snd_intel8x0/parameters/enable:N
>  /sys/module/snd_intel8x0/parameters/id:<NULL>
> -/sys/module/snd_intel8x0/parameters/index:0
> +/sys/module/snd_intel8x0/parameters/index:-1

I do not think that this is relevant for your problem.

>  /sys/module/snd_intel8x0/parameters/joystick:0
>  /sys/module/snd_intel8x0/parameters/spdif_aclink:0
>  /sys/module/snd_intel8x0/parameters/xbox:N
> -/sys/module/snd_pcm_oss/parameters/adsp_map:1,1,1,1,1,1,1,1
> -/sys/module/snd_pcm_oss/parameters/dsp_map:0,0,0,0,0,0,0,0
> +/sys/module/snd_pcm_oss/parameters/adsp_map: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
> +/sys/module/snd_pcm_oss/parameters/dsp_map: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

This difference might simply be due to the newer ALSA version on the
Debian system.

>  /sys/module/snd_pcm/parameters/maximum_substreams:4
>  /sys/module/snd_pcm/parameters/preallocate_dma:1

[ snip: The Ubuntu systems loads a few more modules: snd_rawmidi,
  snd_seq_dummy, snd_seq_midi, snd_seq_oss, and snd_seq. ]

You can try to load these modules on the Debian system.

> diff.sndstat
> 
> --- sndstat-debian.txt        2008-04-27 12:38:11.000000000 -0400
> +++ sndstat-gutsy.txt 2008-04-27 12:47:01.000000000 -0400
> @@ -1,5 +1,5 @@
> -Sound Driver:3.8.1a-980706 (ALSA v1.0.15 emulation code)
> -Kernel: Linux debian 2.6.24-1-686 #1 SMP Sat Apr 19 00:37:55 UTC 2008 i686
> +Sound Driver:3.8.1a-980706 (ALSA v1.0.14 emulation code)
> +Kernel: Linux frank-desktop 2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25
> UTC 2008 i686 Config options: 0
>  
>  Installed drivers: 
> @@ -16,7 +16,7 @@
>  Midi devices: NOT ENABLED IN CONFIG
>  
>  Timers:
> -7: system timer
> +31: system timer

I don't think that this matters, so it must be either the alsa mixer
settings, the additional modules, or a regression in the newer ALSA
version.

-- 
Regards,            | http://users.icfo.es/Florian.Kulzer
          Florian   |


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to