Re: [gentoo-user] Still haveing problems with audio and guvcview

2011-06-05 Thread Mick
On Sunday 05 Jun 2011 04:51:54 meino.cra...@gmx.de wrote:

 Hi Mick,
 
 I did a
 
 modinfo snd_usb_audio
 
 and git this:
 
 filename:   /lib/modules/2.6.39.1/kernel/sound/usb/snd-usb-audio.ko
 license:GPL
 description:USB Audio
 author: Takashi Iwai ti...@suse.de
 alias:  usb:v*p*d*dc*dsc*dp*ic01isc01ip*
 alias:  usb:v*p*d*dc*dsc*dp*ic01isc03ip*
 alias:  usb:v0DBAp1000d*dc*dsc*dp*ic*isc*ip*
[snip ...]

 depends:snd-usbmidi-lib,snd-pcm,snd,snd-hwdep
 vermagic:   2.6.39.1 SMP preempt mod_unload
 parm:   index:Index value for the USB audio adapter. (array of
 int) parm:   id:ID string for the USB audio adapter. (array of
 charp) parm:   enable:Enable USB audio adapter. (array of bool)
 parm:   vid:Vendor ID for the USB audio device. (array of int)
 parm:   pid:Product ID for the USB audio device. (array of int)
 parm:   nrpacks:Max. number of packets per URB. (int)
 parm:   async_unlink:Use async unlink mode. (bool)
 parm:   device_setup:Specific device setup (if needed). (array
 of int) parm:   ignore_ctl_error:Ignore errors from USB controller
 for mixer interfaces. (bool)
 
 I am unsure how to play with the params...
 
 For example: Is snd_usb_audio enable=treu correct?

Well, treu wouldn't be correct, not even in French!  ;-)


 Why it is an /array/ of bool?

I think that this is used when there is more than one device/interface/etc. 
where you will need to enable/disable each one.


 May be a last chance is with fiddling with this params? Can I
 rmmod/insmod snd_usb_audio while giving new params to it? How
 can I do that? Fortunately
 
 Module  Size  Used by
 ecryptfs   87672  3
 snd_seq_dummy   1359  0
 snd_seq_oss30300  0
 snd_seq_midi_event  5268  1 snd_seq_oss
 snd_seq50559  5
 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event snd_pcm_oss43683 
 0
 snd_mixer_oss  14787  1 snd_pcm_oss
 microcode   6787  0
 nvidia  10489149  28
 snd_hda_codec_via  51530  1
 *** snd_usb_audio  90398  0
 snd_hda_intel  20832  0
 snd_hda_codec  63752  2 snd_hda_codec_via,snd_hda_intel
 snd_pcm73953  4
 snd_pcm_oss,snd_usb_audio,snd_hda_intel,snd_hda_codec mt352   
5653  1
 snd_hwdep   5940  2 snd_usb_audio,snd_hda_codec
 8250_pci   23504  0
 snd_timer  18685  2 snd_seq,snd_pcm
 snd_usbmidi_lib18214  1 snd_usb_audio
 snd_rawmidi18484  1 snd_usbmidi_lib
 snd_seq_device  5197  4
 snd_seq_dummy,snd_seq_oss,snd_seq,snd_rawmidi dvb_bt8xx  11873
  0
 bt878   7643  1 dvb_bt8xx
 bttv  112236  2 dvb_bt8xx,bt878
 snd55623  15
 snd_seq_dummy,snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_hda_codec_
 via,snd_usb_audio,snd_hda_intel,snd_hda_codec,snd_pcm,snd_hwdep,snd_timer,s
 nd_usbmidi_lib,snd_rawmidi,snd_seq_device gspca_ov53410121  0
 gspca_main 22449  1 gspca_ov534
 i2c_algo_bit4928  1 bttv
 videobuf_dma_sg 7344  1 bttv
 videobuf_core  15263  2 bttv,videobuf_dma_sg
 btcx_risc   3171  1 bttv
 8250   21264  1 8250_pci
 serial_core18115  1 8250
 pcspkr  1811  0
 asus_atk01108206  0
 tveeprom   13257  1 bttv
 k10temp 2715  0
 snd_page_alloc  6793  2 snd_hda_intel,snd_pcm
 
 snd_usb_audio is not used by anything else...
 
 Years over years I had not a single problem with alsa and modules at
 all and this seems now be th revenge of the peace of all that years...

Yes, I would definitely try switching some of these parameters on/off to see 
if it will make a difference.

I recommend you use modprobe -v instead of insmod.  So this could be:

modprobe -v -r snd_usb_audio
modprobe -v -n snd_usb_audio enable=yes

If you don't get any horror warnings when you run it, then remove the -n 
option and run it again.  Also, try paremeter ignore_ctl_error=1 in case it 
makes a difference.

To make this permanent add a line in /etc/modprobe.d/alsa-base.conf

options snd_usb_audio enable=yes
options snd_usb_audio ignore_ctl_error=1

and restart alsa (or reboot).

However, the new openrc uses a new way to start modules and dictate their 
configuration.  So the above may not work for ever and you would need to add 
at some point the module and its parameters in /etc/conf.d/modules.  For now I 
though I would leave it in /etc/modprobe.d/alsa-base.conf

Hope this helps.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Still haveing problems with audio and guvcview

