diff options
author | Takashi Iwai <tiwai@suse.de> | 2010-03-07 03:29:29 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-03-07 03:29:29 -0500 |
commit | 7484399fe2f85212754ffdd78121636b47a49a13 (patch) | |
tree | 75412ae67bfdb605588049848348927b5e1a93ee /sound/pci | |
parent | d2db09b87eb7b547136d5d25ff1df06820e070bf (diff) | |
parent | 0a27fcfaaf61108d94f0377f91bed81b2dd35f52 (diff) |
Merge branch 'fix/hda' into topic/hda
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/hda_intel.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index c24bffa08c84..94b444e6fed3 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c | |||
@@ -1897,12 +1897,9 @@ static int azx_position_ok(struct azx *chip, struct azx_dev *azx_dev) | |||
1897 | 1897 | ||
1898 | if (!bdl_pos_adj[chip->dev_index]) | 1898 | if (!bdl_pos_adj[chip->dev_index]) |
1899 | return 1; /* no delayed ack */ | 1899 | return 1; /* no delayed ack */ |
1900 | if (azx_dev->period_bytes == 0) { | 1900 | if (WARN_ONCE(!azx_dev->period_bytes, |
1901 | printk(KERN_WARNING | 1901 | "hda-intel: zero azx_dev->period_bytes")) |
1902 | "hda-intel: Divide by zero was avoided " | 1902 | return 0; /* this shouldn't happen! */ |
1903 | "in azx_dev->period_bytes.\n"); | ||
1904 | return 0; | ||
1905 | } | ||
1906 | if (pos % azx_dev->period_bytes > azx_dev->period_bytes / 2) | 1903 | if (pos % azx_dev->period_bytes > azx_dev->period_bytes / 2) |
1907 | return 0; /* NG - it's below the period boundary */ | 1904 | return 0; /* NG - it's below the period boundary */ |
1908 | return 1; /* OK, it's fine */ | 1905 | return 1; /* OK, it's fine */ |
@@ -2360,7 +2357,7 @@ static void __devinit check_probe_mask(struct azx *chip, int dev) | |||
2360 | */ | 2357 | */ |
2361 | static struct snd_pci_quirk msi_black_list[] __devinitdata = { | 2358 | static struct snd_pci_quirk msi_black_list[] __devinitdata = { |
2362 | SND_PCI_QUIRK(0x1043, 0x81f2, "ASUS", 0), /* Athlon64 X2 + nvidia */ | 2359 | SND_PCI_QUIRK(0x1043, 0x81f2, "ASUS", 0), /* Athlon64 X2 + nvidia */ |
2363 | SND_PCI_QUIRK(0x1043, 0x829c, "ASUS", 0), /* nvidia */ | 2360 | SND_PCI_QUIRK(0x1043, 0x81f6, "ASUS", 0), /* nvidia */ |
2364 | {} | 2361 | {} |
2365 | }; | 2362 | }; |
2366 | 2363 | ||