diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-06-10 01:26:37 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-06-10 01:26:37 -0400 |
commit | 8c3ff3a7fb9730564554bb65d54455e6ce8ad340 (patch) | |
tree | e21bbdab8537678b85f9661ceb89f09989a9935b /sound | |
parent | ed8cc176c9d3f8fbc2ddc18b75362be666e6d328 (diff) | |
parent | ad0b0822f98ef547e2461ce463e4233bad7848a8 (diff) |
Merge branch 'topic/misc' into for-linus
* topic/misc:
ALSA: sgio2audio.c: clean up checking
ALSA: burgundy: timeout message is off by one.
ALSA: bt87x - Add a quirk entry for Askey Computer Corp. MagicTView'99
ALSA: parisc/harmony: fix printk format warning
ALSA: keywest: Get rid of useless i2c_device_name() macro
Diffstat (limited to 'sound')
-rw-r--r-- | sound/mips/sgio2audio.c | 3 | ||||
-rw-r--r-- | sound/parisc/harmony.c | 2 | ||||
-rw-r--r-- | sound/pci/bt87x.c | 2 | ||||
-rw-r--r-- | sound/ppc/burgundy.c | 4 | ||||
-rw-r--r-- | sound/ppc/keywest.c | 6 |
5 files changed, 7 insertions, 10 deletions
diff --git a/sound/mips/sgio2audio.c b/sound/mips/sgio2audio.c index 66f3b48ceafc..e497525bc11b 100644 --- a/sound/mips/sgio2audio.c +++ b/sound/mips/sgio2audio.c | |||
@@ -619,8 +619,7 @@ static int snd_sgio2audio_pcm_hw_params(struct snd_pcm_substream *substream, | |||
619 | /* hw_free callback */ | 619 | /* hw_free callback */ |
620 | static int snd_sgio2audio_pcm_hw_free(struct snd_pcm_substream *substream) | 620 | static int snd_sgio2audio_pcm_hw_free(struct snd_pcm_substream *substream) |
621 | { | 621 | { |
622 | if (substream->runtime->dma_area) | 622 | vfree(substream->runtime->dma_area); |
623 | vfree(substream->runtime->dma_area); | ||
624 | substream->runtime->dma_area = NULL; | 623 | substream->runtime->dma_area = NULL; |
625 | return 0; | 624 | return 0; |
626 | } | 625 | } |
diff --git a/sound/parisc/harmony.c b/sound/parisc/harmony.c index 6055fd6d3b38..63ae0f9aeaf5 100644 --- a/sound/parisc/harmony.c +++ b/sound/parisc/harmony.c | |||
@@ -935,7 +935,7 @@ snd_harmony_create(struct snd_card *card, | |||
935 | h->iobase = ioremap_nocache(padev->hpa.start, HARMONY_SIZE); | 935 | h->iobase = ioremap_nocache(padev->hpa.start, HARMONY_SIZE); |
936 | if (h->iobase == NULL) { | 936 | if (h->iobase == NULL) { |
937 | printk(KERN_ERR PFX "unable to remap hpa 0x%lx\n", | 937 | printk(KERN_ERR PFX "unable to remap hpa 0x%lx\n", |
938 | padev->hpa.start); | 938 | (unsigned long)padev->hpa.start); |
939 | err = -EBUSY; | 939 | err = -EBUSY; |
940 | goto free_and_ret; | 940 | goto free_and_ret; |
941 | } | 941 | } |
diff --git a/sound/pci/bt87x.c b/sound/pci/bt87x.c index ce3f2e90f4d7..24585c6c6d01 100644 --- a/sound/pci/bt87x.c +++ b/sound/pci/bt87x.c | |||
@@ -810,6 +810,8 @@ static struct pci_device_id snd_bt87x_ids[] = { | |||
810 | BT_DEVICE(PCI_DEVICE_ID_BROOKTREE_878, 0x107d, 0x6606, GENERIC), | 810 | BT_DEVICE(PCI_DEVICE_ID_BROOKTREE_878, 0x107d, 0x6606, GENERIC), |
811 | /* Voodoo TV 200 */ | 811 | /* Voodoo TV 200 */ |
812 | BT_DEVICE(PCI_DEVICE_ID_BROOKTREE_878, 0x121a, 0x3000, GENERIC), | 812 | BT_DEVICE(PCI_DEVICE_ID_BROOKTREE_878, 0x121a, 0x3000, GENERIC), |
813 | /* Askey Computer Corp. MagicTView'99 */ | ||
814 | BT_DEVICE(PCI_DEVICE_ID_BROOKTREE_878, 0x144f, 0x3000, GENERIC), | ||
813 | /* AVerMedia Studio No. 103, 203, ...? */ | 815 | /* AVerMedia Studio No. 103, 203, ...? */ |
814 | BT_DEVICE(PCI_DEVICE_ID_BROOKTREE_878, 0x1461, 0x0003, AVPHONE98), | 816 | BT_DEVICE(PCI_DEVICE_ID_BROOKTREE_878, 0x1461, 0x0003, AVPHONE98), |
815 | /* Prolink PixelView PV-M4900 */ | 817 | /* Prolink PixelView PV-M4900 */ |
diff --git a/sound/ppc/burgundy.c b/sound/ppc/burgundy.c index 45a76297c38d..d2c0a4e987ae 100644 --- a/sound/ppc/burgundy.c +++ b/sound/ppc/burgundy.c | |||
@@ -46,12 +46,12 @@ snd_pmac_burgundy_extend_wait(struct snd_pmac *chip) | |||
46 | timeout = 50; | 46 | timeout = 50; |
47 | while (!(in_le32(&chip->awacs->codec_stat) & MASK_EXTEND) && timeout--) | 47 | while (!(in_le32(&chip->awacs->codec_stat) & MASK_EXTEND) && timeout--) |
48 | udelay(1); | 48 | udelay(1); |
49 | if (! timeout) | 49 | if (timeout < 0) |
50 | printk(KERN_DEBUG "burgundy_extend_wait: timeout #1\n"); | 50 | printk(KERN_DEBUG "burgundy_extend_wait: timeout #1\n"); |
51 | timeout = 50; | 51 | timeout = 50; |
52 | while ((in_le32(&chip->awacs->codec_stat) & MASK_EXTEND) && timeout--) | 52 | while ((in_le32(&chip->awacs->codec_stat) & MASK_EXTEND) && timeout--) |
53 | udelay(1); | 53 | udelay(1); |
54 | if (! timeout) | 54 | if (timeout < 0) |
55 | printk(KERN_DEBUG "burgundy_extend_wait: timeout #2\n"); | 55 | printk(KERN_DEBUG "burgundy_extend_wait: timeout #2\n"); |
56 | } | 56 | } |
57 | 57 | ||
diff --git a/sound/ppc/keywest.c b/sound/ppc/keywest.c index a5afb2682e7f..b2e2aac22114 100644 --- a/sound/ppc/keywest.c +++ b/sound/ppc/keywest.c | |||
@@ -33,10 +33,6 @@ | |||
33 | static struct pmac_keywest *keywest_ctx; | 33 | static struct pmac_keywest *keywest_ctx; |
34 | 34 | ||
35 | 35 | ||
36 | #ifndef i2c_device_name | ||
37 | #define i2c_device_name(x) ((x)->name) | ||
38 | #endif | ||
39 | |||
40 | static int keywest_probe(struct i2c_client *client, | 36 | static int keywest_probe(struct i2c_client *client, |
41 | const struct i2c_device_id *id) | 37 | const struct i2c_device_id *id) |
42 | { | 38 | { |
@@ -56,7 +52,7 @@ static int keywest_attach_adapter(struct i2c_adapter *adapter) | |||
56 | if (! keywest_ctx) | 52 | if (! keywest_ctx) |
57 | return -EINVAL; | 53 | return -EINVAL; |
58 | 54 | ||
59 | if (strncmp(i2c_device_name(adapter), "mac-io", 6)) | 55 | if (strncmp(adapter->name, "mac-io", 6)) |
60 | return 0; /* ignored */ | 56 | return 0; /* ignored */ |
61 | 57 | ||
62 | memset(&info, 0, sizeof(struct i2c_board_info)); | 58 | memset(&info, 0, sizeof(struct i2c_board_info)); |