2011-06-05 Thread meino . cramer
Mick michaelkintz...@gmail.com [11-06-05 14:40]:
 On Sunday 05 Jun 2011 04:51:54 meino.cra...@gmx.de wrote:
 
  Hi Mick,
  
  I did a
  
  modinfo snd_usb_audio
  
  and git this:
  
  filename:   /lib/modules/2.6.39.1/kernel/sound/usb/snd-usb-audio.ko
  license:GPL
  description:USB Audio
  author: Takashi Iwai ti...@suse.de
  alias:  usb:v*p*d*dc*dsc*dp*ic01isc01ip*
  alias:  usb:v*p*d*dc*dsc*dp*ic01isc03ip*
  alias:  usb:v0DBAp1000d*dc*dsc*dp*ic*isc*ip*
 [snip ...]
 
  depends:snd-usbmidi-lib,snd-pcm,snd,snd-hwdep
  vermagic:   2.6.39.1 SMP preempt mod_unload
  parm:   index:Index value for the USB audio adapter. (array of
  int) parm:   id:ID string for the USB audio adapter. (array of
  charp) parm:   enable:Enable USB audio adapter. (array of bool)
  parm:   vid:Vendor ID for the USB audio device. (array of int)
  parm:   pid:Product ID for the USB audio device. (array of int)
  parm:   nrpacks:Max. number of packets per URB. (int)
  parm:   async_unlink:Use async unlink mode. (bool)
  parm:   device_setup:Specific device setup (if needed). (array
  of int) parm:   ignore_ctl_error:Ignore errors from USB controller
  for mixer interfaces. (bool)
  
  I am unsure how to play with the params...
  
  For example: Is snd_usb_audio enable=treu correct?
 
 Well, treu wouldn't be correct, not even in French!  ;-)
 
 
  Why it is an /array/ of bool?
 
 I think that this is used when there is more than one device/interface/etc. 
 where you will need to enable/disable each one.
 
 
  May be a last chance is with fiddling with this params? Can I
  rmmod/insmod snd_usb_audio while giving new params to it? How
  can I do that? Fortunately
  
  Module  Size  Used by
  ecryptfs   87672  3
  snd_seq_dummy   1359  0
  snd_seq_oss30300  0
  snd_seq_midi_event  5268  1 snd_seq_oss
  snd_seq50559  5
  snd_seq_dummy,snd_seq_oss,snd_seq_midi_event snd_pcm_oss43683 
  0
  snd_mixer_oss  14787  1 snd_pcm_oss
  microcode   6787  0
  nvidia  10489149  28
  snd_hda_codec_via  51530  1
  *** snd_usb_audio  90398  0
  snd_hda_intel  20832  0
  snd_hda_codec  63752  2 snd_hda_codec_via,snd_hda_intel
  snd_pcm73953  4
  snd_pcm_oss,snd_usb_audio,snd_hda_intel,snd_hda_codec mt352   
 5653  1
  snd_hwdep   5940  2 snd_usb_audio,snd_hda_codec
  8250_pci   23504  0
  snd_timer  18685  2 snd_seq,snd_pcm
  snd_usbmidi_lib18214  1 snd_usb_audio
  snd_rawmidi18484  1 snd_usbmidi_lib
  snd_seq_device  5197  4
  snd_seq_dummy,snd_seq_oss,snd_seq,snd_rawmidi dvb_bt8xx  11873
   0
  bt878   7643  1 dvb_bt8xx
  bttv  112236  2 dvb_bt8xx,bt878
  snd55623  15
  snd_seq_dummy,snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_hda_codec_
  via,snd_usb_audio,snd_hda_intel,snd_hda_codec,snd_pcm,snd_hwdep,snd_timer,s
  nd_usbmidi_lib,snd_rawmidi,snd_seq_device gspca_ov53410121  0
  gspca_main 22449  1 gspca_ov534
  i2c_algo_bit4928  1 bttv
  videobuf_dma_sg 7344  1 bttv
  videobuf_core  15263  2 bttv,videobuf_dma_sg
  btcx_risc   3171  1 bttv
  8250   21264  1 8250_pci
  serial_core18115  1 8250
  pcspkr  1811  0
  asus_atk01108206  0
  tveeprom   13257  1 bttv
  k10temp 2715  0
  snd_page_alloc  6793  2 snd_hda_intel,snd_pcm
  
  snd_usb_audio is not used by anything else...
  
  Years over years I had not a single problem with alsa and modules at
  all and this seems now be th revenge of the peace of all that years...
 
 Yes, I would definitely try switching some of these parameters on/off to see 
 if it will make a difference.
 
 I recommend you use modprobe -v instead of insmod.  So this could be:
 
 modprobe -v -r snd_usb_audio
 modprobe -v -n snd_usb_audio enable=yes
 
 If you don't get any horror warnings when you run it, then remove the -n 
 option and run it again.  Also, try paremeter ignore_ctl_error=1 in case it 
 makes a difference.
 
 To make this permanent add a line in /etc/modprobe.d/alsa-base.conf
 
 options snd_usb_audio enable=yes
 options snd_usb_audio ignore_ctl_error=1
 
 and restart alsa (or reboot).
 
 However, the new openrc uses a new way to start modules and dictate their 
 configuration.  So the above may not work for ever and you would need to add 
 at some point the module and its parameters in /etc/conf.d/modules.  For now 
 I 
 though I would leave it in 

Re: [gentoo-user] Still haveing problems with audio and guvcview

2011-06-05 Thread Mick
On Sunday 05 Jun 2011 13:53:49 meino.cra...@gmx.de wrote:

 this is becoming interesting beyond the goal of solving the problem as
 such more and more ;)
 
 Is there a way to get the default settings of the listed parameters
 above when the module is loading without giving any additional params
 on the command line?

Yes.  They ought to show in dmesg when the module is loaded and the device 
probed.  Sometimes they also show if you run modprobe with -v and the debug 
module parameter is switched to verbose (only some modules have this 
parameter).

They also show conveniently under alsa-info (since we're talking here about a 
sound module):

!!Module: snd_usb_audio
async_unlink : Y
device_setup : 0,0,0,0,0,0,0,0
enable : Y,Y,Y,Y,Y,Y,Y,Y  

(this is the array we were talking about and it is enabled)

id : (null),(null),(null),(null),(null),(null),(null),(null)
ignore_ctl_error : N

(this is the ignore ctl error and is not ignored, so you could switch this to 
yes and see if it makes a difference)

index : -1,-1,-1,-1,-1,-1,-1,-1
nrpacks : 8
pid : -1,-1,-1,-1,-1,-1,-1,-1
vid : -1,-1,-1,-1,-1,-1,-1,-1

 If yes, I could exclude that default setting from the list of possible
 working setups and additionally -- may be -- I get a hint, what to
 twiddle first

Ideally, you should not need to tweak anything to be honest.  This mechanism 
is to tune some modules in case there are conflicts between devices, or you 
want to switch on a hardware functionality which may be switched off by 
default (e.g. QoS, debugging, etc).

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Still haveing problems with audio and guvcview

2011-06-05 Thread meino . cramer
Mick michaelkintz...@gmail.com [11-06-05 19:00]:
 On Sunday 05 Jun 2011 13:53:49 meino.cra...@gmx.de wrote:
 
  this is becoming interesting beyond the goal of solving the problem as
  such more and more ;)
  
  Is there a way to get the default settings of the listed parameters
  above when the module is loading without giving any additional params
  on the command line?
 
 Yes.  They ought to show in dmesg when the module is loaded and the device 
 probed.  Sometimes they also show if you run modprobe with -v and the debug 
 module parameter is switched to verbose (only some modules have this 
 parameter).
 
 They also show conveniently under alsa-info (since we're talking here about a 
 sound module):
 
 !!Module: snd_usb_audio
 async_unlink : Y
 device_setup : 0,0,0,0,0,0,0,0
 enable : Y,Y,Y,Y,Y,Y,Y,Y  
 
 (this is the array we were talking about and it is enabled)
 
 id : (null),(null),(null),(null),(null),(null),(null),(null)
 ignore_ctl_error : N
 
 (this is the ignore ctl error and is not ignored, so you could switch this to 
 yes and see if it makes a difference)
 
 index : -1,-1,-1,-1,-1,-1,-1,-1
 nrpacks : 8
 pid : -1,-1,-1,-1,-1,-1,-1,-1
 vid : -1,-1,-1,-1,-1,-1,-1,-1
 
  If yes, I could exclude that default setting from the list of possible
  working setups and additionally -- may be -- I get a hint, what to
  twiddle first
 
 Ideally, you should not need to tweak anything to be honest.  This mechanism 
 is to tune some modules in case there are conflicts between devices, or you 
 want to switch on a hardware functionality which may be switched off by 
 default (e.g. QoS, debugging, etc).
 
 -- 
 Regards,
 Mick

