diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/davinci/davinci-pcm.c | 6 | ||||
-rw-r--r-- | sound/sound_core.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/davinci/davinci-pcm.c b/sound/soc/davinci/davinci-pcm.c index 091dacb78b4d..2f7da49ed34f 100644 --- a/sound/soc/davinci/davinci-pcm.c +++ b/sound/soc/davinci/davinci-pcm.c | |||
@@ -145,7 +145,7 @@ static int davinci_pcm_dma_request(struct snd_pcm_substream *substream) | |||
145 | prtd->master_lch = ret; | 145 | prtd->master_lch = ret; |
146 | 146 | ||
147 | /* Request parameter RAM reload slot */ | 147 | /* Request parameter RAM reload slot */ |
148 | ret = edma_alloc_slot(EDMA_SLOT_ANY); | 148 | ret = edma_alloc_slot(EDMA_CTLR(prtd->master_lch), EDMA_SLOT_ANY); |
149 | if (ret < 0) { | 149 | if (ret < 0) { |
150 | edma_free_channel(prtd->master_lch); | 150 | edma_free_channel(prtd->master_lch); |
151 | return ret; | 151 | return ret; |
@@ -162,8 +162,8 @@ static int davinci_pcm_dma_request(struct snd_pcm_substream *substream) | |||
162 | * so davinci_pcm_enqueue_dma() takes less time in IRQ. | 162 | * so davinci_pcm_enqueue_dma() takes less time in IRQ. |
163 | */ | 163 | */ |
164 | edma_read_slot(prtd->slave_lch, &p_ram); | 164 | edma_read_slot(prtd->slave_lch, &p_ram); |
165 | p_ram.opt |= TCINTEN | EDMA_TCC(prtd->master_lch); | 165 | p_ram.opt |= TCINTEN | EDMA_TCC(EDMA_CHAN_SLOT(prtd->master_lch)); |
166 | p_ram.link_bcntrld = prtd->slave_lch << 5; | 166 | p_ram.link_bcntrld = EDMA_CHAN_SLOT(prtd->slave_lch) << 5; |
167 | edma_write_slot(prtd->slave_lch, &p_ram); | 167 | edma_write_slot(prtd->slave_lch, &p_ram); |
168 | 168 | ||
169 | return 0; | 169 | return 0; |
diff --git a/sound/sound_core.c b/sound/sound_core.c index bb4b88e606bb..49c998186592 100644 --- a/sound/sound_core.c +++ b/sound/sound_core.c | |||
@@ -29,7 +29,7 @@ MODULE_DESCRIPTION("Core sound module"); | |||
29 | MODULE_AUTHOR("Alan Cox"); | 29 | MODULE_AUTHOR("Alan Cox"); |
30 | MODULE_LICENSE("GPL"); | 30 | MODULE_LICENSE("GPL"); |
31 | 31 | ||
32 | static char *sound_nodename(struct device *dev) | 32 | static char *sound_devnode(struct device *dev, mode_t *mode) |
33 | { | 33 | { |
34 | if (MAJOR(dev->devt) == SOUND_MAJOR) | 34 | if (MAJOR(dev->devt) == SOUND_MAJOR) |
35 | return NULL; | 35 | return NULL; |
@@ -50,7 +50,7 @@ static int __init init_soundcore(void) | |||
50 | return PTR_ERR(sound_class); | 50 | return PTR_ERR(sound_class); |
51 | } | 51 | } |
52 | 52 | ||
53 | sound_class->nodename = sound_nodename; | 53 | sound_class->devnode = sound_devnode; |
54 | 54 | ||
55 | return 0; | 55 | return 0; |
56 | } | 56 | } |