N V | 21 Aug 2012 16:36
Picon
Favicon

pcm-oss.conf

Hi.

Where is //compat/linux/etc/alsa/pcm/pcm-oss.conf file for the linux apps.
It has deafult device configured. I've got usb webcam with intergrated microphone (which appears as hda device).
If I run skype, it doesn't know anything about it, because there is no entry in
/compat/linux/etc/alsa/pcm/pcm-oss.conf but only default device. So I've got sound, but buddy on the
other side doesn't hear me. If I make microphone hda device (pcm6 here) default one, I've got no sound in
Skype of course, but buddy on the other side hears me. :)

Well, imho, there is some ways to fix this:
- pregenerate anough devices in pcm-oss.conf;
- generate device list each time I change sound configuration;
- generate pcm-oss.conf each time sound device configuration changes (using devd, for example).

The last variant seems to be most user friendly and Plug'n'Play-like, but it introduces some kind of
automagical staff which (personally) I don't like. But you may find it ok. Here is rough-and-ready
prototype for this variant, it may be called by devfs attach/detach events, it may be like webcamd script:
[code]
#!/bin/sh

PCM=`egrep -o 'pcm[0-9]+' /dev/sndstat | egrep -o '[0-9]+'`
cat > /tmp/pcm-oss.conf <<EOF
# pcm-oss plugin configuration

pcm.oss {
        type oss
        device /dev/dsp
        hint {
                description "Open Sound System"
        }
(Continue reading)

Kris Moore | 22 Aug 2012 18:17
Gravatar

Re: pcm-oss.conf

On 08/21/2012 10:36, N V wrote:
> Hi.
>
> Where is //compat/linux/etc/alsa/pcm/pcm-oss.conf file for the linux apps.
> It has deafult device configured. I've got usb webcam with intergrated microphone (which appears as hda device).
> If I run skype, it doesn't know anything about it, because there is no entry in
/compat/linux/etc/alsa/pcm/pcm-oss.conf but only default device. So I've got sound, but buddy on the
other side doesn't hear me. If I make microphone hda device (pcm6 here) default one, I've got no sound in
Skype of course, but buddy on the other side hears me. :)
>
> Well, imho, there is some ways to fix this:
> - pregenerate anough devices in pcm-oss.conf;
> - generate device list each time I change sound configuration;
> - generate pcm-oss.conf each time sound device configuration changes (using devd, for example).
>
> The last variant seems to be most user friendly and Plug'n'Play-like, but it introduces some kind of
automagical staff which (personally) I don't like. But you may find it ok. Here is rough-and-ready
prototype for this variant, it may be called by devfs attach/detach events, it may be like webcamd script:
> [code]
> #!/bin/sh
>
> PCM=`egrep -o 'pcm[0-9]+' /dev/sndstat | egrep -o '[0-9]+'`
> cat > /tmp/pcm-oss.conf <<EOF
> # pcm-oss plugin configuration
>
> pcm.oss {
>         type oss
>         device /dev/dsp
>         hint {
>                 description "Open Sound System"
(Continue reading)

N V | 24 Aug 2012 14:21
Picon
Favicon

Re: pcm-oss.conf

Hi.

I've tested this script and only once. But that worked ok. I'll make more 
testing with few PCs if available.

Regards,
Vans

On 22 августа 2012 20:17:29 Kris Moore wrote:
> On 08/21/2012 10:36, N V wrote:
> > Hi.
> > 
> > Where is //compat/linux/etc/alsa/pcm/pcm-oss.conf file for the linux
> > apps. It has deafult device configured. I've got usb webcam with
> > intergrated microphone (which appears as hda device). If I run skype, it
> > doesn't know anything about it, because there is no entry in
> > /compat/linux/etc/alsa/pcm/pcm-oss.conf but only default device. So I've
> > got sound, but buddy on the other side doesn't hear me. If I make
> > microphone hda device (pcm6 here) default one, I've got no sound in
> > Skype of course, but buddy on the other side hears me. :)
> > 
> > Well, imho, there is some ways to fix this:
> > - pregenerate anough devices in pcm-oss.conf;
> > - generate device list each time I change sound configuration;
> > - generate pcm-oss.conf each time sound device configuration changes
> > (using devd, for example).
> > 
> > The last variant seems to be most user friendly and Plug'n'Play-like, but
> > it introduces some kind of automagical staff which (personally) I don't
> > like. But you may find it ok. Here is rough-and-ready prototype for this
(Continue reading)

Kris Moore | 24 Aug 2012 16:14
Gravatar

Re: pcm-oss.conf

On 08/24/2012 08:21, N V wrote:
> Hi.
>
> I've tested this script and only once. But that worked ok. I'll make more 
> testing with few PCs if available.
>
> Regards,
> Vans
>
> On 22 августа 2012 20:17:29 Kris Moore wrote:
>> On 08/21/2012 10:36, N V wrote:
>>> Hi.
>>>
>>> Where is //compat/linux/etc/alsa/pcm/pcm-oss.conf file for the linux
>>> apps. It has deafult device configured. I've got usb webcam with
>>> intergrated microphone (which appears as hda device). If I run skype, it
>>> doesn't know anything about it, because there is no entry in
>>> /compat/linux/etc/alsa/pcm/pcm-oss.conf but only default device. So I've
>>> got sound, but buddy on the other side doesn't hear me. If I make
>>> microphone hda device (pcm6 here) default one, I've got no sound in
>>> Skype of course, but buddy on the other side hears me. :)
>>>
>>> Well, imho, there is some ways to fix this:
>>> - pregenerate anough devices in pcm-oss.conf;
>>> - generate device list each time I change sound configuration;
>>> - generate pcm-oss.conf each time sound device configuration changes
>>> (using devd, for example).
>>>
>>> The last variant seems to be most user friendly and Plug'n'Play-like, but
>>> it introduces some kind of automagical staff which (personally) I don't
(Continue reading)


Gmane