Hi Mick,

thank you very much for your explanations! I have learned many things I
didn't know before ... :)

Hopefully I will get back audio on my cam soon.

Have a nice week!
Best regards,
mcc







Re: [gentoo-user] Still haveing problems with audio and guvcview

2011-06-05 Thread Mick
On Sunday 05 Jun 2011 18:03:33 meino.cra...@gmx.de wrote:
 Mick michaelkintz...@gmail.com [11-06-05 19:00]:
  On Sunday 05 Jun 2011 13:53:49 meino.cra...@gmx.de wrote:
   this is becoming interesting beyond the goal of solving the problem as
   such more and more ;)
   
   Is there a way to get the default settings of the listed parameters
   above when the module is loading without giving any additional params
   on the command line?
  
  Yes.  They ought to show in dmesg when the module is loaded and the
  device probed.  Sometimes they also show if you run modprobe with -v and
  the debug module parameter is switched to verbose (only some modules
  have this parameter).
  
  They also show conveniently under alsa-info (since we're talking here
  about a sound module):
  
  !!Module: snd_usb_audio
  
  async_unlink : Y
  device_setup : 0,0,0,0,0,0,0,0
  enable : Y,Y,Y,Y,Y,Y,Y,Y
  
  (this is the array we were talking about and it is enabled)
  
  id : (null),(null),(null),(null),(null),(null),(null),(null)
  ignore_ctl_error : N
  
  (this is the ignore ctl error and is not ignored, so you could switch
  this to yes and see if it makes a difference)
  
  index : -1,-1,-1,-1,-1,-1,-1,-1
  nrpacks : 8
  pid : -1,-1,-1,-1,-1,-1,-1,-1
  vid : -1,-1,-1,-1,-1,-1,-1,-1
   
   If yes, I could exclude that default setting from the list of possible
   working setups and additionally -- may be -- I get a hint, what to
   twiddle first
  
  Ideally, you should not need to tweak anything to be honest.  This
  mechanism is to tune some modules in case there are conflicts between
  devices, or you want to switch on a hardware functionality which may be
  switched off by default (e.g. QoS, debugging, etc).
 
 Hi Mick,
 
 thank you very much for your explanations! I have learned many things I
 didn't know before ... :)
 
 Hopefully I will get back audio on my cam soon.
 
 Have a nice week!

You're welcome.  Sorry we couldn't get you going.  I suggest to get in touch 
with the alsa devs who will be able to hopefully fix what's not working with 
the driver or the configuration.

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Still haveing problems with audio and guvcview

2011-06-04 Thread Mick
On Friday 03 Jun 2011 21:10:29 meino.cra...@gmx.de wrote:

 When i start alsamixer and select with the soundcard-selector
 the audio device of my usb cam ... alsamixer crashes with:
 
   cannot load mixer controls: Invalid argument
 
 
 ...still no sound via usb cam and it seems no chance to use alsamixer
 with it...damn...this /had/ worked and I dont know what it kills...
 
 mylinux:/home/useraplay -l
  List of PLAYBACK Hardware Devices 
 card 0: SB [HDA ATI SB], device 0: VT2020 Analog [VT2020 Analog]
   Subdevices: 2/2
   Subdevice #0: subdevice #0
   Subdevice #1: subdevice #1
 card 0: SB [HDA ATI SB], device 1: VT2020 Digital [VT2020 Digital]
   Subdevices: 2/2
   Subdevice #0: subdevice #0
   Subdevice #1: subdevice #1

Your camera's sound card is not shown here (stating the obvious).

Have you tried building it as a module and modprobe -v driver to see what 
messages you get?

 mylinux:/home/userarecord -l
  List of CAPTURE Hardware Devices 
 card 0: SB [HDA ATI SB], device 0: VT2020 Analog [VT2020 Analog]
   Subdevices: 2/2
   Subdevice #0: subdevice #0
   Subdevice #1: subdevice #1
 card 1: CameraB404271 [USB Camera-B4.04.27.1], device 0: USB Audio [USB
 Audio] Subdevices: 1/1
   Subdevice #0: subdevice #0
[snip...]



 !!Loaded ALSA modules
 !!---
 
 
 

I would suggest that you build alsa as modules at least for troubleshooting 
purposes.  I had to do that in the past to get things working in a box, 
following the recommendation of the devs.

HTH.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Still haveing problems with audio and guvcview

2011-06-04 Thread meino . cramer
Mick michaelkintz...@gmail.com [11-06-04 12:12]:
 On Friday 03 Jun 2011 21:10:29 meino.cra...@gmx.de wrote:
 
  When i start alsamixer and select with the soundcard-selector
  the audio device of my usb cam ... alsamixer crashes with:
  
cannot load mixer controls: Invalid argument
  
  
  ...still no sound via usb cam and it seems no chance to use alsamixer
  with it...damn...this /had/ worked and I dont know what it kills...
  
  mylinux:/home/useraplay -l
   List of PLAYBACK Hardware Devices 
  card 0: SB [HDA ATI SB], device 0: VT2020 Analog [VT2020 Analog]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
  card 0: SB [HDA ATI SB], device 1: VT2020 Digital [VT2020 Digital]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
 
 Your camera's sound card is not shown here (stating the obvious).
 
 Have you tried building it as a module and modprobe -v driver to see what 
 messages you get?
 
  mylinux:/home/userarecord -l
   List of CAPTURE Hardware Devices 
  card 0: SB [HDA ATI SB], device 0: VT2020 Analog [VT2020 Analog]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
  card 1: CameraB404271 [USB Camera-B4.04.27.1], device 0: USB Audio [USB
  Audio] Subdevices: 1/1
Subdevice #0: subdevice #0
 [snip...]
 
 
 
  !!Loaded ALSA modules
  !!---
  
  
  
 
 I would suggest that you build alsa as modules at least for troubleshooting 
 purposes.  I had to do that in the past to get things working in a box, 
 following the recommendation of the devs.
 
 HTH.
 -- 
 Regards,
 Mick


I modularized alsa.
Now I have back my distorted sound when using vlc for tv and mplayer
does not find any audio device despite the fact that everything is
in place...and gucview produces videos with an empty audio track
(recorded sound of silence as it seems) as it has done already
before.

What next?

I included the resulting alsa-info again at the end of this mail...

Best regards and somehow frustrated
mcc


upload=truescript=truecardinfo=
!!
!!ALSA Information Script v 0.4.60
!!

