Skip to contentSkip to conversation

alsactl restore: unknown hardware: ymf724f

DISCUSSION Angel Tsankov 4 participants 27 messages Feb 25, 2010 – Apr 1, 2010

lore
Share & tools
lore
#0 lore raw

Hello,

I run 'alsactl restore' on a machine with 2 sound cards -- a built-in Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev
02) and a non-built-in Yamaha Corporation YMF-724F [DS-1 Audio Controller] (rev 03) -- and get the following message:

Unknown hardware: "YMF724F" "SigmaTel STAC9700,83,84" "AC97a:83847600" "0x1073" "0x000d"
Hardware is initialized using a guess method

As a consequence the volume levels of the Yamaha card do not get restored to the levels stored in /etc/asound.state. The volume levels of the built-in card however are properly restored. The asound.state file has been created by executing 'alsactl store'.

The kernel has been built with support for ALSA. I've built and installed the kernel modules for both cards (not the ones in the alsa-driver package but those that come with kernel version 2.6.30.2). Any ideas why alsactl cannot find the hardware it has previously identified as "YMF724F", "SigmaTel STAC9700,83,84", and so on?

Regards,
Angel Tsankov

#1 lore raw
Quoted 16 lines · Angel Tsankov

Hello,

I run 'alsactl restore' on a machine with 2 sound cards -- a built-in Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev
02) and a non-built-in Yamaha Corporation YMF-724F [DS-1 Audio Controller] (rev 03) -- and get the following message:

Unknown hardware: "YMF724F" "SigmaTel STAC9700,83,84" "AC97a:83847600" "0x1073" "0x000d"
Hardware is initialized using a guess method

As a consequence the volume levels of the Yamaha card do not get restored to the levels stored in /etc/asound.state. The volume levels of the built-in card however are properly restored. The asound.state file has been created by executing 'alsactl store'.

Quoted 5 lines

The kernel has been built with support for ALSA. I've built and installed the kernel modules for both cards (not the ones in the alsa-driver package but those that come with kernel version 2.6.30.2). Any ideas why alsactl cannot find the hardware it has previously identified as "YMF724F", "SigmaTel STAC9700,83,84", and so on?

The logic of alsactl is to restore the state from /etc/asound.state if it is valid. It seems like the set_controls() function in alsactl/state.c returns an error code for a reason.

Could you try to compile the latest alsa-utils snapshot
(http://www.alsa-project.org/snapshot/) and run './alsactl -d restore' in alsa-utils/alsactl directory? A warning (fail reason) should be printed.

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.

#2 lore raw
Quoted 24 lines · Jaroslav Kysela
Quoted 16 lines · Angel Tsankov

Hello,

I run 'alsactl restore' on a machine with 2 sound cards -- a built-in Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev
02) and a non-built-in Yamaha Corporation YMF-724F [DS-1 Audio Controller] (rev 03) -- and get the following message:

Unknown hardware: "YMF724F" "SigmaTel STAC9700,83,84" "AC97a:83847600" "0x1073" "0x000d"
Hardware is initialized using a guess method

As a consequence the volume levels of the Yamaha card do not get restored to the levels stored in /etc/asound.state. The volume levels of the built-in card however are properly restored. The asound.state file has been created by executing 'alsactl store'.

Quoted 5 lines

The kernel has been built with support for ALSA. I've built and installed the kernel modules for both cards (not the ones in the alsa-driver package but those that come with kernel version 2.6.30.2). Any ideas why alsactl cannot find the hardware it has previously identified as "YMF724F", "SigmaTel STAC9700,83,84", and so on?

Quoted 5 lines

The logic of alsactl is to restore the state from /etc/asound.state if it is valid. It seems like the set_controls() function in alsactl/state.c returns an error code for a reason.

Could you try to compile the latest alsa-utils snapshot (http://www.alsa-project.org/snapshot/) and run './alsactl -d restore' in alsa-utils/alsactl directory? A warning (fail reason) should be printed.

Jaroslav

I've attached a bash shell script that I used to download, configure, compile, and run alsactl. I've also attached a .log file with stdout and stderr that I got while executing the script.

Regards,
Angel Tsankov

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

#3 lore raw
Quoted 29 lines · Angel Tsankov
Quoted 28 lines · Jaroslav Kysela
Quoted 16 lines · Angel Tsankov

Hello,

I run 'alsactl restore' on a machine with 2 sound cards -- a built-in Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev
02) and a non-built-in Yamaha Corporation YMF-724F [DS-1 Audio Controller] (rev 03) -- and get the following message:

Unknown hardware: "YMF724F" "SigmaTel STAC9700,83,84" "AC97a:83847600" "0x1073" "0x000d"
Hardware is initialized using a guess method

As a consequence the volume levels of the Yamaha card do not get restored to the levels stored in /etc/asound.state. The volume levels of the built-in card however are properly restored. The asound.state file has been created by executing 'alsactl store'.

Quoted 5 lines

The kernel has been built with support for ALSA. I've built and installed the kernel modules for both cards (not the ones in the alsa-driver package but those that come with kernel version 2.6.30.2). Any ideas why alsactl cannot find the hardware it has previously identified as "YMF724F", "SigmaTel STAC9700,83,84", and so on?

The logic of alsactl is to restore the state from /etc/asound.state if it is valid. It seems like the set_controls() function in alsactl/state.c returns an error code for a reason.

Quoted 7 lines
Quoted 3 lines

Could you try to compile the latest alsa-utils snapshot
(http://www.alsa-project.org/snapshot/) and run './alsactl -d restore' in alsa-utils/alsactl directory? A warning (fail reason) should be printed.

I've attached a bash shell script that I used to download, configure, compile, and run alsactl. I've also attached a .log file with stdout and stderr that I got while executing the script.

Thanks. I've added more debug print lines to state.c. Could you rerun your script and append also '/etc/asound.state' file and output from 'alsa-info.sh --no-upload' to your output tarballs? Send me this tarball privately or just an URL to this list.

Thanks,
Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.

#4 lore raw

2010/2/25 Jaroslav Kysela <[email protected]>

Quoted 41 lines · Angel Tsankov
Quoted 20 lines
Quoted 18 lines · Jaroslav Kysela
Quoted 16 lines · Angel Tsankov

Hello,

I run 'alsactl restore' on a machine with 2 sound cards -- a built-in Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev
02) and a non-built-in Yamaha Corporation YMF-724F [DS-1 Audio Controller] (rev 03) -- and get the following message:

Unknown hardware: "YMF724F" "SigmaTel STAC9700,83,84" "AC97a:83847600" "0x1073" "0x000d"
Hardware is initialized using a guess method

As a consequence the volume levels of the Yamaha card do not get restored to the levels stored in /etc/asound.state. The volume levels of the built-in card however are properly restored. The asound.state file has been created by executing 'alsactl store'.

Quoted 7 lines
Quoted 7 lines
Quoted 5 lines

The kernel has been built with support for ALSA. I've built and installed the kernel modules for both cards (not the ones in the alsa-driver package but those that come with kernel version 2.6.30.2). Any ideas why alsactl cannot find the hardware it has previously identified as "YMF724F", "SigmaTel STAC9700,83,84", and so on?

The logic of alsactl is to restore the state from /etc/asound.state if

it

Quoted 5 lines
Quoted 5 lines

is valid. It seems like the set_controls() function in alsactl/state.c returns an error code for a reason.

Could you try to compile the latest alsa-utils snapshot
(http://www.alsa-project.org/snapshot/) and run './alsactl -d restore'

in

Quoted 5 lines
Quoted 1 line

alsa-utils/alsactl directory? A warning (fail reason) should be printed.

I've attached a bash shell script that I used to download, configure, compile, and run alsactl. I've also attached a .log file with stdout and stderr that I got while executing the script.

Quoted 9 lines

Thanks. I've added more debug print lines to state.c. Could you rerun your script and append also '/etc/asound.state' file and output from 'alsa-info.sh --no-upload' to your output tarballs? Send me this tarball privately or just an URL to this list.

Thanks,
Jaroslav

did alsactl restore those IFACE_PCM volume since they are supposed at 0dB by default whenever the subdevice is open ?

store the values in asound.state seem to be for debugging only

    control.61 {
        comment.access 'read write inactive'
        comment.type INTEGER
        comment.count 2
        comment.range '0 - 32768'
        iface PCM
        subdevice 1
        name 'PCM Playback Volume'
        value.0 26214
        value.1 26214
    }
#5 lore raw
Quoted 54 lines · Raymond Yau

2010/2/25 Jaroslav Kysela <[email protected]>

Quoted 38 lines · Angel Tsankov
Quoted 20 lines
Quoted 18 lines · Jaroslav Kysela
Quoted 16 lines · Angel Tsankov

Hello,

I run 'alsactl restore' on a machine with 2 sound cards -- a built-in Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev
02) and a non-built-in Yamaha Corporation YMF-724F [DS-1 Audio Controller] (rev 03) -- and get the following message:

Unknown hardware: "YMF724F" "SigmaTel STAC9700,83,84" "AC97a:83847600" "0x1073" "0x000d"
Hardware is initialized using a guess method

As a consequence the volume levels of the Yamaha card do not get restored to the levels stored in /etc/asound.state. The volume levels of the built-in card however are properly restored. The asound.state file has been created by executing 'alsactl store'.

Quoted 6 lines
Quoted 6 lines
Quoted 5 lines

The kernel has been built with support for ALSA. I've built and installed the kernel modules for both cards (not the ones in the alsa-driver package but those that come with kernel version 2.6.30.2). Any ideas why alsactl cannot find the hardware it has previously identified as "YMF724F", "SigmaTel STAC9700,83,84", and so on?

The logic of alsactl is to restore the state from /etc/asound.state if

it

Quoted 5 lines
Quoted 5 lines

is valid. It seems like the set_controls() function in alsactl/state.c returns an error code for a reason.

