Re: alsa and default sound input/output
> > Thank for the reply. > > I found out that /etc/asound.conf is *the place* to look. > > Apparently it is possible to talk to soundcards by some id: > > # more /proc/asound/cards > 0 [I82801DBICH4 ]: ICH4 - Intel 82801DB-ICH4 > Intel 82801DB-ICH4 with STAC9750,51 at irq 7 > > > Gives e.g. an entry in /etc/asound.conf : > > pcm.!default { > type hw > card "I82801DBICH4" > } This is possible, yes. > > For the moment, I configured dmix into asound.conf, and it appears that > dsnoop is the equivalent for sound routing the other direction. > Yes, I have put in my .asoundrc long time ago following entries to have a duplex device using the alsa docs and different forumes. This I did because time ago the flash player was playing only at 44100Hz and alsa was configured at 48000. So I played with it pretty long to understand what was the issue and did this configuration. I'm not that sure if everything is fine there, but it seems to work for me. # Allow mixing of multiple output streams to this device pcm.dmixer { type dmix ipc_key 1024 # ipc_perm 0660 # ipc_key_add_uid true # slave.pcm "hw:0,0" slave { pcm "hw:0,0" # you cannot use a "plug" device here, darn. period_time 0 period_size 1024 # must be power of 2 buffer_size 8192 # dito. It #format "S32_LE" #periods 128 # dito. rate 44100 # with rate 8000 you *will* hear, 44100 # if ossmix is used :) } # bindings are cool. This says, that only the first # two channels are to be used by dmix, which is # enough for (most) oss apps and also lets # multichannel chios work much faster: bindings { 0 0 # from 0 => to 0 1 1 # from 1 => to 1 } } # Allow reading from the default device. # Also known as record or capture. pcm.dsnooper { type dsnoop ipc_key 2048 # ipc_perm 0660 # ipc_key_add_uid true slave.pcm "hw:0" bindings { 0 0 1 1 } } It's fun to play with alsa if you have time bad weather outside and boring tv or a woman around doing her own kind of things ;-) # This is what we want as our default device # a fully duplex (read/write) audio device. pcm.duplex { type asym playback.pcm "dmixer" capture.pcm "dsnooper" } pcm.!default { type asym # you could replace this with a route to duplex playback.pcm "dmixer" capture.pcm "dsnooper" } -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: alsa and default sound input/output
On Sun, 2008-12-14 at 11:05 +0100, Emanoil Kotsev wrote: > > subscriptions wrote: > > > > > Hi all, > > > > I am using Skype and my webcam has an in-build microphone. > > > > Is it possible that after hot-plugging the webcam, the default > > microphone (input) is from the webcam? But at the same time the > default > > sound output is still to the on-board sound-card (i.e. laptop > speakers)? > > > > At the moment I have to change the settings in Skype manually. > > > > I tried to look into /etc/asound.conf but I could not find proper > > documentation how to configure it. (Is it actually the correct place > to > > look?) > > > > Best, > > > > Rob de Graaf > > I read somewhere that skype takes the first or the default device. I > also > did not make it to use the mic in the webcam from skype :-( > I tried numbering the devices in the module list, but this also did > not help > in my case and I have to admit that I was not that persistent to solve > it ;-) or may be it is working but I don know how to check it, because > there is a built-in mic in my notebook and it is using the same > chanel. > > cat /etc/modprobe.d/sound > alias snd-card-0 snd-hda-intel > alias snd-card-1 snd-usb-audio > alias snd-card-2 hsfhda > alias snd-card-3 snd-virmidi > options snd cards_limit=6 > options snd-hda-intel model=ref index=0 > options snd-usb-audio index=1,2 vid=0x0471,0x2040 pid=0x0332,0x6500 > options hsfhdaindex=3 > options snd-virmidi index=4 midi_devs=2 > > So here I assign index 1 and 2 to the usb-audio driver, because I have > webcam and tv card with use-audio > > regards Thank for the reply. I found out that /etc/asound.conf is *the place* to look. Apparently it is possible to talk to soundcards by some id: # more /proc/asound/cards 0 [I82801DBICH4 ]: ICH4 - Intel 82801DB-ICH4 Intel 82801DB-ICH4 with STAC9750,51 at irq 7 Gives e.g. an entry in /etc/asound.conf : pcm.!default { type hw card "I82801DBICH4" } For the moment, I configured dmix into asound.conf, and it appears that dsnoop is the equivalent for sound routing the other direction. More to come ... Best, Rob -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: alsa and default sound input/output
subscriptions wrote: > > Hi all, > > I am using Skype and my webcam has an in-build microphone. > > Is it possible that after hot-plugging the webcam, the default > microphone (input) is from the webcam? But at the same time the default > sound output is still to the on-board sound-card (i.e. laptop speakers)? > > At the moment I have to change the settings in Skype manually. > > I tried to look into /etc/asound.conf but I could not find proper > documentation how to configure it. (Is it actually the correct place to > look?) > > Best, > > Rob de Graaf I read somewhere that skype takes the first or the default device. I also did not make it to use the mic in the webcam from skype :-( I tried numbering the devices in the module list, but this also did not help in my case and I have to admit that I was not that persistent to solve it ;-) or may be it is working but I don know how to check it, because there is a built-in mic in my notebook and it is using the same chanel. cat /etc/modprobe.d/sound alias snd-card-0 snd-hda-intel alias snd-card-1 snd-usb-audio alias snd-card-2 hsfhda alias snd-card-3 snd-virmidi options snd cards_limit=6 options snd-hda-intel model=ref index=0 options snd-usb-audio index=1,2 vid=0x0471,0x2040 pid=0x0332,0x6500 options hsfhdaindex=3 options snd-virmidi index=4 midi_devs=2 So here I assign index 1 and 2 to the usb-audio driver, because I have webcam and tv card with use-audio regards -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
alsa and default sound input/output
Hi all, I am using Skype and my webcam has an in-build microphone. Is it possible that after hot-plugging the webcam, the default microphone (input) is from the webcam? But at the same time the default sound output is still to the on-board sound-card (i.e. laptop speakers)? At the moment I have to change the settings in Skype manually. I tried to look into /etc/asound.conf but I could not find proper documentation how to configure it. (Is it actually the correct place to look?) Best, Rob de Graaf -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org