!!Script ran on: Sat Jun  4 11:38:36 UTC 2011


!!Linux Distribution
!!--

Gentoo Base System release 2.0.2


!!DMI Information
!!---

Manufacturer:  System manufacturer
Product Name:  System Product Name
Product Version:   System Version


!!Kernel Information
!!--

Kernel release:2.6.39.1
Operating System:  GNU/Linux
Architecture:  x86_64
Processor: AMD Phenom(tm) II X6 1090T Processor
SMP Enabled:   Yes


!!ALSA Version
!!

Driver version: 1.0.24
Library version:1.0.24.1
Utilities version:  1.0.24.2


!!Loaded ALSA modules
!!---

snd_usb_audio
snd_hda_intel
snd_hda_intel


!!Sound Servers on this system
!!

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

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

Jack:
  Installed - Yes (/usr/bin/jackd)
  Running - No


!!Soundcards recognised by ALSA
!!-

 0 [CameraB404271  ]: USB-Audio - USB Camera-B4.04.27.1
  OmniVision Technologies, Inc. USB Camera-B4.04.27.1 at 
usb-:00:12.2-3, high
 1 [SB ]: HDA-Intel - HDA ATI SB
  HDA ATI SB at 0xfcaf8000 irq 16
 2 [NVidia ]: HDA-Intel - HDA NVidia
  HDA NVidia at 0xfe97c000 irq 25


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

00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA) (rev 40)
01:06.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture 
(rev 11)
01:06.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 
11)
08:00.1 Audio device: nVidia Corporation Device 0bea (rev a1)


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

00:14.2 0403: 1002:4383 (rev 40)
Subsystem: 1043:8410
--
08:00.1 0403: 10de:0bea (rev a1)
Subsystem: 1462:2304


!!Loaded sound module options
!!--

!!Module: snd_usb_audio
async_unlink : Y
device_setup : 0,0,0,0,0,0,0,0
enable : Y,Y,Y,Y,Y,Y,Y,Y
id : (null),(null),(null),(null),(null),(null),(null),(null)
ignore_ctl_error : N
index : -1,-1,-1,-1,-1,-1,-1,-1
nrpacks : 8
pid : -1,-1,-1,-1,-1,-1,-1,-1
vid : -1,-1,-1,-1,-1,-1,-1,-1

!!Module: snd_hda_intel
bdl_pos_adj : 32,32,-1,-1,-1,-1,-1,-1
beep_mode : 2,2,2,2,2,2,2,2
enable : Y,Y,Y,Y,Y,Y,Y,Y
enable_msi : -1
id : (null),(null),(null),(null),(null),(null),(null),(null)
index : -1,-1,-1,-1,-1,-1,-1,-1
model : (null),(null),(null),(null),(null),(null),(null),(null)

Re: [gentoo-user] Still haveing problems with audio and guvcview

2011-06-04 Thread Indi
On Sat, Jun 04, 2011 at 11:30:01AM +0200, Mick wrote:
 On Friday 03 Jun 2011 21:10:29 meino.cra...@gmx.de wrote:
 
  When i start alsamixer and select with the soundcard-selector
  the audio device of my usb cam ... alsamixer crashes with:
  
cannot load mixer controls: Invalid argument
  
  
  ...still no sound via usb cam and it seems no chance to use alsamixer
  with it...damn...this /had/ worked and I dont know what it kills...
  
  mylinux:/home/useraplay -l
   List of PLAYBACK Hardware Devices 
  card 0: SB [HDA ATI SB], device 0: VT2020 Analog [VT2020 Analog]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
  card 0: SB [HDA ATI SB], device 1: VT2020 Digital [VT2020 Digital]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
 
 Your camera's sound card is not shown here (stating the obvious).
 
 Have you tried building it as a module and modprobe -v driver to see what 
 messages you get?
 
  mylinux:/home/userarecord -l
   List of CAPTURE Hardware Devices 
  card 0: SB [HDA ATI SB], device 0: VT2020 Analog [VT2020 Analog]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
  card 1: CameraB404271 [USB Camera-B4.04.27.1], device 0: USB Audio [USB
  Audio] Subdevices: 1/1
Subdevice #0: subdevice #0
 [snip...]
 
 
 
  !!Loaded ALSA modules
  !!---
  
  
  
 
 I would suggest that you build alsa as modules at least for troubleshooting 
 purposes.  I had to do that in the past to get things working in a box, 
 following the recommendation of the devs.
 

I second that. For years I built the ALSA drivers into the kernel, but
for some reason that started giving me trouble some months back and
after switching to using modules instead it's back to being a carefree
setup.

-- 
caveat utilitor
♫ ❤ ♫ ❤ ♫ ❤ ♫ ❤ 



Re: [gentoo-user] Still haveing problems with audio and guvcview

2011-06-04 Thread Mick
On Saturday 04 Jun 2011 12:42:07 meino.cra...@gmx.de wrote:

 I modularized alsa.
 Now I have back my distorted sound when using vlc for tv and mplayer
 does not find any audio device despite the fact that everything is
 in place...and gucview produces videos with an empty audio track
 (recorded sound of silence as it seems) as it has done already
 before.
 
 What next?
[snip ...]

 !!USB Mixer information
 !!---
 --startcollapse--
 
 USB Mixer: usb_id=0x14152000, ctrlif=1, ctlerr=0
 Card: OmniVision Technologies, Inc. USB Camera-B4.04.27.1 at
 usb-:00:12.2-3, high Unit: 3
 Control: name=Mic Capture Volume, index=0

Hmmm .. shouldn't this line also have device=0 at the end?


 Info: id=3, control=2, cmask=0xf, channels=4, type=S16
 Volume: min=0, max=1, dBmin=0, dBmax=0
 --endcollapse--
[snip ...]


 !!---Mixer controls for card 0 [CameraB404271]
 
 amixer: Mixer load hw:0 error: Invalid argument
 Card hw:0 'CameraB404271'/'OmniVision Technologies, Inc. USB
 Camera-B4.04.27.1 at usb-:00:12.2-3, high' Mixer name : 'USB Mixer'
   Components  : 'USB1415:2000'
   Controls  : 1
 amixer: Mixer hw:0 load error: Invalid argument

That dreaded error again ...

What do you get when you run:

 alsamixer -D hw:0


 Simple mixer control 'IEC958',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]

Try muting this just in case it makes a difference (I seem to recall it used 
to cause problems many moons ago).


 !!Alsactl output
 !!-
 
 --startcollapse--
 --endcollapse--


Hold on!  Have you run alsactl at all?

Can you please run:

  alsactl -d init

to load the modules, probe the cards and reset all your devices.  Then run 
alsamixer to adjust their settings accordingly.

If all this does not help, then all I can think is that something in the sound 
drivers has changed for the worse (regression bug) and that's why you lost 
your sound.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Still haveing problems with audio and guvcview

