aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/aoa/core/snd-aoa-alsa.c2
-rw-r--r--sound/aoa/soundbus/i2sbus/i2sbus-pcm.c7
2 files changed, 3 insertions, 6 deletions
diff --git a/sound/aoa/core/snd-aoa-alsa.c b/sound/aoa/core/snd-aoa-alsa.c
index b42fdea77ed0..8c5a19bd602a 100644
--- a/sound/aoa/core/snd-aoa-alsa.c
+++ b/sound/aoa/core/snd-aoa-alsa.c
@@ -59,7 +59,7 @@ void aoa_alsa_cleanup(void)
59} 59}
60 60
61int aoa_snd_device_new(snd_device_type_t type, 61int aoa_snd_device_new(snd_device_type_t type,
62 void * device_data, struct snd_device_ops * ops) 62 void * device_data, struct snd_device_ops * ops)
63{ 63{
64 struct snd_card *card = aoa_get_card(); 64 struct snd_card *card = aoa_get_card();
65 int err; 65 int err;
diff --git a/sound/aoa/soundbus/i2sbus/i2sbus-pcm.c b/sound/aoa/soundbus/i2sbus/i2sbus-pcm.c
index 5eff30b10201..051bb9b200ee 100644
--- a/sound/aoa/soundbus/i2sbus/i2sbus-pcm.c
+++ b/sound/aoa/soundbus/i2sbus/i2sbus-pcm.c
@@ -901,11 +901,7 @@ i2sbus_attach_codec(struct soundbus_dev *dev, struct snd_card *card,
901 } 901 }
902 902
903 if (!dev->pcm) { 903 if (!dev->pcm) {
904 err = snd_pcm_new(card, 904 err = snd_pcm_new(card, dev->pcmname, dev->pcmid, 0, 0,
905 dev->pcmname,
906 dev->pcmid,
907 0,
908 0,
909 &dev->pcm); 905 &dev->pcm);
910 if (err) { 906 if (err) {
911 printk(KERN_DEBUG "i2sbus: failed to create pcm\n"); 907 printk(KERN_DEBUG "i2sbus: failed to create pcm\n");
@@ -915,6 +911,7 @@ i2sbus_attach_codec(struct soundbus_dev *dev, struct snd_card *card,
915 module_put(THIS_MODULE); 911 module_put(THIS_MODULE);
916 return err; 912 return err;
917 } 913 }
914 dev->pcm->dev = &dev->ofdev.dev;
918 } 915 }
919 916
920 /* ALSA yet again sucks. 917 /* ALSA yet again sucks.