Could you try to compile the latest alsa-utils snapshot
(http://www.alsa-project.org/snapshot/) and run './alsactl -d restore'

in

Quoted 4 lines
Quoted 1 line

alsa-utils/alsactl directory? A warning (fail reason) should be printed.

I've attached a bash shell script that I used to download, configure, compile, and run alsactl. I've also attached a .log file with stdout and stderr that I got while executing the script.

Quoted 9 lines

Thanks. I've added more debug print lines to state.c. Could you rerun your script and append also '/etc/asound.state' file and output from 'alsa-info.sh --no-upload' to your output tarballs? Send me this tarball privately or just an URL to this list.

Thanks,
Jaroslav

did alsactl restore those IFACE_PCM volume since they are supposed at 0dB by default whenever the subdevice is open ?

store the values in asound.state seem to be for debugging only

Quoted 11 lines
    control.61 {
        comment.access 'read write inactive'
        comment.type INTEGER
        comment.count 2
        comment.range '0 - 32768'
        iface PCM
        subdevice 1
        name 'PCM Playback Volume'
        value.0 26214
        value.1 26214
    }

In fact, alsactl seems to restore the volume levels (despite the "Unknown hardware" message) when the system is up and running, but it does not restore the PCM and master levels at boot time. This should be done when the hardware is detected by udev, as I have the following udev rule:

KERNEL=="controlC[0-9]*", ACTION=="add", RUN+="/usr/sbin/alsactl restore %n"

Angel Tsankov

#6 lore raw
Quoted 37 lines · Angel Tsankov
Quoted 36 lines · Raymond Yau

2010/2/25 Jaroslav Kysela <[email protected]>

Quoted 34 lines · Angel Tsankov
Quoted 20 lines
Quoted 18 lines · Jaroslav Kysela
Quoted 16 lines · Angel Tsankov

Hello,

I run 'alsactl restore' on a machine with 2 sound cards -- a built-in Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev
02) and a non-built-in Yamaha Corporation YMF-724F [DS-1 Audio Controller] (rev 03) -- and get the following message:

Unknown hardware: "YMF724F" "SigmaTel STAC9700,83,84" "AC97a:83847600" "0x1073" "0x000d"
Hardware is initialized using a guess method

As a consequence the volume levels of the Yamaha card do not get restored to the levels stored in /etc/asound.state. The volume levels of the built-in card however are properly restored. The asound.state file has been created by executing 'alsactl store'.

Quoted 6 lines
Quoted 6 lines
Quoted 5 lines

The kernel has been built with support for ALSA. I've built and installed the kernel modules for both cards (not the ones in the alsa-driver package but those that come with kernel version 2.6.30.2). Any ideas why alsactl cannot find the hardware it has previously identified as "YMF724F", "SigmaTel STAC9700,83,84", and so on?

The logic of alsactl is to restore the state from /etc/asound.state if

it

Quoted 5 lines
Quoted 5 lines

is valid. It seems like the set_controls() function in alsactl/state.c returns an error code for a reason.

Could you try to compile the latest alsa-utils snapshot
(http://www.alsa-project.org/snapshot/) and run './alsactl -d restore'

in

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Quoted 1 line

alsa-utils/alsactl directory? A warning (fail reason) should be printed.

I've attached a bash shell script that I used to download, configure, compile, and run alsactl. I've also attached a .log file with stdout and stderr that I got while executing the script.

Thanks. I've added more debug print lines to state.c. Could you rerun your script and append also '/etc/asound.state' file and output from 'alsa-info.sh --no-upload' to your output tarballs? Send me this tarball privately or just an URL to this list.

Looks similar to my problem:
http://www.spinics.net/lists/alsa-devel/msg31422.html

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

#7 lore raw
Quoted 42 lines · Pacho Ramos
Quoted 41 lines · Angel Tsankov
Quoted 40 lines · Raymond Yau

2010/2/25 Jaroslav Kysela <[email protected]>

Quoted 38 lines · Angel Tsankov
Quoted 20 lines
Quoted 18 lines · Jaroslav Kysela
Quoted 16 lines · Angel Tsankov

Hello,

I run 'alsactl restore' on a machine with 2 sound cards -- a built-in Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev
02) and a non-built-in Yamaha Corporation YMF-724F [DS-1 Audio Controller] (rev 03) -- and get the following message:

Unknown hardware: "YMF724F" "SigmaTel STAC9700,83,84" "AC97a:83847600" "0x1073" "0x000d"
Hardware is initialized using a guess method

As a consequence the volume levels of the Yamaha card do not get restored to the levels stored in /etc/asound.state. The volume levels of the built-in card however are properly restored. The asound.state file has been created by executing 'alsactl store'.

Quoted 6 lines
Quoted 6 lines
Quoted 5 lines

The kernel has been built with support for ALSA. I've built and installed the kernel modules for both cards (not the ones in the alsa-driver package but those that come with kernel version 2.6.30.2). Any ideas why alsactl cannot find the hardware it has previously identified as "YMF724F", "SigmaTel STAC9700,83,84", and so on?

The logic of alsactl is to restore the state from /etc/asound.state if

it

Quoted 5 lines
Quoted 5 lines

is valid. It seems like the set_controls() function in alsactl/state.c returns an error code for a reason.

Could you try to compile the latest alsa-utils snapshot
(http://www.alsa-project.org/snapshot/) and run './alsactl -d restore'

in

Quoted 4 lines
Quoted 1 line

alsa-utils/alsactl directory? A warning (fail reason) should be printed.

I've attached a bash shell script that I used to download, configure, compile, and run alsactl. I've also attached a .log file with stdout and stderr that I got while executing the script.

Quoted 8 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Thanks. I've added more debug print lines to state.c. Could you rerun your script and append also '/etc/asound.state' file and output from 'alsa-info.sh --no-upload' to your output tarballs? Send me this tarball privately or just an URL to this list.

Looks similar to my problem:
http://www.spinics.net/lists/alsa-devel/msg31422.html

Most interestingly, my exit status is the same -- 157. I thought it was 99.

Regards,
Angel Tsankov

#8 lore raw
In reply to Pacho Ramos

2010/2/26 Pacho Ramos <[email protected]>

Quoted 55 lines · Angel Tsankov
Quoted 11 lines
Quoted 10 lines · Raymond Yau

2010/2/25 Jaroslav Kysela <[email protected]>

Quoted 8 lines · Angel Tsankov
Quoted 7 lines
Quoted 5 lines · Jaroslav Kysela
Quoted 3 lines · Angel Tsankov

Hello,

I run 'alsactl restore' on a machine with 2 sound cards -- a

built-in

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller

(rev

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

02) and a non-built-in Yamaha Corporation YMF-724F [DS-1 Audio Controller] (rev 03) -- and get the following message:

Unknown hardware: "YMF724F" "SigmaTel STAC9700,83,84"

"AC97a:83847600"

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

"0x1073" "0x000d"
Hardware is initialized using a guess method

As a consequence the volume levels of the Yamaha card do not get restored to the levels stored in /etc/asound.state. The volume

levels

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

of the built-in card however are properly restored. The

asound.state

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

file has been created by executing 'alsactl store'.

The kernel has been built with support for ALSA. I've built and installed the kernel modules for both cards (not the ones in the alsa-driver package but those that come with kernel version

2.6.30.2).

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines

Any ideas why alsactl cannot find the hardware it has previously identified as "YMF724F", "SigmaTel STAC9700,83,84", and so on?

The logic of alsactl is to restore the state from /etc/asound.state

if

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

it

Quoted 1 line
Quoted 1 line

is valid. It seems like the set_controls() function in

alsactl/state.c

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

returns an error code for a reason.

Could you try to compile the latest alsa-utils snapshot
(http://www.alsa-project.org/snapshot/) and run './alsactl -d

restore'

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

in

Quoted 1 line
Quoted 1 line

alsa-utils/alsactl directory? A warning (fail reason) should be

printed.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

I've attached a bash shell script that I used to download, configure, compile, and run alsactl. I've also attached a .log file with stdout

and

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 1 line

stderr that I got while executing the script.

Thanks. I've added more debug print lines to state.c. Could you rerun

your

Quoted 11 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

script and append also '/etc/asound.state' file and output from 'alsa-info.sh --no-upload' to your output tarballs? Send me this

tarball

Quoted 1 line
Quoted 1 line
Quoted 1 line

privately or just an URL to this list.

Looks similar to my problem:
http://www.spinics.net/lists/alsa-devel/msg31422.html

what is the content of your asound.state ?

seem related to this patch if alsactl count those iface_pcm controls

when driver contains more controls than state file. In this case, initialization procedure should be run

http://git.alsa-project.org/?p=alsa-utils.git;a=commitdiff;h=05f78cc6811110156c701fd9a2a5d15de8b4b1c7;hp=6232f1c96cde1fee247e95cd97235c48cc7b168d

#9 lore raw
In reply to Pacho Ramos

2010/2/26 Pacho Ramos <[email protected]>

Quoted 55 lines · Angel Tsankov
Quoted 11 lines
Quoted 10 lines · Raymond Yau

2010/2/25 Jaroslav Kysela <[email protected]>

Quoted 8 lines · Angel Tsankov
Quoted 7 lines
Quoted 5 lines · Jaroslav Kysela
Quoted 3 lines · Angel Tsankov

Hello,

I run 'alsactl restore' on a machine with 2 sound cards -- a

built-in

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller

(rev

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

02) and a non-built-in Yamaha Corporation YMF-724F [DS-1 Audio Controller] (rev 03) -- and get the following message:

Unknown hardware: "YMF724F" "SigmaTel STAC9700,83,84"

"AC97a:83847600"

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

"0x1073" "0x000d"
Hardware is initialized using a guess method

As a consequence the volume levels of the Yamaha card do not get restored to the levels stored in /etc/asound.state. The volume

levels

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

of the built-in card however are properly restored. The

asound.state

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

file has been created by executing 'alsactl store'.

The kernel has been built with support for ALSA. I've built and installed the kernel modules for both cards (not the ones in the alsa-driver package but those that come with kernel version

2.6.30.2).

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines

Any ideas why alsactl cannot find the hardware it has previously identified as "YMF724F", "SigmaTel STAC9700,83,84", and so on?

The logic of alsactl is to restore the state from /etc/asound.state

if

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

it

Quoted 1 line
Quoted 1 line

is valid. It seems like the set_controls() function in

alsactl/state.c

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

returns an error code for a reason.

Could you try to compile the latest alsa-utils snapshot
(http://www.alsa-project.org/snapshot/) and run './alsactl -d

restore'

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

in

Quoted 1 line
Quoted 1 line

alsa-utils/alsactl directory? A warning (fail reason) should be

printed.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

I've attached a bash shell script that I used to download, configure, compile, and run alsactl. I've also attached a .log file with stdout

and

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 1 line

stderr that I got while executing the script.

Thanks. I've added more debug print lines to state.c. Could you rerun

your

Quoted 11 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

script and append also '/etc/asound.state' file and output from 'alsa-info.sh --no-upload' to your output tarballs? Send me this

tarball

Quoted 1 line
Quoted 1 line
Quoted 1 line

privately or just an URL to this list.

Looks similar to my problem:
http://www.spinics.net/lists/alsa-devel/msg31422.html

your problem is "alsactl restore" become "alsactl init" when the number of controls is more than those in state file.

"Hardware is initialized using a guess method" instead of restore from asound.state

alsactl -f /var/lib/alsa/asound.state restore
Unknown hardware: "VIA8237" "Realtek ALC658D" "AC97a:414c4781" "0x147b" "0x1415"
Hardware is initialized using a guess method

#10 lore raw

Hello again!

I've recently had some time to investigate this problem further on and here's what I've discovered:

Quoted 62 lines · Raymond Yau

2010/2/26 Pacho Ramos <[email protected]>

Quoted 60 lines · Angel Tsankov
Quoted 11 lines
Quoted 10 lines · Raymond Yau

2010/2/25 Jaroslav Kysela <[email protected]>

Quoted 8 lines · Angel Tsankov
Quoted 7 lines
Quoted 5 lines · Jaroslav Kysela
Quoted 3 lines · Angel Tsankov

Hello,

I run 'alsactl restore' on a machine with 2 sound cards -- a

built-in

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller

(rev

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

02) and a non-built-in Yamaha Corporation YMF-724F [DS-1 Audio Controller] (rev 03) -- and get the following message:

Unknown hardware: "YMF724F" "SigmaTel STAC9700,83,84"

"AC97a:83847600"

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

"0x1073" "0x000d"
Hardware is initialized using a guess method

As a consequence the volume levels of the Yamaha card do not get restored to the levels stored in /etc/asound.state. The volume

levels

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

of the built-in card however are properly restored. The

asound.state

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

file has been created by executing 'alsactl store'.

The kernel has been built with support for ALSA. I've built and installed the kernel modules for both cards (not the ones in the alsa-driver package but those that come with kernel version

2.6.30.2).

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines

Any ideas why alsactl cannot find the hardware it has previously identified as "YMF724F", "SigmaTel STAC9700,83,84", and so on?

The logic of alsactl is to restore the state from /etc/asound.state

if

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

it

Quoted 1 line
Quoted 1 line

is valid. It seems like the set_controls() function in

alsactl/state.c

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

returns an error code for a reason.