2011-06-04 Thread meino . cramer
Mick michaelkintz...@gmail.com [11-06-04 22:30]:
 On Saturday 04 Jun 2011 12:42:07 meino.cra...@gmx.de wrote:
 
  I modularized alsa.
  Now I have back my distorted sound when using vlc for tv and mplayer
  does not find any audio device despite the fact that everything is
  in place...and gucview produces videos with an empty audio track
  (recorded sound of silence as it seems) as it has done already
  before.
  
  What next?
 [snip ...]
 
  !!USB Mixer information
  !!---
  --startcollapse--
  
  USB Mixer: usb_id=0x14152000, ctrlif=1, ctlerr=0
  Card: OmniVision Technologies, Inc. USB Camera-B4.04.27.1 at
  usb-:00:12.2-3, high Unit: 3
  Control: name=Mic Capture Volume, index=0
 
 Hmmm .. shouldn't this line also have device=0 at the end?
 
 
  Info: id=3, control=2, cmask=0xf, channels=4, type=S16
  Volume: min=0, max=1, dBmin=0, dBmax=0
  --endcollapse--
 [snip ...]
 
 
  !!---Mixer controls for card 0 [CameraB404271]
  
  amixer: Mixer load hw:0 error: Invalid argument
  Card hw:0 'CameraB404271'/'OmniVision Technologies, Inc. USB
  Camera-B4.04.27.1 at usb-:00:12.2-3, high' Mixer name   : 'USB Mixer'
Components: 'USB1415:2000'
Controls  : 1
  amixer: Mixer hw:0 load error: Invalid argument
 
 That dreaded error again ...
 
 What do you get when you run:
 
  alsamixer -D hw:0
 
 
  Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [on]
 
 Try muting this just in case it makes a difference (I seem to recall it used 
 to cause problems many moons ago).
 
 
  !!Alsactl output
  !!-
  
  --startcollapse--
  --endcollapse--
 
 
 Hold on!  Have you run alsactl at all?
 
 Can you please run:
 
   alsactl -d init
 
 to load the modules, probe the cards and reset all your devices.  Then run 
 alsamixer to adjust their settings accordingly.
 
 If all this does not help, then all I can think is that something in the 
 sound 
 drivers has changed for the worse (regression bug) and that's why you lost 
 your sound.
 -- 
 Regards,
 Mick

Hi Mick,

thank you fpr your help !:)

I reinitilized with alsactl (I think, the kernel
does the same when booting...) and do a 
alsa-info again (dump at the end of this email).

In the meantime I had resorted the snd-card numbering
via alsa.conf and get mplayer and vlc working again.

But still no sound via usb-audio/webcam.

The ordering of the cards is this now:

 0 [SB ]: HDA-Intel - HDA ATI SB
  HDA ATI SB at 0xfcaf8000 irq 16
 1 [CameraB404271  ]: USB-Audio - USB Camera-B4.04.27.1
  OmniVision Technologies, Inc. USB Camera-B4.04.27.1 at 
usb-:00:12.2-3, high
 2 [NVidia ]: HDA-Intel - HDA NVidia
  HDA NVidia at 0xfe97c000 irq 25

alsamixer -D hw:0 works, 
alsamixer -D hw:1 produces:
cannot load mixer controls: Invalid argument
alsamixer -D hw:2 starts alsamixer and prints
that this device does not have any controsl.

So nothing has changed ...

Damn...

Best regards,
mcc


upload=truescript=truecardinfo=
!!
!!ALSA Information Script v 0.4.60
!!

!!Script ran on: Sat Jun  4 20:41:11 UTC 2011


!!Linux Distribution
!!--

Gentoo Base System release 2.0.2


!!DMI Information
!!---

Manufacturer:  System manufacturer
Product Name:  System Product Name
Product Version:   System Version


!!Kernel Information
!!--

Kernel release:2.6.39.1
Operating System:  GNU/Linux
Architecture:  x86_64
Processor: AMD Phenom(tm) II X6 1090T Processor
SMP Enabled:   Yes


!!ALSA Version
!!

Driver version: 1.0.24
Library version:1.0.24.1
Utilities version:  1.0.24.2


!!Loaded ALSA modules
!!---

snd_hda_intel
snd_usb_audio
snd_hda_intel


!!Sound Servers on this system
!!

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

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

Jack:
  Installed - Yes (/usr/bin/jackd)
  Running - No


!!Soundcards recognised by ALSA
!!-

 0 [SB ]: HDA-Intel - HDA ATI SB
  HDA ATI SB at 0xfcaf8000 irq 16
 1 [CameraB404271  ]: USB-Audio - USB Camera-B4.04.27.1
  OmniVision Technologies, Inc. USB Camera-B4.04.27.1 at 
usb-:00:12.2-3, high
 2 [NVidia ]: HDA-Intel - HDA NVidia
  HDA NVidia at 0xfe97c000 irq 25


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

00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA) (rev 40)
01:06.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture 
(rev 11)
01:06.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 
11)
08:00.1 Audio device: nVidia 

Re: [gentoo-user] Still haveing problems with audio and guvcview

2011-06-04 Thread Mick
On Saturday 04 Jun 2011 21:56:52 meino.cra...@gmx.de wrote:

 Hi Mick,
 
 thank you fpr your help !:)

You're welcome, although it hasn't done much good I'm afraid.  :(


 I reinitilized with alsactl (I think, the kernel
 does the same when booting...) and do a
 alsa-info again (dump at the end of this email).
 
 In the meantime I had resorted the snd-card numbering
 via alsa.conf and get mplayer and vlc working again.
 
 But still no sound via usb-audio/webcam.
 
 The ordering of the cards is this now:
 
  0 [SB ]: HDA-Intel - HDA ATI SB
   HDA ATI SB at 0xfcaf8000 irq 16
  1 [CameraB404271  ]: USB-Audio - USB Camera-B4.04.27.1
   OmniVision Technologies, Inc. USB Camera-B4.04.27.1
 at usb-:00:12.2-3, high 2 [NVidia ]: HDA-Intel - HDA NVidia
   HDA NVidia at 0xfe97c000 irq 25
 
 alsamixer -D hw:0 works,
 alsamixer -D hw:1 produces:
 cannot load mixer controls: Invalid argument
 alsamixer -D hw:2 starts alsamixer and prints
 that this device does not have any controsl.
 
 So nothing has changed ...
 
 Damn...

Damn and thrice damn!

I am thinking that this Invalid argument is a driver problem.

It could be that passing some parameter when loading the module could fix 
this, but I would not know what that would be.  You can run:

  modinfo snd_usb_audio

