Mailinglist Archive: opensuse-ja (114 mails)

< Previous Next >
Re: [opensuse-ja] shutdwon 出来ない
  • From: Takashi Iwai <tiwai@xxxxxxx>
  • Date: Wed, 17 Oct 2007 16:57:01 +0200
  • Message-id: <s5hsl4923ia.wl%tiwai@xxxxxxx>
At Wed, 17 Oct 2007 23:18:33 +0900,
野宮 賢 / NOMIYA Masaru wrote:
> 
> 今井さん> 話を進める上で今のうちに整理しておく必要があると思います。
> 今井さん> サウンドカードはオンボードでなくて別途追加してると思いまし
> 今井さん> たけど....。
> 
> はい,Sound Card は,
> 
> RME Hammerfall DSP
> 
> というのを使っています.

あ、もしかしたら、2.6.22 で見つかった snd-hdsp ドライバのバグがヒット
しているのかもしれません。HDSP を外して試していただけますか?

先日パッチを入れておいたので、FACTORY のカーネルだと直っているかもしれ
ません。

もしくは、openSUSE BS の multimedia:audio レポジトリの alsa-driver-kmp
をインストールして、最新版の ALSA ドライバにする、という手もあります。

パッチ自体は trivial でして、以下の通りです。

--
Takashi Iwai <tiwai@xxxxxxx>


Subject: [ALSA] hdsp - Fix zero division

Fix zero-division bug in the calculation dds offset.

Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>

---
 sound/pci/rme9652/hdsp.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/sound/pci/rme9652/hdsp.c b/sound/pci/rme9652/hdsp.c
index 3b3ef65..75dcb9a 100644
--- a/sound/pci/rme9652/hdsp.c
+++ b/sound/pci/rme9652/hdsp.c
@@ -3108,6 +3108,9 @@ static int hdsp_dds_offset(struct hdsp *hdsp)
        unsigned int dds_value = hdsp->dds_value;
        int system_sample_rate = hdsp->system_sample_rate;
 
+       if (!dds_value)
+               return 0;
+
        n = DDS_NUMERATOR;
        /*
         * dds_value = n / rate
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-ja+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-ja+help@xxxxxxxxxxxx

< Previous Next >