First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 167436
Alias:
Product:
Component:
Status: CLOSED
Resolution: FIXED
Assigned To: Gentoo ALSA team <alsa-bugs@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Jakub Moc (RETIRED) <jakub@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
alsasound.diff alsasound initscript patch patch Jakub Moc (RETIRED) 2007-02-18 08:45 0000 487 bytes Details | Diff
alsasound.diff /etc/init.d/alsasound patch Jimmy.Jazz@gmx.net 2007-03-10 11:32 0000 1.21 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 167436 depends on: Show dependency tree
Bug 167436 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.




View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-02-18 08:08 0000
This is what you get on every restart:

 * Restoring Mixer Levels ...
/etc/init.d/alsasound: line 191:
/proc/asound//var/lib/alsa/oss/card0/pcm0c/oss: No such file or directory
/etc/init.d/alsasound: line 191:
/proc/asound//var/lib/alsa/oss/card0/pcm0p/oss: No such file or directory
/etc/init.d/alsasound: line 191:
/proc/asound//var/lib/alsa/oss/card0/pcm1c/oss: No such file or directory      
                       [ ok ]

Boils down to the usage of ${alsastatedir} at:

<snip>
for ossfile in "${alsastatedir}"/oss/card?_pcm??; do
        # We use cat because I'm not sure if cp works properly on /proc
        cat "${ossfile}" > /proc/asound/${ossfile/_/\/}/oss
done
</snip>

------- Comment #1 From Jakub Moc (RETIRED) 2007-02-18 08:45:31 0000 -------
Created an attachment (id=110522) [edit]
alsasound initscript patch

Works for me...

------- Comment #2 From Diego E. 'Flameeyes' Pettenò 2007-02-18 11:38:57 0000 -------
Thanks, fixed without revbump as I'm probably going to revbump later on to fix
a few more bugs.

------- Comment #3 From Jakub Moc (RETIRED) 2007-02-18 23:49:29 0000 -------
*** Bug 167550 has been marked as a duplicate of this bug. ***

------- Comment #4 From André Terpstra 2007-02-24 07:27:25 0000 -------
I must be doing something wrong.I've applied this patch.Here's teh relevant
section:


        push_opts=$(shopt -p nullglob); shopt -s nullglob
        for ossfile in "${alsastatedir}"/oss/card?_pcm??; do
                # We use cat because I'm not sure if cp works properly on /proc
                local procfile=${ossfile##${alsastatedir}/oss}
                cat "${ossfile}" > /proc/asound/${procfile/_/\/}/oss
#               cat "${ossfile}" > /proc/asound/${ossfile/_/\/}/oss
        done
        eval $push_opts


But it still gives errors:

 * Restoring Mixer Levels ...
/etc/init.d/alsasound: line 192: /proc/asound//card0/pcm1p/oss: No such file or
directory
/etc/init.d/alsasound: line 192: /proc/asound//card1/pcm0c/oss: No such file or
directory
/etc/init.d/alsasound: line 192: /proc/asound//card1/pcm0p/oss: No such file or
directory
/etc/init.d/alsasound: line 192: /proc/asound//card1/pcm1c/oss: No such file or
directory
/etc/init.d/alsasound: line 192: /proc/asound//card1/pcm1p/oss: No such file or
directory                                [ ok ]
PoseidonGentooNew ~ #

------- Comment #5 From Jakub Moc (RETIRED) 2007-02-24 08:40:28 0000 -------
Yes, you must be doing something wrong. It's already fixed in CVS, so emerge
--sync and re-emerge the ebuild.

------- Comment #6 From André Terpstra 2007-02-25 11:09:28 0000 -------
(In reply to comment #5)
> Yes, you must be doing something wrong. It's already fixed in CVS, so emerge
> --sync and re-emerge the ebuild.
> 

So I did what you described. Still the error remains:

"
PoseidonGentooNew ~ # /etc/init.d/alsasound restart
 * WARNING:  you are stopping a boot service.
 * Storing ALSA Mixer Levels ...                                               
                                                             [ ok ]
 * Killing processes using ALSA ...                                            
                                                             [ ok ]
 * Unloading ALSA modules ...                                                  
                                                             [ ok ]
 * Loading ALSA modules ...
 *   Loading: snd-card-0 ...                                                   
                                                             [ ok ]
 *   Loading: snd-pcm-oss ...                                                  
                                                             [ ok ]
 *   Loading: snd-seq-oss ...                                                  
                                                             [ ok ]
 * Restoring Mixer Levels ...
/etc/init.d/alsasound: line 192: /proc/asound//card0/pcm1p/oss: No such file or
directory
/etc/init.d/alsasound: line 192: /proc/asound//card1/pcm0c/oss: No such file or
directory
/etc/init.d/alsasound: line 192: /proc/asound//card1/pcm0p/oss: No such file or
directory
/etc/init.d/alsasound: line 192: /proc/asound//card1/pcm1c/oss: No such file or
directory
/etc/init.d/alsasound: line 192: /proc/asound//card1/pcm1p/oss: No such file or
directory                                                    [ ok ]
PoseidonGentooNew
" 

It may be something else but I do not understand the script well enough to find
out myself.Am I the only person having this problem?

------- Comment #7 From André Terpstra 2007-02-25 11:10:45 0000 -------
To be exact I paste teh relevant section of the script:

"
        push_opts=$(shopt -p nullglob); shopt -s nullglob
        for ossfile in "${alsastatedir}"/oss/card?_pcm??; do
                # We use cat because I'm not sure if cp works properly on /proc
                local procfile=${ossfile##${alsastatedir}/oss}
                cat "${ossfile}" > /proc/asound/${procfile/_/\/}/oss
        done
        eval $push_opts
"

------- Comment #8 From Jakub Moc (RETIRED) 2007-02-25 11:15:32 0000 -------
Works just perfectly fine here; if you are missing OSS support in alsa or don't
have the needed modules loaded, then there's obviously nothing to restore.

------- Comment #9 From André Terpstra 2007-02-25 20:58:04 0000 -------
I give up. All modules are loaded and everything used to work. I reverted to
alsa-utils-1.0.14_rc2 and there are no more messages. It still seems a bug to
me...

------- Comment #10 From Sergiy Borodych 2007-02-27 15:22:20 0000 -------
same for me

help its:

/etc/init.d/alsasound stop
rm -rf /var/lib/alsa
emerge alsa-utils
/etc/init.d/alsasound start
alsamixer
# unmute what you need

------- Comment #11 From Jimmy.Jazz@gmx.net 2007-03-10 11:32:15 0000 -------
Created an attachment (id=112786) [edit]
/etc/init.d/alsasound

I modify the script a little. It works for me.

Jj

First Last Prev Next    No search results available      Search page      Enter new bug