Skip to contentSkip to conversation

Intel card master and PCM channels doesn't work

DISCUSSION Mantas Pilipavičius 2 participants 5 messages Aug 12, 2009 – Aug 13, 2009 3 messages not in the archive

lore
Share & tools
lore
#1 lore raw

At Thu, 13 Aug 2009 00:39:48 +0300,

Quoted 5 lines · Mantas Pilipavičius

http://www.alsa-project.org/db/?f=afa01dd48ed59d895d18407af62dbd1fa138686c
Everything works great, I can play the sound, but PCM and Master channels don't work, so I can't increase or decrease volume. Only thing I can do is mute/unmute PCM channel

This hardware has no volume control indeed.
The volume has to be adjusted in software by data manipulation.

Takashi
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

At Thu, 13 Aug 2009 10:55:38 +0300,

Quoted 2 lines · Mantas Pilipavičius

Can you explain more detailed? What is data manipulation?

You need to change all the stream data multiplying the volume gain/attenuation in software because you hardware gives no volume control by itself.

In the case of alsa-lib, it's softvol plugin. Or, if you use PA, PA does it automatically.

Takashi

Quoted 13 lines · Takashi Iwai

At Thu, 13 Aug 2009 00:39:48 +0300,
Mantas Pilipavičius wrote:
>
> http://www.alsa-project.org/db/?f=
afa01dd48ed59d895d18407af62dbd1fa138686c
> Everything works great, I can play the sound, but PCM and Master channels
> don't work, so I can't increase or decrease volume. Only thing I can do is
> mute/unmute PCM channel

Quoted 6 lines

This hardware has no volume control indeed.
The volume has to be adjusted in software by data manipulation.

Takashi

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw

[Please don't drop Cc to alsa-devel ML]

At Thu, 13 Aug 2009 11:27:29 +0300,

Quoted 20 lines · Mantas Pilipavičius

So I can play a sound with this command:
speaker-test -Dhw:0,0 -c2 -twav

I edit my asound.rc:
nano -w ~/.asoundrc and nano -w /etc/asound.conf

With this:

pcm.softvol {
    type            softvol
    slave {
        pcm         "hw:0,0"
    }
    control {
        name        "Garsas"
        card        0
    }
}

Quoted 5 lines

And the I try:

speaker-test -Dsoftwol -c2 -twav

And it doesn't work.

Elaborate what doesn't work how.

Quoted 2 lines

Sorry to disturb you and consume your precious time, but I am new to open source and really need this.

What about if you run without -Dxxx option?
Usually PCM volume should be created as a softvol if not exists.

Takashi

Quoted 30 lines · Takashi Iwai

At Thu, 13 Aug 2009 10:55:38 +0300,
Mantas Pilipavičius wrote:
>
> Can you explain more detailed? What is data manipulation?

You need to change all the stream data multiplying the volume gain/attenuation in software because you hardware gives no volume control by itself.

In the case of alsa-lib, it's softvol plugin.  Or, if you use PA, PA does it automatically.

Takashi

> On Thu, Aug 13, 2009 at 8:41 AM, Takashi Iwai <[email protected]> wrote:
>
>     At Thu, 13 Aug 2009 00:39:48 +0300,
>     Mantas Pilipavičius wrote:
>     >
>     > http://www.alsa-project.org/db/?f=
>     afa01dd48ed59d895d18407af62dbd1fa138686c
>     > Everything works great, I can play the sound, but PCM and Master >     channels
>     > don't work, so I can't increase or decrease volume. Only thing I can do
>     is
>     > mute/unmute PCM channel
>

Quoted 8 lines

>     This hardware has no volume control indeed.
>     The volume has to be adjusted in software by data manipulation. >
>     Takashi
>
>

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

A message that is not in the archive (sent off-list or not yet received): [email protected]

#7 lore raw

At Thu, 13 Aug 2009 12:41:08 +0300,

Quoted 6 lines · Mantas Pilipavičius

I waited a bit longer and it worked with this command:
speaker-test -c2

But again, when I try to play my mp3 files with mp3blaster it doesn't affect the sound when I use alsamixer. But with speaker-test it does work.

It depends how app accesses the sound device. If the application uses "default" PCM, not "hw" or so, then it should work without changing. Or, if app uses OSS emulation over /dev/dsp, softvol doesn't work.

Takashi
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel