[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[plamo:12453] kernel-2.4.16 with alsa-0.5.12 mixer ioctl problem



みやざわ と申します。

alsaお使いでkernel-2.4.16にアップして音が出ない方いらっしゃいませんか?

Plamo-2.2.1 (早く2。2。2にしたいっす) で、
先日出た kernel-2.4.16 にしたところalsaの音が出ない!
##よく覚えてないですが、#0/#0 がないようなメッセージ
##でした
といった現象が発生しました。

[経過]

1. とりあえずalsaをアップデート
   おお、新しいalsaがあるさ!
   alsa-driver 0.5.11から0.5.12してみたところ 変化なし

2. ML検索。。。
   例によって困ってる方がいた! こんな表題です。
   Re: 2.4.16 alsa 0.5.12 mixer ioctl problem

  内容は、ALSA drive の kernel/info.cの一部コメントアウトして
  再コンパイルしてくれといったものです。

-------以下そのソース (ALSA driver-0.5.12) ------------
if (p) {
        snd_info_device_entry_prepare(p,entry);
#ifdef LINUX_2_3
        p->proc_fops = &snd_fops;
#else
        p->ops = &snd_info_device_inode_operations;
#endif
        } else {
                up(&info_mutex);
                snd_info_free_entry(entry);
                return NULL;
------
  900行目にある   p->proc_fops = &snd_fops;
  これをcomment outしたところOKとなりました。


おそらく、alsa-driver-0.5.11でもこれを修正すれば
イケルのではないかと思います。

それでは失礼します。

以下付録として検索結果を付けます。   Show the Froku!! ((^^;

----------日本のLinux情報サイトから 検索結果 MLの本文-----------

Yeah, they changed/broke (depending on your point of view) the file fs/proc/inode.c in the kernel source.
You're the third person to post about this problem.

There's a work-around for the problem. (I'm currently running ALSA 0.9beta9, so
the file contents
may not exactly match up): in the ALSA driver source, edit the file kernel/info.c. Look for the
following lines

if (p) {
        snd_info_device_entry_prepare(p,entry);
#ifdef LINUX_2_3
        p->proc_fops = &snd_fops;
#else
        p->ops = &snd_info_device_inode_operations;
#endif
        } else {
                up(&info_mutex);
                snd_info_free_entry(entry);
                return NULL;
        }
}

they should be near line 890 or so.

Next, comment out the line 
        p->proc_fops = &snd_fops;

Rebuild. Everything should work now.

Hope this helps.

---end.

★  みやざわ echo@mbd.sphere.ne.jp   ★

Follow-Ups
[plamo:12454] Re: kernel-2.4.16 with alsa-0.5.12 mixer ioctlproblem, nagato
[plamo:12456] Re: kernel-2.4.16 with alsa-0.5.12 mixer ioctl problem, FumimasaKojima

[検索ページ] [メール一覧]
Plamo ML 公開システム