All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paulo Marcel Coelho Aragao <pmcaragao-ag@yahoo.com>
To: alsa-devel@lists.sourceforge.net
Subject: Re: Tips on debugging ALSA driver snd_es18xx
Date: Thu, 15 Dec 2005 14:52:03 -0200	[thread overview]
Message-ID: <20051215165203.GC5793@cortazar> (raw)
In-Reply-To: <1134660339.43a18af3d7aa4@webmail.uni-halle.de>

[-- Attachment #1: Type: text/plain, Size: 1820 bytes --]

Clemens Ladisch wrote on Dec, 15:
> > This was curious: the wav files I tried with aplay ended too quickly, so I
> > looked for longer ones. My surprise: no sound from the longer ones. It gave
> > me the impression to be related to the sound source being coded for 16 or
> > 8-bits, if I'm not speaking just plain nonsense.
> 
> Please add this to your ~/.asoundrc:
> 
> pcm.u8 {
> 	type plug
> 	slave.pcm {
> 		type linear
> 		slave {
> 			pcm "hw:0"
> 			format U8
> 		}
> 	}
> }

May I ask you what this snippet does ?

> and try to play some 16-bit file to the ALSA device named "u8" instead of the
> default one.  If this works, there is a bug in the driver in relation with
> 16-bit data.

Fantastic, Clemens ! You hit the bull's eye. Now the scenario is:

1) aplay -Du8 produces sound from 8 or 16-bit data (the same I used before) on 
   both speakers

2) xmms and gxine produce sound only on the left speaker. I've attached a file 
   with the few config parameters which are explicitly set for gxine (the rest 
   is commented out, therefore, default). xmms saves every single parameter, 
   so I'm just sending the ALSA stanza.  My eye didn't catch anything that 
   might be related to usage of left/right speakers. Just in case, I'm also 
   attaching my mixer settings.

3) speaker-test -Du8 produces what I suppose is pink noise on both speakers, 
   but I noticed that its output included only "0 - Front Left"

I guess we're almost there. I thought I'd be doing the hard work, but you've 
been doing everything. I'm really happy and thankful for having posted the 
problem here. Now I've got to capitalize on this and learn more.

Would you have any suggestions regarding (2) ?

If this is indeed a bug in the driver, should I file a bug in ALSA BTS ?

Thanks immensely for your providencial help
Paulo

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

numid=2,iface=MIXER,name='Master Playback Switch'
  ; type=BOOLEAN,access=rw---,values=2
  : values=on,on
numid=1,iface=MIXER,name='Master Playback Volume'
  ; type=INTEGER,access=rw---,values=2,min=0,max=63,step=0
  : values=55,56
numid=28,iface=MIXER,name='Hardware Master Volume Split'
  ; type=BOOLEAN,access=rw---,values=1
  : values=off
numid=27,iface=MIXER,name='Hardware Master Playback Switch'
  ; type=BOOLEAN,access=r----,values=2
  : values=on,on
numid=26,iface=MIXER,name='Hardware Master Playback Volume'
  ; type=INTEGER,access=r----,values=2,min=0,max=63,step=0
  : values=55,56
numid=24,iface=MIXER,name='3D Control - Level'
  ; type=INTEGER,access=rw---,values=1,min=0,max=63,step=0
  : values=63
numid=25,iface=MIXER,name='3D Control - Switch'
  ; type=BOOLEAN,access=rw---,values=1
  : values=on
numid=14,iface=MIXER,name='PCM Playback Volume'
  ; type=INTEGER,access=rw---,values=2,min=0,max=15,step=0
  : values=15,15
numid=15,iface=MIXER,name='PCM Playback Volume',index=1
  ; type=INTEGER,access=rw---,values=2,min=0,max=15,step=0
  : values=15,15
numid=16,iface=MIXER,name='PCM Capture Volume'
  ; type=INTEGER,access=rw---,values=2,min=0,max=15,step=0
  : values=15,15
numid=5,iface=MIXER,name='FM Playback Volume'
  ; type=INTEGER,access=rw---,values=2,min=0,max=15,step=0
  : values=15,15
numid=19,iface=MIXER,name='FM Capture Volume'
  ; type=INTEGER,access=rw---,values=2,min=0,max=15,step=0
  : values=0,0
numid=3,iface=MIXER,name='Line Playback Volume'
  ; type=INTEGER,access=rw---,values=2,min=0,max=15,step=0
  : values=15,15