Could you try to compile the latest alsa-utils snapshot
(http://www.alsa-project.org/snapshot/) and run './alsactl -d

restore'

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

in

Quoted 1 line
Quoted 1 line

alsa-utils/alsactl directory? A warning (fail reason) should be

printed.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

I've attached a bash shell script that I used to download, configure, compile, and run alsactl. I've also attached a .log file with stdout

and

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 1 line

stderr that I got while executing the script.

Thanks. I've added more debug print lines to state.c. Could you rerun

your

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

script and append also '/etc/asound.state' file and output from 'alsa-info.sh --no-upload' to your output tarballs? Send me this

tarball

Quoted 1 line
Quoted 1 line
Quoted 1 line

privately or just an URL to this list.

Quoted 7 lines
Quoted 5 lines

Looks similar to my problem:
http://www.spinics.net/lists/alsa-devel/msg31422.html

your problem is "alsactl restore" become "alsactl init" when the number of controls is more than those in state file.

I'm not quite sure that the case is this since 'alsactl restore' does restore the values of the Yamaha sound card (and those of the other card, too) and 'alsactl restore 1' seems to just initialize the Yamaha card. This is with alsa-utils version 1.0.22.

Regards,

Angel Tsankov

#11 lore raw

2010/3/26 Angel Tsankov <[email protected]>

Quoted 50 lines

Hello again!

I've recently had some time to investigate this problem further on and here's what I've discovered:

Quoted 27 lines · Raymond Yau

2010/2/26 Pacho Ramos <[email protected]>

Quoted 25 lines · Angel Tsankov
Quoted 11 lines
Quoted 10 lines · Raymond Yau

2010/2/25 Jaroslav Kysela <[email protected]>

Quoted 8 lines · Angel Tsankov
Quoted 7 lines
Quoted 5 lines · Jaroslav Kysela
Quoted 3 lines · Angel Tsankov

Hello,

I run 'alsactl restore' on a machine with 2 sound cards -- a

built-in

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller

(rev

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

02) and a non-built-in Yamaha Corporation YMF-724F [DS-1 Audio Controller] (rev 03) -- and get the following message:

Unknown hardware: "YMF724F" "SigmaTel STAC9700,83,84"

"AC97a:83847600"

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

"0x1073" "0x000d"
Hardware is initialized using a guess method

As a consequence the volume levels of the Yamaha card do not get restored to the levels stored in /etc/asound.state. The volume

Quoted 8 lines
Quoted 7 lines

levels

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

of the built-in card however are properly restored. The

asound.state

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

file has been created by executing 'alsactl store'.

your problem is "alsactl restore" become "alsactl init" when the number

of

Quoted 1 line

controls is more than those in state file.

I'm not quite sure that the case is this since 'alsactl restore' does restore the values of the Yamaha sound card (and those of the other card, too) and 'alsactl restore 1' seems to just initialize the Yamaha card. This is with alsa-utils version 1.0.22.

Quoted 5 lines

Regards,

Angel Tsankov

"Hardware is initialized using a guess method " is the message used by alsactl init

http://git.alsa-project.org/?p=alsa-utils.git;a=commitdiff;h=9a748178d1c9e783242f0cc794ab3efb27092f34;hp=0c02a4e3d23c7b5d03215f1bfaba9f70ed11e9b7

#12 lore raw
Quoted 48 lines · Raymond Yau

2010/3/26 Angel Tsankov <[email protected]>

Quoted 38 lines

Hello again!

I've recently had some time to investigate this problem further on and here's what I've discovered:

Quoted 32 lines · Raymond Yau

2010/2/26 Pacho Ramos <[email protected]>

Quoted 30 lines · Angel Tsankov
Quoted 11 lines
Quoted 10 lines · Raymond Yau

2010/2/25 Jaroslav Kysela <[email protected]>

Quoted 8 lines · Angel Tsankov
Quoted 7 lines
Quoted 5 lines · Jaroslav Kysela
Quoted 3 lines · Angel Tsankov

Hello,

I run 'alsactl restore' on a machine with 2 sound cards -- a

built-in

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller

(rev

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

02) and a non-built-in Yamaha Corporation YMF-724F [DS-1 Audio Controller] (rev 03) -- and get the following message:

Unknown hardware: "YMF724F" "SigmaTel STAC9700,83,84"

"AC97a:83847600"

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

"0x1073" "0x000d"
Hardware is initialized using a guess method

As a consequence the volume levels of the Yamaha card do not get restored to the levels stored in /etc/asound.state. The volume

levels

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

of the built-in card however are properly restored. The

asound.state

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

file has been created by executing 'alsactl store'.

Quoted 8 lines
Quoted 1 line

your problem is "alsactl restore" become "alsactl init" when the number

of

Quoted 1 line

controls is more than those in state file.

I'm not quite sure that the case is this since 'alsactl restore' does restore the values of the Yamaha sound card (and those of the other card, too) and 'alsactl restore 1' seems to just initialize the Yamaha card. This is with alsa-utils version 1.0.22.

Quoted 4 lines

"Hardware is initialized using a guess method " is the message used by alsactl init

http://git.alsa-project.org/?p=alsa-utils.git;a=commitdiff;h=9a748178d1c9e783242f0cc794ab3efb27092f34;hp=0c02a4e3d23c7b5d03215f1bfaba9f70ed11e9b7

I don't get what you mean. Could you explain a little bit more?

Regards,
Angel Tsankov

#13 lore raw

2010/3/29 Angel Tsankov <[email protected]>

Quoted 53 lines
Quoted 42 lines · Raymond Yau

2010/3/26 Angel Tsankov <[email protected]>

Quoted 40 lines

Hello again!

I've recently had some time to investigate this problem further on and here's what I've discovered:

Quoted 25 lines · Raymond Yau

2010/2/26 Pacho Ramos <[email protected]>

Quoted 23 lines · Angel Tsankov
Quoted 11 lines
Quoted 10 lines · Raymond Yau

2010/2/25 Jaroslav Kysela <[email protected]>

Quoted 8 lines · Angel Tsankov
Quoted 7 lines
Quoted 5 lines · Jaroslav Kysela
Quoted 3 lines · Angel Tsankov

Hello,

I run 'alsactl restore' on a machine with 2 sound cards -- a

built-in

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller

(rev

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

02) and a non-built-in Yamaha Corporation YMF-724F [DS-1 Audio Controller] (rev 03) -- and get the following message:

Unknown hardware: "YMF724F" "SigmaTel STAC9700,83,84"

"AC97a:83847600"

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

"0x1073" "0x000d"
Hardware is initialized using a guess method

Quoted 8 lines
Quoted 7 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

As a consequence the volume levels of the Yamaha card do not get restored to the levels stored in /etc/asound.state. The volume

levels

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

of the built-in card however are properly restored. The

asound.state

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

file has been created by executing 'alsactl store'.

your problem is "alsactl restore" become "alsactl init" when the number

of

Quoted 10 lines
Quoted 6 lines
Quoted 1 line

controls is more than those in state file.

I'm not quite sure that the case is this since 'alsactl restore' does restore the values of the Yamaha sound card (and those of the other card, too) and 'alsactl restore 1' seems to just initialize the Yamaha card. This is with alsa-utils version 1.0.22.

"Hardware is initialized using a guess method " is the message used by alsactl init

Quoted 9 lines

http://git.alsa-project.org/?p=alsa-utils.git;a=commitdiff;h=9a748178d1c9e783242f0cc794ab3efb27092f34;hp=0c02a4e3d23c7b5d03215f1bfaba9f70ed11e9b7

I don't get what you mean. Could you explain a little bit more?

Regards,
Angel Tsankov

post the output of alsa-info.sh after "alsactl init"

and immeditate after the system boot

#14 lore raw
Quoted 55 lines · Raymond Yau

2010/3/29 Angel Tsankov <[email protected]>

Quoted 53 lines
Quoted 52 lines · Raymond Yau

2010/3/26 Angel Tsankov <[email protected]>

Quoted 38 lines

Hello again!

I've recently had some time to investigate this problem further on and here's what I've discovered:

Quoted 32 lines · Raymond Yau

2010/2/26 Pacho Ramos <[email protected]>

Quoted 30 lines · Angel Tsankov
Quoted 11 lines
Quoted 10 lines · Raymond Yau

2010/2/25 Jaroslav Kysela <[email protected]>

Quoted 8 lines · Angel Tsankov
Quoted 7 lines
Quoted 5 lines · Jaroslav Kysela
Quoted 3 lines · Angel Tsankov

Hello,

I run 'alsactl restore' on a machine with 2 sound cards -- a

built-in

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller

(rev

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

02) and a non-built-in Yamaha Corporation YMF-724F [DS-1 Audio Controller] (rev 03) -- and get the following message:

Unknown hardware: "YMF724F" "SigmaTel STAC9700,83,84"

"AC97a:83847600"

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

"0x1073" "0x000d"
Hardware is initialized using a guess method

As a consequence the volume levels of the Yamaha card do not get restored to the levels stored in /etc/asound.state. The volume

levels

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

of the built-in card however are properly restored. The

asound.state

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

file has been created by executing 'alsactl store'.

Quoted 8 lines
Quoted 1 line

your problem is "alsactl restore" become "alsactl init" when the number

of

Quoted 1 line

controls is more than those in state file.

I'm not quite sure that the case is this since 'alsactl restore' does restore the values of the Yamaha sound card (and those of the other card, too) and 'alsactl restore 1' seems to just initialize the Yamaha card. This is with alsa-utils version 1.0.22.

"Hardware is initialized using a guess method " is the message used by alsactl init

Quoted 7 lines
Quoted 4 lines

http://git.alsa-project.org/?p=alsa-utils.git;a=commitdiff;h=9a748178d1c9e783242f0cc794ab3efb27092f34;hp=0c02a4e3d23c7b5d03215f1bfaba9f70ed11e9b7

I don't get what you mean. Could you explain a little bit more?

post the output of alsa-info.sh after "alsactl init"

and immeditate after the system boot

I'm sending the requested output as an attachment.

Angel Tsankov

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

#15 lore raw

2010/3/29 Angel Tsankov <[email protected]>

Quoted 83 lines
Quoted 81 lines · Raymond Yau

2010/3/29 Angel Tsankov <[email protected]>

Quoted 78 lines · Raymond Yau
Quoted 63 lines

2010/3/26 Angel Tsankov <[email protected]>

Hello again!

Quoted 59 lines

I've recently had some time to investigate this problem further on and here's what I've discovered:

Quoted 40 lines · Raymond Yau

2010/2/26 Pacho Ramos <[email protected]>

Quoted 37 lines · Angel Tsankov
Quoted 36 lines
Quoted 13 lines · Raymond Yau

2010/2/25 Jaroslav Kysela <[email protected]>

Quoted 10 lines · Angel Tsankov
Quoted 8 lines · Jaroslav Kysela
Quoted 8 lines · Angel Tsankov

Hello,

Quoted 3 lines

I run 'alsactl restore' on a machine with 2 sound cards -- a

built-in

Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 1 line

(rev

02) and a non-built-in Yamaha Corporation YMF-724F [DS-1 Audio

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines

Controller] (rev 03) -- and get the following message:

Unknown hardware: "YMF724F" "SigmaTel STAC9700,83,84"

"AC97a:83847600"

"0x1073" "0x000d"

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines

Hardware is initialized using a guess method

As a consequence the volume levels of the Yamaha card do not
get
restored to the levels stored in /etc/asound.state. The volume

levels

Quoted 9 lines
Quoted 7 lines
Quoted 7 lines

of the built-in card however are properly restored. The

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 1 line

asound.state

file has been created by executing 'alsactl store'.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

your problem is "alsactl restore" become "alsactl init" when

the number

of

Quoted 2 lines

controls is more than those in state file.

Quoted 11 lines
Quoted 6 lines

I'm not quite sure that the case is this since 'alsactl restore' does restore the values of the Yamaha sound card (and those of the other card, too) and 'alsactl restore 1' seems to just initialize the Yamaha card. This is with alsa-utils version 1.0.22.

"Hardware is initialized using a guess method " is the message used

by
alsactl init

http://git.alsa-project.org/?p=alsa-utils.git;a=commitdiff;h=9a748178d1c9e783242f0cc794ab3efb27092f34;hp=0c02a4e3d23c7b5d03215f1bfaba9f70ed11e9b7

I don't get what you mean. Could you explain a little bit more?

Quoted 9 lines
Quoted 4 lines
Quoted 1 line

post the output of alsa-info.sh after "alsactl init"

and immeditate after the system boot

I'm sending the requested output as an attachment.

Angel Tsankov

As you can see the driver has 79 controls but only 48 controls saved in the asound.state

that is why "alsactl restore" become "alsactl init"

!!Amixer output
!!-------------

!!-------Mixer controls for card 0 [YMF724F]

Card hw:0 'YMF724F'/'Yamaha DS-1 (YMF724F) at 0xfb000000, irq 5'

  Mixer name    : 'SigmaTel STAC9700,83,84'
  Components    : 'AC97a:83847600'
  Controls      : 79
  Simple ctrls  : 31
#16 lore raw
Quoted 85 lines · Raymond Yau

2010/3/29 Angel Tsankov <[email protected]>

Quoted 65 lines
Quoted 63 lines · Raymond Yau

2010/3/29 Angel Tsankov <[email protected]>

Quoted 60 lines · Raymond Yau
Quoted 60 lines

2010/3/26 Angel Tsankov <[email protected]>

Hello again!

Quoted 44 lines

I've recently had some time to investigate this problem further on and here's what I've discovered:

Quoted 30 lines · Raymond Yau

2010/2/26 Pacho Ramos <[email protected]>

Quoted 27 lines · Angel Tsankov
Quoted 27 lines
Quoted 10 lines · Raymond Yau

2010/2/25 Jaroslav Kysela <[email protected]>

Quoted 7 lines · Angel Tsankov
Quoted 6 lines · Jaroslav Kysela
Quoted 6 lines · Angel Tsankov

Hello,
I run 'alsactl restore' on a machine with 2 sound cards -- a

built-in

Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

(rev

02) and a non-built-in Yamaha Corporation YMF-724F [DS-1 Audio

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Controller] (rev 03) -- and get the following message:

Unknown hardware: "YMF724F" "SigmaTel STAC9700,83,84"

"AC97a:83847600"

"0x1073" "0x000d"

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Hardware is initialized using a guess method

As a consequence the volume levels of the Yamaha card do not
get
restored to the levels stored in /etc/asound.state. The volume

Quoted 7 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

levels

of the built-in card however are properly restored. The

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

asound.state

file has been created by executing 'alsactl store'.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

your problem is "alsactl restore" become "alsactl init" when

the number

of

Quoted 8 lines
Quoted 2 lines

controls is more than those in state file.

I'm not quite sure that the case is this since 'alsactl restore' does restore the values of the Yamaha sound card (and those of the other card, too) and 'alsactl restore 1' seems to just initialize the Yamaha card. This is with alsa-utils version 1.0.22.

"Hardware is initialized using a guess method " is the message used

by
alsactl init

Quoted 8 lines
Quoted 7 lines
Quoted 5 lines

http://git.alsa-project.org/?p=alsa-utils.git;a=commitdiff;h=9a748178d1c9e783242f0cc794ab3efb27092f34;hp=0c02a4e3d23c7b5d03215f1bfaba9f70ed11e9b7

I don't get what you mean. Could you explain a little bit more?

post the output of alsa-info.sh after "alsactl init"

and immeditate after the system boot

I'm sending the requested output as an attachment.

As you can see the driver has 79 controls but only 48 controls saved in the asound.state

that is why "alsactl restore" become "alsactl init"

!!Amixer output
!!-------------

Quoted 7 lines

!!-------Mixer controls for card 0 [YMF724F]

Card hw:0 'YMF724F'/'Yamaha DS-1 (YMF724F) at 0xfb000000, irq 5'

  Mixer name    : 'SigmaTel STAC9700,83,84'
  Components    : 'AC97a:83847600'
  Controls      : 79
  Simple ctrls  : 31

My question was why 'alsactl restore' restores the sound card and 'alsactl restore 1' just initializes the card.

Angel Tsankov

#17 lore raw

2010/4/2 Angel Tsankov <[email protected]>

Quoted 20 lines

.

Quoted 2 lines

As you can see the driver has 79 controls but only 48 controls saved in

the

Quoted 8 lines

asound.state

that is why "alsactl restore" become "alsactl init"

!!Amixer output
!!-------------

Quoted 7 lines

!!-------Mixer controls for card 0 [YMF724F]

Card hw:0 'YMF724F'/'Yamaha DS-1 (YMF724F) at 0xfb000000, irq 5'

  Mixer name    : 'SigmaTel STAC9700,83,84'
  Components    : 'AC97a:83847600'
  Controls      : 79
  Simple ctrls  : 31
Quoted 5 lines

My question was why 'alsactl restore' restores the sound card and 'alsactl restore 1' just initializes the card.

Angel Tsankov

you have to find out the value of doit

1443         /* check if we have additional controls in driver */
1444         /* in this case we should go through init procedure */
1445         if (!doit && maxnumid >= 0) {

http://git.alsa-project.org/?p=alsa-utils.git;a=commitdiff;h=05f78cc6811110156c701fd9a2a5d15de8b4b1c7;hp=6232f1c96cde1fee247e95cd97235c48cc7b168d

#18 lore raw
In reply to Angel Tsankov

2010/2/26 Angel Tsankov <[email protected]>

Quoted 81 lines
Quoted 15 lines · Raymond Yau

2010/2/25 Jaroslav Kysela <[email protected]>

Quoted 13 lines · Angel Tsankov
Quoted 12 lines
Quoted 10 lines · Jaroslav Kysela
Quoted 8 lines · Angel Tsankov

Hello,

I run 'alsactl restore' on a machine with 2 sound cards -- a built-in Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev
02) and a non-built-in Yamaha Corporation YMF-724F [DS-1 Audio Controller] (rev 03) -- and get the following message:

Unknown hardware: "YMF724F" "SigmaTel STAC9700,83,84"

"AC97a:83847600"

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

"0x1073" "0x000d"
Hardware is initialized using a guess method

As a consequence the volume levels of the Yamaha card do not get restored to the levels stored in /etc/asound.state. The volume

levels

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

of the built-in card however are properly restored. The asound.state file has been created by executing 'alsactl store'.

The kernel has been built with support for ALSA. I've built and installed the kernel modules for both cards (not the ones in the alsa-driver package but those that come with kernel version

2.6.30.2).