and see what options are offered there.


 !!USB Mixer information
 !!---
 --startcollapse--
 
 USB Mixer: usb_id=0x14152000, ctrlif=1, ctlerr=0
 Card: OmniVision Technologies, Inc. USB Camera-B4.04.27.1 at
 usb-:00:12.2-3, high Unit: 3
 Control: name=Mic Capture Volume, index=0
 Info: id=3, control=2, cmask=0xf, channels=4, type=S16
 Volume: min=0, max=1, dBmin=0, dBmax=0
 --endcollapse--
 
 
 !!ALSA Device nodes
 !!-
 
 crw-rw 1 root audio 116,  0 Jun  4 15:07 /dev/snd/controlC0
 crw-rw 1 root audio 116, 32 Jun  4 22:30 /dev/snd/controlC1
 crw-rw 1 root audio 116, 64 Jun  4 15:07 /dev/snd/controlC2
 crw-rw 1 root audio 116,  4 Jun  4 15:07 /dev/snd/hwC0D0
 crw-rw 1 root audio 116, 68 Jun  4 15:07 /dev/snd/hwC2D0
 crw-rw 1 root audio 116, 69 Jun  4 15:07 /dev/snd/hwC2D1
 crw-rw 1 root audio 116, 70 Jun  4 15:07 /dev/snd/hwC2D2
 crw-rw 1 root audio 116, 71 Jun  4 15:07 /dev/snd/hwC2D3

Hmm ... what happened to /dev/snd/hwC1D0, hdC1D1?  Should't these be created 
when udev registers the USB camera?


 crw-rw 1 root audio 116, 24 Jun  4 15:07 /dev/snd/pcmC0D0c
 crw-rw 1 root audio 116, 16 Jun  4 19:41 /dev/snd/pcmC0D0p
 crw-rw 1 root audio 116, 17 Jun  4 15:07 /dev/snd/pcmC0D1p
 crw-rw 1 root audio 116, 56 Jun  4 22:30 /dev/snd/pcmC1D0c
 crw-rw 1 root audio 116,  1 Jun  4 15:07 /dev/snd/seq
 crw-rw 1 root audio 116, 33 Jun  4 15:07 /dev/snd/timer
 
 /dev/snd/by-id:
 total 0
 drwxr-xr-x 2 root root  60 Jun  4 22:30 .
 drwxr-xr-x 4 root root 360 Jun  4 22:30 ..
 lrwxrwxrwx 1 root root  12 Jun  4 22:30
 usb-OmniVision_Technologies__Inc._USB_Camera-B4.04.27.1-01 - ../controlC1
 
 /dev/snd/by-path:
 total 0
 drwxr-xr-x 2 root root 100 Jun  4 22:30 .
 drwxr-xr-x 4 root root 360 Jun  4 22:30 ..
 lrwxrwxrwx 1 root root  12 Jun  4 22:30 pci-:00:12.2-usb-0:3:1.1 -
 ../controlC1 lrwxrwxrwx 1 root root  12 Jun  4 15:07 pci-:00:14.2 -
 ../controlC0 lrwxrwxrwx 1 root root  12 Jun  4 15:07 pci-:08:00.1 -
 ../controlC2
 
 
 !!Aplay/Arecord output
 !!
 
 APLAY
 
  List of PLAYBACK Hardware Devices 
 card 0: SB [HDA ATI SB], device 0: VT2020 Analog [VT2020 Analog]
   Subdevices: 2/2
   Subdevice #0: subdevice #0
   Subdevice #1: subdevice #1
 card 0: SB [HDA ATI SB], device 1: VT2020 Digital [VT2020 Digital]
   Subdevices: 2/2
   Subdevice #0: subdevice #0
   Subdevice #1: subdevice #1

Card 1 absent.


 ARECORD
 
  List of CAPTURE Hardware Devices 
 card 0: SB [HDA ATI SB], device 0: VT2020 Analog [VT2020 Analog]
   Subdevices: 2/2
   Subdevice #0: subdevice #0
   Subdevice #1: subdevice #1
 card 1: CameraB404271 [USB Camera-B4.04.27.1], device 0: USB Audio [USB
 Audio] Subdevices: 1/1
   Subdevice #0: subdevice #0
 
 !!Amixer output
 !!-
[snip ...]


 !!---Mixer controls for card 1 [CameraB404271]
 
 amixer: Mixer load hw:1 error: Invalid argument
 Card hw:1 'CameraB404271'/'OmniVision Technologies, Inc. USB
 Camera-B4.04.27.1 at usb-:00:12.2-3, high' Mixer name : 'USB Mixer'
   Components  : 'USB1415:2000'
   Controls  : 1
 amixer: Mixer hw:1 load error: Invalid argument

It refuses to load - this is what I think could be a driver error problem.


 !!Alsactl output
 !!-
 
 --startcollapse--
 --endcollapse--
 

This should be showing alsactl output and it's not, probably because probing 
your device fails.

Sorry I can't really help to solve this.  All I can suggest is contacting alsa 
M/L and IRC to find out what could be causing it.

Good luck.
-- 
Regards,
Mick


signature.asc
Description: This is a 

Re: [gentoo-user] Still haveing problems with audio and guvcview

2011-06-04 Thread Paul Hartman
On Sat, Jun 4, 2011 at 3:59 AM, Mick michaelkintz...@gmail.com wrote:
 mylinux:/home/useraplay -l
  List of PLAYBACK Hardware Devices 
 card 0: SB [HDA ATI SB], device 0: VT2020 Analog [VT2020 Analog]
   Subdevices: 2/2
   Subdevice #0: subdevice #0
   Subdevice #1: subdevice #1
 card 0: SB [HDA ATI SB], device 1: VT2020 Digital [VT2020 Digital]
   Subdevices: 2/2
   Subdevice #0: subdevice #0
   Subdevice #1: subdevice #1

 Your camera's sound card is not shown here (stating the obvious).

That is for playback devices, which the camera does not contain, so
that seems normal. In his arecord -l output it does show the camera
as audio capture device.



Re: [gentoo-user] Still haveing problems with audio and guvcview

2011-06-04 Thread meino . cramer
Mick michaelkintz...@gmail.com [11-06-05 03:02]:
 On Saturday 04 Jun 2011 21:56:52 meino.cra...@gmx.de wrote:
 
  Hi Mick,
  
  thank you fpr your help !:)
 
 You're welcome, although it hasn't done much good I'm afraid.  :(
 
 
  I reinitilized with alsactl (I think, the kernel
  does the same when booting...) and do a
  alsa-info again (dump at the end of this email).
  
  In the meantime I had resorted the snd-card numbering
  via alsa.conf and get mplayer and vlc working again.
  
  But still no sound via usb-audio/webcam.
  
  The ordering of the cards is this now:
  
   0 [SB ]: HDA-Intel - HDA ATI SB
HDA ATI SB at 0xfcaf8000 irq 16
   1 [CameraB404271  ]: USB-Audio - USB Camera-B4.04.27.1