numid=18,iface=MIXER,name='Line Capture Volume'
  ; type=INTEGER,access=rw---,values=2,min=0,max=15,step=0
  : values=0,0
numid=4,iface=MIXER,name='CD Playback Volume'
  ; type=INTEGER,access=rw---,values=2,min=0,max=15,step=0
  : values=15,15
numid=21,iface=MIXER,name='CD Capture Volume'
  ; type=INTEGER,access=rw---,values=2,min=0,max=15,step=0
  : values=14,14
numid=23,iface=MIXER,name='Mic Boost (+26dB)'
  ; type=BOOLEAN,access=rw---,values=1
  : values=off
numid=7,iface=MIXER,name='Mic Playback Volume'
  ; type=INTEGER,access=rw---,values=2,min=0,max=15,step=0
  : values=15,15
numid=17,iface=MIXER,name='Mic Capture Volume'
  ; type=INTEGER,access=rw---,values=2,min=0,max=15,step=0
  : values=0,0
numid=9,iface=MIXER,name='PC Speaker Playback Volume'
  ; type=INTEGER,access=rw---,values=1,min=0,max=7,step=0
  : values=7
numid=8,iface=MIXER,name='Aux Playback Volume'
  ; type=INTEGER,access=rw---,values=2,min=0,max=15,step=0
  : values=15,15
numid=22,iface=MIXER,name='Aux Capture Volume'
  ; type=INTEGER,access=rw---,values=2,min=0,max=15,step=0
  : values=0,0
numid=6,iface=MIXER,name='Mono Playback Volume'
  ; type=INTEGER,access=rw---,values=2,min=0,max=15,step=0
  : values=15,15
numid=20,iface=MIXER,name='Mono Capture Volume'
  ; type=INTEGER,access=rw---,values=2,min=0,max=15,step=0
  : values=0,0
numid=13,iface=MIXER,name='Capture Source'
  ; type=ENUMERATED,access=rw---,values=1,items=8
  ; Item #0 'Mic'
  ; Item #1 'Mic Master'
  ; Item #2 'CD'
  ; Item #3 'AOUT'
  ; Item #4 'Mic1'
  ; Item #5 'Mix'
  ; Item #6 'Line'
  ; Item #7 'Master'
  : values=7
numid=12,iface=MIXER,name='Capture Switch'
  ; type=BOOLEAN,access=rw---,values=1
  : values=on
numid=11,iface=MIXER,name='Capture Volume'
  ; type=INTEGER,access=rw---,values=2,min=0,max=15,step=0
  : values=10,10
numid=10,iface=MIXER,name='Record Monitor'
  ; type=BOOLEAN,access=rw---,values=1
  : values=off


[-- Attachment #3: gxine.cfg --]
[-- Type: text/plain, Size: 294 bytes --]

gui.experience_level:Master of the known universe
gui.post_plugins.audio_visualisation:None
audio.driver:alsa
audio.device.alsa_default_device:u8
audio.device.alsa_front_device:u8
video.driver:opengl
video.output.opengl_renderer:2D_Tex
engine.performance.memcpy_method:mmx
misc.wizards_shown:6

[-- Attachment #4: xmms.cfg --]
[-- Type: text/plain, Size: 157 bytes --]

[ALSA]
buffer_time=500
period_time=50
thread_buffer_time=3000
pcm_device=u8
mixer_card=0
mixer_device=PCM
soft_volume=FALSE
volume_left=100
volume_right=100

  reply	other threads:[~2005-12-15 16:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-15  1:34 Tips on debugging ALSA driver snd_es18xx Paulo Marcel Coelho Aragao
2005-12-15  8:27 ` Clemens Ladisch
2005-12-15 11:12   ` Paulo Marcel Coelho Aragao
2005-12-15 11:22     ` Takashi Iwai
2005-12-15 11:46       ` Paulo Marcel Coelho Aragao
2005-12-15 12:40       ` Paulo Marcel Coelho Aragao
2005-12-15 15:25     ` Clemens Ladisch
2005-12-15 16:52       ` Paulo Marcel Coelho Aragao [this message]
2005-12-15 17:41         ` Takashi Iwai
2005-12-15 19:42           ` Paulo Marcel Coelho Aragao
2005-12-16 14:28             ` Paulo Marcel Coelho Aragao
2005-12-22 15:51               ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051215165203.GC5793@cortazar \
    --to=pmcaragao-ag@yahoo.com \
    --cc=alsa-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.