Quoted 9 lines
Quoted 9 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines

Any ideas why alsactl cannot find the hardware it has previously identified as "YMF724F", "SigmaTel STAC9700,83,84", and so on?

The logic of alsactl is to restore the state from /etc/asound.state if

it

Quoted 5 lines
Quoted 5 lines

is valid. It seems like the set_controls() function in alsactl/state.c returns an error code for a reason.

Could you try to compile the latest alsa-utils snapshot
(http://www.alsa-project.org/snapshot/) and run './alsactl -d

restore'

Quoted 2 lines
Quoted 2 lines

in

Quoted 1 line
Quoted 1 line

alsa-utils/alsactl directory? A warning (fail reason) should be

printed.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

I've attached a bash shell script that I used to download, configure, compile, and run alsactl. I've also attached a .log file with stdout

and

Quoted 2 lines
Quoted 2 lines
Quoted 1 line

stderr that I got while executing the script.

Thanks. I've added more debug print lines to state.c. Could you rerun

your

Quoted 9 lines
Quoted 8 lines

script and append also '/etc/asound.state' file and output from 'alsa-info.sh --no-upload' to your output tarballs? Send me this tarball privately or just an URL to this list.

Thanks,
Jaroslav

did alsactl restore those IFACE_PCM volume since they are supposed at 0dB

by

Quoted 4 lines

default whenever the subdevice is open ?

store the values in asound.state seem to be for debugging only

Quoted 11 lines
    control.61 {
        comment.access 'read write inactive'
        comment.type INTEGER
        comment.count 2
        comment.range '0 - 32768'
        iface PCM
        subdevice 1
        name 'PCM Playback Volume'
        value.0 26214
        value.1 26214
    }

In fact, alsactl seems to restore the volume levels (despite the "Unknown hardware" message) when the system is up and running, but it does not restore the PCM and master levels at boot time. This should be done when the hardware is detected by udev, as I have the following udev rule:

Quoted 7 lines

KERNEL=="controlC[0-9]*", ACTION=="add", RUN+="/usr/sbin/alsactl restore %n"

Angel Tsankov

Can you store the iface PCM "PCM Playback Volume" in asound.state while you are playing audio ?

alsactl can store the value since the control is active when the subdevice is open

alsactl already skip restoring of those control when it is not active , so the problem seem not related to those controls

However via82xx also have those hardware specific controls

#19 lore raw
Quoted 92 lines · Raymond Yau

2010/2/26 Angel Tsankov <[email protected]>

Quoted 80 lines
Quoted 15 lines · Raymond Yau

2010/2/25 Jaroslav Kysela <[email protected]>

Quoted 13 lines · Angel Tsankov
Quoted 12 lines
Quoted 10 lines · Jaroslav Kysela
Quoted 8 lines · Angel Tsankov

Hello,

I run 'alsactl restore' on a machine with 2 sound cards -- a built-in Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev
02) and a non-built-in Yamaha Corporation YMF-724F [DS-1 Audio Controller] (rev 03) -- and get the following message:

Unknown hardware: "YMF724F" "SigmaTel STAC9700,83,84"

"AC97a:83847600"

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

"0x1073" "0x000d"
Hardware is initialized using a guess method

As a consequence the volume levels of the Yamaha card do not get restored to the levels stored in /etc/asound.state. The volume

levels

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

of the built-in card however are properly restored. The asound.state file has been created by executing 'alsactl store'.

The kernel has been built with support for ALSA. I've built and installed the kernel modules for both cards (not the ones in the alsa-driver package but those that come with kernel version

2.6.30.2).

Quoted 9 lines
Quoted 9 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines

Any ideas why alsactl cannot find the hardware it has previously identified as "YMF724F", "SigmaTel STAC9700,83,84", and so on?

The logic of alsactl is to restore the state from /etc/asound.state if

it

Quoted 5 lines
Quoted 5 lines

is valid. It seems like the set_controls() function in alsactl/state.c returns an error code for a reason.

Could you try to compile the latest alsa-utils snapshot
(http://www.alsa-project.org/snapshot/) and run './alsactl -d

restore'

Quoted 2 lines
Quoted 2 lines

in

Quoted 1 line
Quoted 1 line

alsa-utils/alsactl directory? A warning (fail reason) should be

printed.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

I've attached a bash shell script that I used to download, configure, compile, and run alsactl. I've also attached a .log file with stdout

and

Quoted 2 lines
Quoted 2 lines
Quoted 1 line

stderr that I got while executing the script.

Thanks. I've added more debug print lines to state.c. Could you rerun

your

Quoted 9 lines
Quoted 8 lines

script and append also '/etc/asound.state' file and output from 'alsa-info.sh --no-upload' to your output tarballs? Send me this tarball privately or just an URL to this list.

Thanks,
Jaroslav

did alsactl restore those IFACE_PCM volume since they are supposed at 0dB

by

Quoted 4 lines

default whenever the subdevice is open ?

store the values in asound.state seem to be for debugging only

Quoted 11 lines
    control.61 {
        comment.access 'read write inactive'
        comment.type INTEGER
        comment.count 2
        comment.range '0 - 32768'
        iface PCM
        subdevice 1
        name 'PCM Playback Volume'
        value.0 26214
        value.1 26214
    }

In fact, alsactl seems to restore the volume levels (despite the "Unknown hardware" message) when the system is up and running, but it does not restore the PCM and master levels at boot time. This should be done when the hardware is detected by udev, as I have the following udev rule:

Quoted 7 lines

KERNEL=="controlC[0-9]*", ACTION=="add", RUN+="/usr/sbin/alsactl restore %n"

Angel Tsankov

Can you store the iface PCM "PCM Playback Volume" in asound.state while you are playing audio ?

Quoted 7 lines

alsactl can store the value since the control is active when the subdevice is open

alsactl already skip restoring of those control when it is not active , so the problem seem not related to those controls

However via82xx also have those hardware specific controls

It seems that when I store the values while the sound card is playing I get one more control in asound.state (see attached archive).

Here's the test I did:

1. I removed /etc/asound.state (just in case);
2. I made sure the sound card is not playing, ran 'alsactl store', and renamed /etc/asound.state to /etc/asound.state.not-playing;
3. I started vlc, played some music, ran 'alsactl store' once again, and renamed /etc/asound.state to /etc/asound.state.playing;

Then I diff'ed the two files and found out that they are different. I'm sending them as alsactl created them.

Regards,
Angel Tsankov

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

#20 lore raw

2010/2/27 Angel Tsankov <[email protected]>

Quoted 144 lines
Quoted 122 lines · Raymond Yau

2010/2/26 Angel Tsankov <[email protected]>

Quoted 108 lines · Raymond Yau
Quoted 77 lines

2010/2/25 Jaroslav Kysela <[email protected]>

Quoted 14 lines · Angel Tsankov
Quoted 12 lines · Jaroslav Kysela
Quoted 12 lines · Angel Tsankov

Hello,

Quoted 8 lines

I run 'alsactl restore' on a machine with 2 sound cards -- a built-in
Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev
02) and a non-built-in Yamaha Corporation YMF-724F [DS-1 Audio Controller] (rev 03) -- and get the following message:

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines

Unknown hardware: "YMF724F" "SigmaTel STAC9700,83,84"

"AC97a:83847600"

"0x1073" "0x000d"

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines

Hardware is initialized using a guess method

As a consequence the volume levels of the Yamaha card do not get restored to the levels stored in /etc/asound.state. The volume

levels

of the built-in card however are properly restored. The asound.state

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines

file has been created by executing 'alsactl store'.

The kernel has been built with support for ALSA. I've built and installed the kernel modules for both cards (not the ones in the alsa-driver package but those that come with kernel version

2.6.30.2).

Any ideas why alsactl cannot find the hardware it has previously