OmniVision Technologies, Inc. USB Camera-B4.04.27.1
  at usb-:00:12.2-3, high 2 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xfe97c000 irq 25
  
  alsamixer -D hw:0 works,
  alsamixer -D hw:1 produces:
  cannot load mixer controls: Invalid argument
  alsamixer -D hw:2 starts alsamixer and prints
  that this device does not have any controsl.
  
  So nothing has changed ...
  
  Damn...
 
 Damn and thrice damn!
 
 I am thinking that this Invalid argument is a driver problem.
 
 It could be that passing some parameter when loading the module could fix 
 this, but I would not know what that would be.  You can run:
 
   modinfo snd_usb_audio
 
 and see what options are offered there.
 
 
  !!USB Mixer information
  !!---
  --startcollapse--
  
  USB Mixer: usb_id=0x14152000, ctrlif=1, ctlerr=0
  Card: OmniVision Technologies, Inc. USB Camera-B4.04.27.1 at
  usb-:00:12.2-3, high Unit: 3
  Control: name=Mic Capture Volume, index=0
  Info: id=3, control=2, cmask=0xf, channels=4, type=S16
  Volume: min=0, max=1, dBmin=0, dBmax=0
  --endcollapse--
  
  
  !!ALSA Device nodes
  !!-
  
  crw-rw 1 root audio 116,  0 Jun  4 15:07 /dev/snd/controlC0
  crw-rw 1 root audio 116, 32 Jun  4 22:30 /dev/snd/controlC1
  crw-rw 1 root audio 116, 64 Jun  4 15:07 /dev/snd/controlC2
  crw-rw 1 root audio 116,  4 Jun  4 15:07 /dev/snd/hwC0D0
  crw-rw 1 root audio 116, 68 Jun  4 15:07 /dev/snd/hwC2D0
  crw-rw 1 root audio 116, 69 Jun  4 15:07 /dev/snd/hwC2D1
  crw-rw 1 root audio 116, 70 Jun  4 15:07 /dev/snd/hwC2D2
  crw-rw 1 root audio 116, 71 Jun  4 15:07 /dev/snd/hwC2D3
 
 Hmm ... what happened to /dev/snd/hwC1D0, hdC1D1?  Should't these be created 
 when udev registers the USB camera?
 
 
  crw-rw 1 root audio 116, 24 Jun  4 15:07 /dev/snd/pcmC0D0c
  crw-rw 1 root audio 116, 16 Jun  4 19:41 /dev/snd/pcmC0D0p
  crw-rw 1 root audio 116, 17 Jun  4 15:07 /dev/snd/pcmC0D1p
  crw-rw 1 root audio 116, 56 Jun  4 22:30 /dev/snd/pcmC1D0c
  crw-rw 1 root audio 116,  1 Jun  4 15:07 /dev/snd/seq
  crw-rw 1 root audio 116, 33 Jun  4 15:07 /dev/snd/timer
  
  /dev/snd/by-id:
  total 0
  drwxr-xr-x 2 root root  60 Jun  4 22:30 .
  drwxr-xr-x 4 root root 360 Jun  4 22:30 ..
  lrwxrwxrwx 1 root root  12 Jun  4 22:30
  usb-OmniVision_Technologies__Inc._USB_Camera-B4.04.27.1-01 - ../controlC1
  
  /dev/snd/by-path:
  total 0
  drwxr-xr-x 2 root root 100 Jun  4 22:30 .
  drwxr-xr-x 4 root root 360 Jun  4 22:30 ..
  lrwxrwxrwx 1 root root  12 Jun  4 22:30 pci-:00:12.2-usb-0:3:1.1 -
  ../controlC1 lrwxrwxrwx 1 root root  12 Jun  4 15:07 pci-:00:14.2 -
  ../controlC0 lrwxrwxrwx 1 root root  12 Jun  4 15:07 pci-:08:00.1 -
  ../controlC2
  
  
  !!Aplay/Arecord output
  !!
  
  APLAY
  
   List of PLAYBACK Hardware Devices 
  card 0: SB [HDA ATI SB], device 0: VT2020 Analog [VT2020 Analog]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
  card 0: SB [HDA ATI SB], device 1: VT2020 Digital [VT2020 Digital]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
 
 Card 1 absent.
 
 
  ARECORD
  
   List of CAPTURE Hardware Devices 
  card 0: SB [HDA ATI SB], device 0: VT2020 Analog [VT2020 Analog]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
  card 1: CameraB404271 [USB Camera-B4.04.27.1], device 0: USB Audio [USB
  Audio] Subdevices: 1/1
Subdevice #0: subdevice #0
  
  !!Amixer output
  !!-
 [snip ...]
 
 
  !!---Mixer controls for card 1 [CameraB404271]
  
  amixer: Mixer load hw:1 error: Invalid argument
  Card hw:1 'CameraB404271'/'OmniVision Technologies, Inc. USB
  Camera-B4.04.27.1 at usb-:00:12.2-3, high' Mixer name   : 'USB Mixer'
Components: 'USB1415:2000'
Controls  : 1
  amixer: Mixer hw:1 load error: Invalid argument
 
 It refuses to load - this is what I think could be a driver error problem.
 
 
  !!Alsactl output
  !!-
  
  --startcollapse--
  --endcollapse--
  
 
 This should be showing alsactl output and it's not, probably because probing 
 your 

[gentoo-user] Still haveing problems with audio and guvcview

2011-06-03 Thread meino . cramer
Hi,

for my webcam (Nam Tai EE Products Ltd. or OmniVision Technologies, Inc. Sony 
Playstation Eye)
I am using guvcview 1.4.5. The Webcam is attached via usb to my PC.

Since the webcams audio device was not listed in the according drop
down menu of guvcview I browsed through the kernel (2.6.39 vanilla) 
config and found, that I forgot to include the usb-audio module.

After recompiling and rebooting, guvcview now lists the webcams audio
device (but still no sound).

Unfortunately it kills any sound when using mplayer, which says:

==
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==
==
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 111.8 kbit/7.92% (ratio: 13970-176400)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==
[AO_ALSA] alsa-lib: pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
[AO_ALSA] Playback open error: No such file or directory
[JACK] cannot open server
[AO SDL] Samplerate: 44100Hz Channels: Stereo Format s16le
[AO_ALSA] alsa-lib: pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
[AO SDL] Unable to open audio: No available audio device
DVB card number must be between 1 and 4
AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...

/dev/audio and /dev/audio1 do exist...

cat /proc/asound/cards
 0 [CameraB404271  ]: USB-Audio - USB Camera-B4.04.27.1
  OmniVision Technologies, Inc. USB Camera-B4.04.27.1 at 
usb-:00:12.2-3, high
 1 [SB ]: HDA-Intel - HDA ATI SB
  HDA ATI SB at 0xfcaf8000 irq 16
 2 [NVidia ]: HDA-Intel - HDA NVidia
  HDA NVidia at 0xfe97c000 irq 25


When using vlc to watch tv (dvbt) the sound is interrupted
(stuutering) and/or heavily distorted (sound reminds me on sandpaper
with glas instead of the sand...;)

Before including usb-audio everything (with exception of the missing
audio device of my cam...) was working fine.

I think I will get lost without any help of the external world... ;)

Attached this email you will find my compressed kernel config.

Thank you very much in advance for any help!

Best regards,
mcc




lnx2639config.gz
Description: application/gunzip


Re: [gentoo-user] Still haveing problems with audio and guvcview

2011-06-03 Thread Paul Hartman
On Fri, Jun 3, 2011 at 1:32 PM,  meino.cra...@gmx.de wrote:
 cat /proc/asound/cards
  0 [CameraB404271  ]: USB-Audio - USB Camera-B4.04.27.1
                      OmniVision Technologies, Inc. USB Camera-B4.04.27.1 at 
 usb-:00:12.2-3, high
  1 [SB             ]: HDA-Intel - HDA ATI SB
                      HDA ATI SB at 0xfcaf8000 irq 16
  2 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xfe97c000 irq 25

(I don't know about Jack or Pulseaudio, in case you use those, maybe
it complicates things) but with ALSA you can specify the cards order
in /etc/modprobe.d/alsa.conf to help this kind of situation become
easier. I have the same (onboard + hdmi + webcam) and it seemed like
the order was random every time I rebooted, and I had to reconfigure
all my things that use sound. Fixing the order to be the same every
time helped to solve that problem.

For mplayer you can force the output to use the proper device in your
mplayer.conf

Use alsamixer to enable/disable the inputs depending on when you are
using them. Maybe your microphone is recording and played back when
you watch TV, causing the bad sounds... it's only a guess. :)

For testing it might be easier to use aplay and arecord (from
media-sound/alsa-utils) since they give you a more explicit choice of
ALSA devices. For example aplay -l will list your playback devices,
arecord -l will list the input devices. Then you can experiment with
them and alsamixer until you find which one works.

The alsa-info script will give you all the info about your sound
hardware. Probably more info than you care about knowing. :)

Good luck,
Paul



Re: [gentoo-user] Still haveing problems with audio and guvcview

2011-06-03 Thread meino . cramer
Paul Hartman paul.hartman+gen...@gmail.com [11-06-03 21:04]:
 On Fri, Jun 3, 2011 at 1:32 PM,  meino.cra...@gmx.de wrote:
  cat /proc/asound/cards
   0 [CameraB404271  ]: USB-Audio - USB Camera-B4.04.27.1
                       OmniVision Technologies, Inc. USB Camera-B4.04.27.1 at 
  usb-:00:12.2-3, high
   1 [SB             ]: HDA-Intel - HDA ATI SB
                       HDA ATI SB at 0xfcaf8000 irq 16
   2 [NVidia         ]: HDA-Intel - HDA NVidia
                       HDA NVidia at 0xfe97c000 irq 25
 
 (I don't know about Jack or Pulseaudio, in case you use those, maybe
 it complicates things) but with ALSA you can specify the cards order
 in /etc/modprobe.d/alsa.conf to help this kind of situation become
 easier. I have the same (onboard + hdmi + webcam) and it seemed like
 the order was random every time I rebooted, and I had to reconfigure
 all my things that use sound. Fixing the order to be the same every
 time helped to solve that problem.
 
 For mplayer you can force the output to use the proper device in your
 mplayer.conf
 
 Use alsamixer to enable/disable the inputs depending on when you are
 using them. Maybe your microphone is recording and played back when
 you watch TV, causing the bad sounds... it's only a guess. :)
 
 For testing it might be easier to use aplay and arecord (from
 media-sound/alsa-utils) since they give you a more explicit choice of
 ALSA devices. For example aplay -l will list your playback devices,
 arecord -l will list the input devices. Then you can experiment with
 them and alsamixer until you find which one works.
 
 The alsa-info script will give you all the info about your sound
 hardware. Probably more info than you care about knowing. :)
 
 Good luck,
 Paul
 

Hi Paul,

thank you for your help! :)

In the meantime vlc and mplayer sound ok and the usb-cam-audio-device
is visible (I stress visible here instead of audible ! ;) ) for
guvcview.

When i start alsamixer and select with the soundcard-selector
the audio device of my usb cam ... alsamixer crashes with:

  cannot load mixer controls: Invalid argument


...still no sound via usb cam and it seems no chance to use alsamixer
with it...damn...this /had/ worked and I dont know what it kills...

mylinux:/home/useraplay -l
 List of PLAYBACK Hardware Devices 
card 0: SB [HDA ATI SB], device 0: VT2020 Analog [VT2020 Analog]
  Subdevices: 2/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
card 0: SB [HDA ATI SB], device 1: VT2020 Digital [VT2020 Digital]
  Subdevices: 2/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
mylinux:/home/userarecord -l
 List of CAPTURE Hardware Devices 
card 0: SB [HDA ATI SB], device 0: VT2020 Analog [VT2020 Analog]
  Subdevices: 2/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
card 1: CameraB404271 [USB Camera-B4.04.27.1], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0



The output of alsa-info is below...
May be there is a little hope to
still get it working again...

Best regards and have a nice weekend!
mcc





upload=truescript=truecardinfo=
!!
!!ALSA Information Script v 0.4.60
!!

!!Script ran on: Fri Jun  3 20:08:04 UTC 2011


!!Linux Distribution
!!--

Gentoo Base System release 2.0.2


!!DMI Information
!!---

Manufacturer:  System manufacturer
Product Name:  System Product Name
Product Version:   System Version


!!Kernel Information
!!--

Kernel release:2.6.39
Operating System:  GNU/Linux
Architecture:  x86_64
Processor: AMD Phenom(tm) II X6 1090T Processor
SMP Enabled:   Yes


!!ALSA Version
!!

Driver version: 1.0.24
Library version:1.0.24.1
Utilities version:  1.0.24.2


!!Loaded ALSA modules
!!---



!!Sound Servers on this system
!!

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

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

Jack:
  Installed - Yes (/usr/bin/jackd)
  Running - No


!!Soundcards recognised by ALSA
!!-

 0 [SB ]: HDA-Intel - HDA ATI SB
  HDA ATI SB at 0xfcaf8000 irq 16
 1 [CameraB404271  ]: USB-Audio - USB Camera-B4.04.27.1
  OmniVision Technologies, Inc. USB Camera-B4.04.27.1 at 
usb-:00:12.2-3, high
 2 [NVidia ]: HDA-Intel - HDA NVidia
  HDA NVidia at 0xfe97c000 irq 25


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

00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA) (rev 40)
01:06.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture 
(rev 11)
01:06.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 
11)
08:00.1 Audio device: nVidia Corporation Device 0bea (rev a1)


!!Advanced information - PCI