Quoted 7 lines
Quoted 6 lines
Quoted 5 lines
Quoted 2 lines

identified as "YMF724F", "SigmaTel STAC9700,83,84", and so on?

The logic of alsactl is to restore the state from /etc/asound.state if

it

Quoted 7 lines
Quoted 7 lines

is valid. It seems like the set_controls() function in alsactl/state.c

Quoted 5 lines

returns an error code for a reason.

Could you try to compile the latest alsa-utils snapshot
(http://www.alsa-project.org/snapshot/) and run './alsactl -d

restore'

in

Quoted 4 lines
Quoted 4 lines

alsa-utils/alsactl directory? A warning (fail reason) should be

Quoted 1 line

printed.

I've attached a bash shell script that I used to download, configure,

Quoted 3 lines
Quoted 2 lines

compile, and run alsactl. I've also attached a .log file with stdout

and

stderr that I got while executing the script.

Quoted 3 lines
Quoted 1 line

Thanks. I've added more debug print lines to state.c. Could you rerun

your

script and append also '/etc/asound.state' file and output from

Quoted 4 lines

'alsa-info.sh --no-upload' to your output tarballs? Send me this tarball
privately or just an URL to this list.

Quoted 7 lines
Quoted 5 lines

Thanks,
Jaroslav

did alsactl restore those IFACE_PCM volume since they are supposed at

0dB

by

Quoted 4 lines

default whenever the subdevice is open ?

store the values in asound.state seem to be for debugging only

Quoted 12 lines
   control.61 {
       comment.access 'read write inactive'
       comment.type INTEGER
       comment.count 2
       comment.range '0 - 32768'
       iface PCM
       subdevice 1
       name 'PCM Playback Volume'
       value.0 26214
       value.1 26214
   }

In fact, alsactl seems to restore the volume levels (despite the "Unknown hardware" message) when the system is up and running, but it does not restore the PCM and master levels at boot time. This should be done when the hardware is detected by udev, as I have the following udev rule:

Quoted 8 lines

KERNEL=="controlC[0-9]*", ACTION=="add", RUN+="/usr/sbin/alsactl restore %n"

Angel Tsankov

Can you store the iface PCM "PCM Playback Volume" in asound.state while

you
are playing audio ?

Quoted 8 lines

alsactl can store the value since the control is active when the subdevice is open

alsactl already skip restoring of those control when it is not active , so the problem seem not related to those controls

However via82xx also have those hardware specific controls

It seems that when I store the values while the sound card is playing I get one more control in asound.state (see attached archive).

Here's the test I did:

1. I removed /etc/asound.state (just in case);
2. I made sure the sound card is not playing, ran 'alsactl store', and renamed /etc/asound.state to /etc/asound.state.not-playing;
3. I started vlc, played some music, ran 'alsactl store' once again, and renamed /etc/asound.state to /etc/asound.state.playing;

Quoted 7 lines

Then I diff'ed the two files and found out that they are different. I'm sending them as alsactl created them.

Regards,
Angel Tsankov

This is the extra control saved when you are playing audio on subdevice 0

    control.48 {
        comment.access 'read write'
        comment.type INTEGER
        comment.count 2
        comment.range '0 - 32768'
        iface PCM
        name 'PCM Playback Volume'
        value.0 32768
        value.1 32768
    }

This look like there is any sound (login/system boot event sound) playing when you perform alsactl restore , the driver will contain more control than state file , it will not restore but perform initialization

when driver contains more controls than state file. In this case, initialization procedure should be run

http://git.alsa-project.org/?p=alsa-utils.git;a=commitdiff;h=05f78cc6811110156c701fd9a2a5d15de8b4b1c7;hp=6232f1c96cde1fee247e95cd97235c48cc7b168d

#21 lore raw
Quoted 153 lines · Raymond Yau

2010/2/27 Angel Tsankov <[email protected]>

Quoted 128 lines
Quoted 107 lines · Raymond Yau

2010/2/26 Angel Tsankov <[email protected]>

Quoted 93 lines · Raymond Yau
Quoted 62 lines

2010/2/25 Jaroslav Kysela <[email protected]>

Quoted 11 lines · Angel Tsankov
Quoted 10 lines · Jaroslav Kysela
Quoted 10 lines · Angel Tsankov

Hello,

Quoted 7 lines

I run 'alsactl restore' on a machine with 2 sound cards -- a built-in
Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev
02) and a non-built-in Yamaha Corporation YMF-724F [DS-1 Audio Controller] (rev 03) -- and get the following message:

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines

Unknown hardware: "YMF724F" "SigmaTel STAC9700,83,84"

"AC97a:83847600"

"0x1073" "0x000d"

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines

Hardware is initialized using a guess method

As a consequence the volume levels of the Yamaha card do not get restored to the levels stored in /etc/asound.state. The volume

levels

of the built-in card however are properly restored. The asound.state

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines

file has been created by executing 'alsactl store'.

The kernel has been built with support for ALSA. I've built and installed the kernel modules for both cards (not the ones in the alsa-driver package but those that come with kernel version

2.6.30.2).

Any ideas why alsactl cannot find the hardware it has previously

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

identified as "YMF724F", "SigmaTel STAC9700,83,84", and so on?

The logic of alsactl is to restore the state from /etc/asound.state if

Quoted 8 lines
Quoted 8 lines

it
is valid. It seems like the set_controls() function in alsactl/state.c

Quoted 5 lines

returns an error code for a reason.

Could you try to compile the latest alsa-utils snapshot
(http://www.alsa-project.org/snapshot/) and run './alsactl -d

restore'

in

Quoted 2 lines
Quoted 2 lines

alsa-utils/alsactl directory? A warning (fail reason) should be printed.

I've attached a bash shell script that I used to download, configure,

Quoted 3 lines
Quoted 2 lines

compile, and run alsactl. I've also attached a .log file with stdout

and

stderr that I got while executing the script.

Quoted 2 lines

Thanks. I've added more debug print lines to state.c. Could you rerun

your
script and append also '/etc/asound.state' file and output from

Quoted 4 lines

'alsa-info.sh --no-upload' to your output tarballs? Send me this tarball
privately or just an URL to this list.

Quoted 7 lines
Quoted 5 lines

Thanks,
Jaroslav

did alsactl restore those IFACE_PCM volume since they are supposed at

0dB

by

Quoted 4 lines

default whenever the subdevice is open ?

store the values in asound.state seem to be for debugging only

Quoted 12 lines
   control.61 {
       comment.access 'read write inactive'
       comment.type INTEGER
       comment.count 2
       comment.range '0 - 32768'
       iface PCM
       subdevice 1
       name 'PCM Playback Volume'
       value.0 26214
       value.1 26214
   }

In fact, alsactl seems to restore the volume levels (despite the "Unknown hardware" message) when the system is up and running, but it does not restore the PCM and master levels at boot time. This should be done when the hardware is detected by udev, as I have the following udev rule:

Quoted 8 lines

KERNEL=="controlC[0-9]*", ACTION=="add", RUN+="/usr/sbin/alsactl restore %n"

Angel Tsankov

Can you store the iface PCM "PCM Playback Volume" in asound.state while

you
are playing audio ?

Quoted 8 lines

alsactl can store the value since the control is active when the subdevice is open

alsactl already skip restoring of those control when it is not active , so the problem seem not related to those controls

However via82xx also have those hardware specific controls

It seems that when I store the values while the sound card is playing I get one more control in asound.state (see attached archive).

Here's the test I did:

1. I removed /etc/asound.state (just in case);
2. I made sure the sound card is not playing, ran 'alsactl store', and renamed /etc/asound.state to /etc/asound.state.not-playing;
3. I started vlc, played some music, ran 'alsactl store' once again, and renamed /etc/asound.state to /etc/asound.state.playing;

Quoted 7 lines

Then I diff'ed the two files and found out that they are different. I'm sending them as alsactl created them.

Regards,
Angel Tsankov

This is the extra control saved when you are playing audio on subdevice 0

    control.48 {
        comment.access 'read write'
        comment.type INTEGER
        comment.count 2
        comment.range '0 - 32768'
        iface PCM
        name 'PCM Playback Volume'
        value.0 32768
        value.1 32768
    }
Quoted 3 lines

This look like there is any sound (login/system boot event sound) playing when you perform alsactl restore , the driver will contain more control than state file , it will not restore but perform initialization

Here's another test I performed. I created a new /etc/asound.state while vlc was playing some music. Then I made sure that control.48 is in the file and ensured the file won't be overridden at system shutdown. Then I restarted the system, verified that the file's time stamp has not been changed and started Xfce's mixer only to discover that neither PCM, nor master volume was restored to its saved state. Rather, they looked more like initialized.

I'd also like to point out that in /etc/asound.state the values for control.48 are the maximum possible (if I interpret the values right), but when I stored the levels neither master, nor PCM was set to its maximum value.

Now, one test more. While playing some music I ran 'alsactl restore' and
both master and PCM levels were restored to the saved values.

Stil another test. While *not* playing anything I changed the master and PCM levels and ran 'alactl restore' and guess what... the levels were restored to their saved values!

Maybe the problem does not have anything to do with whether anything is being played while the levels are being restored or not and I still suspect that something might be wrong in my shutdown, or more likely -- boot-up, settings...

Regards,
Angel Tsankov

#22 lore raw
Quoted 170 lines · Angel Tsankov
Quoted 152 lines · Raymond Yau

2010/2/27 Angel Tsankov <[email protected]>

Quoted 128 lines
Quoted 107 lines · Raymond Yau

2010/2/26 Angel Tsankov <[email protected]>

Quoted 93 lines · Raymond Yau
Quoted 62 lines

2010/2/25 Jaroslav Kysela <[email protected]>

Quoted 11 lines · Angel Tsankov
Quoted 10 lines · Jaroslav Kysela
Quoted 10 lines · Angel Tsankov

Hello,

Quoted 7 lines

I run 'alsactl restore' on a machine with 2 sound cards -- a built-in
Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev
02) and a non-built-in Yamaha Corporation YMF-724F [DS-1 Audio Controller] (rev 03) -- and get the following message:

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines

Unknown hardware: "YMF724F" "SigmaTel STAC9700,83,84"

"AC97a:83847600"

"0x1073" "0x000d"

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines

Hardware is initialized using a guess method

As a consequence the volume levels of the Yamaha card do not get restored to the levels stored in /etc/asound.state. The volume

levels

of the built-in card however are properly restored. The asound.state

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines

file has been created by executing 'alsactl store'.

The kernel has been built with support for ALSA. I've built and installed the kernel modules for both cards (not the ones in the alsa-driver package but those that come with kernel version

2.6.30.2).

Any ideas why alsactl cannot find the hardware it has previously

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

identified as "YMF724F", "SigmaTel STAC9700,83,84", and so on?

The logic of alsactl is to restore the state from /etc/asound.state if

Quoted 8 lines
Quoted 8 lines

it
is valid. It seems like the set_controls() function in alsactl/state.c

Quoted 5 lines

returns an error code for a reason.

Could you try to compile the latest alsa-utils snapshot
(http://www.alsa-project.org/snapshot/) and run './alsactl -d

restore'

in

Quoted 2 lines
Quoted 2 lines

alsa-utils/alsactl directory? A warning (fail reason) should be printed.

I've attached a bash shell script that I used to download, configure,

Quoted 3 lines
Quoted 2 lines

compile, and run alsactl. I've also attached a .log file with stdout

and

stderr that I got while executing the script.

Quoted 2 lines

Thanks. I've added more debug print lines to state.c. Could you rerun

your
script and append also '/etc/asound.state' file and output from

Quoted 4 lines

'alsa-info.sh --no-upload' to your output tarballs? Send me this tarball
privately or just an URL to this list.

Quoted 7 lines
Quoted 5 lines

Thanks,
Jaroslav

did alsactl restore those IFACE_PCM volume since they are supposed at

0dB

by

Quoted 4 lines

default whenever the subdevice is open ?

store the values in asound.state seem to be for debugging only

Quoted 12 lines
   control.61 {
       comment.access 'read write inactive'
       comment.type INTEGER
       comment.count 2
       comment.range '0 - 32768'
       iface PCM
       subdevice 1
       name 'PCM Playback Volume'
       value.0 26214
       value.1 26214
   }

In fact, alsactl seems to restore the volume levels (despite the "Unknown hardware" message) when the system is up and running, but it does not restore the PCM and master levels at boot time. This should be done when the hardware is detected by udev, as I have the following udev rule:

Quoted 8 lines

KERNEL=="controlC[0-9]*", ACTION=="add", RUN+="/usr/sbin/alsactl restore %n"

Angel Tsankov

Can you store the iface PCM "PCM Playback Volume" in asound.state while

you
are playing audio ?

Quoted 8 lines

alsactl can store the value since the control is active when the subdevice is open

alsactl already skip restoring of those control when it is not active , so the problem seem not related to those controls

However via82xx also have those hardware specific controls

It seems that when I store the values while the sound card is playing I get one more control in asound.state (see attached archive).

Here's the test I did:

1. I removed /etc/asound.state (just in case);
2. I made sure the sound card is not playing, ran 'alsactl store', and renamed /etc/asound.state to /etc/asound.state.not-playing;
3. I started vlc, played some music, ran 'alsactl store' once again, and renamed /etc/asound.state to /etc/asound.state.playing;

Quoted 7 lines

Then I diff'ed the two files and found out that they are different. I'm sending them as alsactl created them.

Regards,
Angel Tsankov

This is the extra control saved when you are playing audio on subdevice 0

    control.48 {
        comment.access 'read write'
        comment.type INTEGER
        comment.count 2
        comment.range '0 - 32768'
        iface PCM
        name 'PCM Playback Volume'
        value.0 32768
        value.1 32768
    }
Quoted 3 lines

This look like there is any sound (login/system boot event sound) playing when you perform alsactl restore , the driver will contain more control than state file , it will not restore but perform initialization

Here's another test I performed. I created a new /etc/asound.state while vlc was playing some music. Then I made sure that control.48 is in the file and ensured the file won't be overridden at system shutdown. Then I restarted the system, verified that the file's time stamp has not been changed and started Xfce's mixer only to discover that neither PCM, nor master volume was restored to its saved state. Rather, they looked more like initialized.

I'd also like to point out that in /etc/asound.state the values for control.48 are the maximum possible (if I interpret the values right), but when I stored the levels neither master, nor PCM was set to its maximum value.

Quoted 6 lines

Now, one test more. While playing some music I ran 'alsactl restore' and
both master and PCM levels were restored to the saved values.

Stil another test. While *not* playing anything I changed the master and PCM levels and ran 'alactl restore' and guess what... the levels were restored to their saved values!

Some additional info: I performed the above tests with an /etc/asound.state file created while nothing is being played and which did not have control.48 in it and I got the same results -- the master and PCM levels were restored regardless of whether anything is being played when I ran 'aslactl restore'.

Quoted 4 lines

Maybe the problem does not have anything to do with whether anything is being played while the levels are being restored or not and I still suspect that something might be wrong in my shutdown, or more likely -- boot-up, settings...

Now my suspicion seems more logically sound.

Angel Tsankov

#23 lore raw
Quoted 182 lines · Angel Tsankov
Quoted 168 lines · Angel Tsankov
Quoted 151 lines · Raymond Yau

2010/2/27 Angel Tsankov <[email protected]>

Quoted 128 lines
Quoted 107 lines · Raymond Yau

2010/2/26 Angel Tsankov <[email protected]>

Quoted 93 lines · Raymond Yau
Quoted 62 lines

2010/2/25 Jaroslav Kysela <[email protected]>

Quoted 11 lines · Angel Tsankov
Quoted 10 lines · Jaroslav Kysela
Quoted 10 lines · Angel Tsankov

Hello,

Quoted 7 lines

I run 'alsactl restore' on a machine with 2 sound cards -- a built-in
Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev
02) and a non-built-in Yamaha Corporation YMF-724F [DS-1 Audio Controller] (rev 03) -- and get the following message:

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines

Unknown hardware: "YMF724F" "SigmaTel STAC9700,83,84"

"AC97a:83847600"

"0x1073" "0x000d"

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines

Hardware is initialized using a guess method

As a consequence the volume levels of the Yamaha card do not get restored to the levels stored in /etc/asound.state. The volume

levels

of the built-in card however are properly restored. The asound.state

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines

file has been created by executing 'alsactl store'.

The kernel has been built with support for ALSA. I've built and installed the kernel modules for both cards (not the ones in the alsa-driver package but those that come with kernel version

2.6.30.2).

Any ideas why alsactl cannot find the hardware it has previously

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

identified as "YMF724F", "SigmaTel STAC9700,83,84", and so on?

The logic of alsactl is to restore the state from /etc/asound.state if

Quoted 8 lines
Quoted 8 lines

it
is valid. It seems like the set_controls() function in alsactl/state.c

Quoted 5 lines

returns an error code for a reason.

Could you try to compile the latest alsa-utils snapshot
(http://www.alsa-project.org/snapshot/) and run './alsactl -d

restore'

in

Quoted 2 lines
Quoted 2 lines

alsa-utils/alsactl directory? A warning (fail reason) should be printed.

I've attached a bash shell script that I used to download, configure,

Quoted 3 lines
Quoted 2 lines

compile, and run alsactl. I've also attached a .log file with stdout

and

stderr that I got while executing the script.

Quoted 2 lines

Thanks. I've added more debug print lines to state.c. Could you rerun

your
script and append also '/etc/asound.state' file and output from

Quoted 4 lines

'alsa-info.sh --no-upload' to your output tarballs? Send me this tarball
privately or just an URL to this list.

Quoted 7 lines
Quoted 5 lines

Thanks,
Jaroslav

did alsactl restore those IFACE_PCM volume since they are supposed at

0dB

by

Quoted 4 lines

default whenever the subdevice is open ?

store the values in asound.state seem to be for debugging only

Quoted 12 lines
   control.61 {
       comment.access 'read write inactive'
       comment.type INTEGER
       comment.count 2
       comment.range '0 - 32768'
       iface PCM
       subdevice 1
       name 'PCM Playback Volume'
       value.0 26214
       value.1 26214
   }

In fact, alsactl seems to restore the volume levels (despite the "Unknown hardware" message) when the system is up and running, but it does not restore the PCM and master levels at boot time. This should be done when the hardware is detected by udev, as I have the following udev rule:

Quoted 8 lines

KERNEL=="controlC[0-9]*", ACTION=="add", RUN+="/usr/sbin/alsactl restore %n"

Angel Tsankov

Can you store the iface PCM "PCM Playback Volume" in asound.state while

you
are playing audio ?

Quoted 8 lines

alsactl can store the value since the control is active when the subdevice is open

alsactl already skip restoring of those control when it is not active , so the problem seem not related to those controls

However via82xx also have those hardware specific controls

It seems that when I store the values while the sound card is playing I get one more control in asound.state (see attached archive).

Here's the test I did:

1. I removed /etc/asound.state (just in case);
2. I made sure the sound card is not playing, ran 'alsactl store', and renamed /etc/asound.state to /etc/asound.state.not-playing;
3. I started vlc, played some music, ran 'alsactl store' once again, and renamed /etc/asound.state to /etc/asound.state.playing;

Quoted 7 lines

Then I diff'ed the two files and found out that they are different. I'm sending them as alsactl created them.

Regards,
Angel Tsankov

This is the extra control saved when you are playing audio on subdevice 0

    control.48 {
        comment.access 'read write'
        comment.type INTEGER
        comment.count 2
        comment.range '0 - 32768'
        iface PCM
        name 'PCM Playback Volume'
        value.0 32768
        value.1 32768
    }
Quoted 3 lines

This look like there is any sound (login/system boot event sound) playing when you perform alsactl restore , the driver will contain more control than state file , it will not restore but perform initialization

Here's another test I performed. I created a new /etc/asound.state while vlc was playing some music. Then I made sure that control.48 is in the file and ensured the file won't be overridden at system shutdown. Then I restarted the system, verified that the file's time stamp has not been changed and started Xfce's mixer only to discover that neither PCM, nor master volume was restored to its saved state. Rather, they looked more like initialized.

I'd also like to point out that in /etc/asound.state the values for control.48 are the maximum possible (if I interpret the values right), but when I stored the levels neither master, nor PCM was set to its maximum value.

Quoted 6 lines

Now, one test more. While playing some music I ran 'alsactl restore' and
both master and PCM levels were restored to the saved values.

Stil another test. While *not* playing anything I changed the master and PCM levels and ran 'alactl restore' and guess what... the levels were restored to their saved values!

Some additional info: I performed the above tests with an /etc/asound.state file created while nothing is being played and which did not have control.48 in it and I got the same results -- the master and PCM levels were restored regardless of whether anything is being played when I ran 'aslactl restore'.

Quoted 6 lines
Quoted 4 lines

Maybe the problem does not have anything to do with whether anything is being played while the levels are being restored or not and I still suspect that something might be wrong in my shutdown, or more likely -- boot-up, settings...

Now my suspicion seems more logically sound.

I fixed the problem by adding the following line to the udev rule for alsa devices:

KERNEL=="pcmC[0-9]*D**", ACTION=="add", RUN+="/usr/sbin/alsactl restore %n"

Regards,
Angel Tsankov

#24 lore raw
In reply to Angel Tsankov

2010/2/27 Angel Tsankov <[email protected]>

Quoted 198 lines
Quoted 43 lines · Raymond Yau

2010/2/27 Angel Tsankov <[email protected]>

Quoted 41 lines
Quoted 39 lines · Raymond Yau

2010/2/26 Angel Tsankov <[email protected]>

Quoted 36 lines · Raymond Yau
Quoted 36 lines

2010/2/25 Jaroslav Kysela <[email protected]>

Quoted 11 lines · Angel Tsankov
Quoted 10 lines · Jaroslav Kysela
Quoted 10 lines · Angel Tsankov

Hello,

Quoted 7 lines

I run 'alsactl restore' on a machine with 2 sound cards -- a built-in
Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev
02) and a non-built-in Yamaha Corporation YMF-724F [DS-1 Audio Controller] (rev 03) -- and get the following message:

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines

Unknown hardware: "YMF724F" "SigmaTel STAC9700,83,84"

"AC97a:83847600"

"0x1073" "0x000d"

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines

Hardware is initialized using a guess method

As a consequence the volume levels of the Yamaha card do not get restored to the levels stored in /etc/asound.state. The volume

levels

of the built-in card however are properly restored. The asound.state

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines

file has been created by executing 'alsactl store'.

The kernel has been built with support for ALSA. I've built and installed the kernel modules for both cards (not the ones in the alsa-driver package but those that come with kernel version

2.6.30.2).

Any ideas why alsactl cannot find the hardware it has previously

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines

identified as "YMF724F", "SigmaTel STAC9700,83,84", and so on?

The logic of alsactl is to restore the state from

/etc/asound.state

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

if

it
is valid. It seems like the set_controls() function in

alsactl/state.c

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines

returns an error code for a reason.

Could you try to compile the latest alsa-utils snapshot
(http://www.alsa-project.org/snapshot/) and run './alsactl -d

restore'

in

Quoted 2 lines
Quoted 2 lines

alsa-utils/alsactl directory? A warning (fail reason) should be printed.

I've attached a bash shell script that I used to download, configure,

Quoted 1 line
Quoted 1 line

compile, and run alsactl. I've also attached a .log file with

stdout

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
Quoted 1 line

and

stderr that I got while executing the script.

Quoted 1 line

Thanks. I've added more debug print lines to state.c. Could you

rerun

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line

your
script and append also '/etc/asound.state' file and output from

Quoted 4 lines

'alsa-info.sh --no-upload' to your output tarballs? Send me this tarball
privately or just an URL to this list.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Thanks,
Jaroslav

did alsactl restore those IFACE_PCM volume since they are supposed

at

Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 2 lines

0dB

by

Quoted 16 lines

default whenever the subdevice is open ?

store the values in asound.state seem to be for debugging only

   control.61 {
       comment.access 'read write inactive'
       comment.type INTEGER
       comment.count 2
       comment.range '0 - 32768'
       iface PCM
       subdevice 1
       name 'PCM Playback Volume'
       value.0 26214
       value.1 26214
   }
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

In fact, alsactl seems to restore the volume levels (despite the "Unknown hardware" message) when the system is up and running, but it does not restore the PCM and master levels at boot time. This should

be

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

done when the hardware is detected by udev, as I have the following

udev

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

rule:

KERNEL=="controlC[0-9]*", ACTION=="add", RUN+="/usr/sbin/alsactl

restore

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

%n"

Angel Tsankov

Can you store the iface PCM "PCM Playback Volume" in asound.state

while

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

you
are playing audio ?

alsactl can store the value since the control is active when the

subdevice

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

is open

alsactl already skip restoring of those control when it is not active ,

so

Quoted 5 lines
Quoted 5 lines
Quoted 4 lines

the problem seem not related to those controls

However via82xx also have those hardware specific controls

It seems that when I store the values while the sound card is playing I

get

Quoted 33 lines
Quoted 10 lines

one more control in asound.state (see attached archive).

Here's the test I did:

1. I removed /etc/asound.state (just in case);
2. I made sure the sound card is not playing, ran 'alsactl store', and renamed /etc/asound.state to /etc/asound.state.not-playing;
3. I started vlc, played some music, ran 'alsactl store' once again, and renamed /etc/asound.state to /etc/asound.state.playing;

Quoted 7 lines

Then I diff'ed the two files and found out that they are different. I'm sending them as alsactl created them.

Regards,
Angel Tsankov

This is the extra control saved when you are playing audio on subdevice 0

    control.48 {
        comment.access 'read write'
        comment.type INTEGER
        comment.count 2
        comment.range '0 - 32768'
        iface PCM
        name 'PCM Playback Volume'
        value.0 32768
        value.1 32768
    }
Quoted 1 line

This look like there is any sound (login/system boot event sound)

playing

Quoted 1 line

when you perform alsactl restore , the driver will contain more control

than

Quoted 1 line

state file , it will not restore but perform initialization

Here's another test I performed. I created a new /etc/asound.state while vlc was playing some music. Then I made sure that control.48 is in the file and ensured the file won't be overridden at system shutdown. Then I restarted the system, verified that the file's time stamp has not been changed and started Xfce's mixer only to discover that neither PCM, nor master volume was restored to its saved state. Rather, they looked more like initialized.

I'd also like to point out that in /etc/asound.state the values for control.48 are the maximum possible (if I interpret the values right), but when I stored the levels neither master, nor PCM was set to its maximum value.

Now, one test more. While playing some music I ran 'alsactl restore' and
both master and PCM levels were restored to the saved values.

Stil another test. While *not* playing anything I changed the master and PCM levels and ran 'alactl restore' and guess what... the levels were restored to their saved values!

Maybe the problem does not have anything to do with whether anything is being played while the levels are being restored or not and I still suspect that something might be wrong in my shutdown, or more likely -- boot-up, settings...

Quoted 4 lines

Regards,
Angel Tsankov
<http://mailman.alsa-project.org/mailman/listinfo/alsa-devel>

I guess that the purpose of that patch is used for those Live CD which did not has asound.state , therefore sound will initialised to an audible volume by using alsactl restore

When the driver has more controls than asound.state ( no controls in asound state)

if there is no sound playing when system shut down , the control will not be saved

However if there is system event sound playing or an application open the sound card while alsactl restore from asound.state ( ymfpci and via82xx will have one controls more than the state file , alsactl restore will initialised to to an audible volume instead of restore the values from asound.state

Quoted 2 lines

l <http://mailman.alsa-project.org/mailman/listinfo/alsa-devel>

#25 lore raw
In reply to Angel Tsankov

2010/2/27 Angel Tsankov <[email protected]>

Quoted 10 lines

I'd also like to point out that in /etc/asound.state the values for control.48 are the maximum possible (if I interpret the values right), but when I stored the levels neither master, nor PCM was set to its maximum value.

Regards,
Angel Tsankov

That is the per voice volume control which use the hardware mixer in ymf754 chip instead of the mixer of ac97 codec

ymf754 has 32 playback subdevices , each subdevices has one hardware mixer volume control

the values are set to 0dB by the driver when the subdevice is open , DSP can mix 32 streams by hardware

when the driver is loaded there are 32 controls which are inactive and the total number of controls should more that those controls in asound.state since those iface PCM "PCM playback volume controls" are not saved at shutdown because all 32 controls are inactive when 32 subdevices are closed

#26 lore raw
Quoted 7 lines · Raymond Yau

2010/2/27 Angel Tsankov <[email protected]>

Quoted 5 lines

I'd also like to point out that in /etc/asound.state the values for control.48 are the maximum possible (if I interpret the values right), but when I stored the levels neither master, nor PCM was set to its maximum value.

Quoted 5 lines
Quoted 4 lines

Regards,
Angel Tsankov

That is the per voice volume control which use the hardware mixer in ymf754

The device in question is YMF724F.

Quoted 5 lines

chip instead of the mixer of ac97 codec

ymf754 has 32 playback subdevices , each subdevices has one hardware mixer volume control

Quoted 7 lines

the values are set to 0dB by the driver when the subdevice is open , DSP can mix 32 streams by hardware

when the driver is loaded there are 32 controls which are inactive and the total number of controls should more that those controls in asound.state since those iface PCM "PCM playback volume controls" are not saved at shutdown because all 32 controls are inactive when 32 subdevices are closed

Angel Tsankov