From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dirk Behme Subject: [PATCH] Make ALSA omap-aic23.c compile again Date: Tue, 17 Jan 2006 19:45:37 +0100 Message-ID: <43CD3B51.80105@de.bosch.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010000070501050909050608" Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-omap-open-source-bounces@linux.omap.com Errors-To: linux-omap-open-source-bounces@linux.omap.com To: linux-omap-open-source@linux.omap.com List-Id: linux-omap@vger.kernel.org This is a multi-part message in MIME format. --------------010000070501050909050608 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit ARM: OMAP: Remove errors and warnings and make omap-aic23.c compile again: sound/arm/omap-aic23.c:661: error: structure has no member named `pm_private_data' sound/arm/omap-aic23.c:680: error: structure has no member named `pm_private_data' sound/arm/omap-aic23.c:772: warning: implicit declaration of function `clk_get_usecount' sound/arm/omap-aic23.c:863: warning: implicit declaration of function `snd_card_set_pm_callback' Note: Needs "Fix clk_get_usecount() warning" patch Signed-off-by: Dirk Behme --------------010000070501050909050608 Content-Type: text/plain; name="omap-aic23.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="omap-aic23.patch" --- ./sound/arm/omap-aic23.c_orig 2006-01-17 19:26:00.707889264 +0100 +++ ./sound/arm/omap-aic23.c 2006-01-17 19:38:02.260196640 +0100 @@ -59,6 +59,7 @@ #include #include #include +#include #include #include @@ -658,7 +659,7 @@ static int __init snd_card_omap_aic23_pc static int snd_omap_aic23_suspend(snd_card_t * card, pm_message_t state) { - struct snd_card_omap_aic23 *chip = card->pm_private_data; + struct snd_card_omap_aic23 *chip = card->private_data; ADEBUG(); if (chip->card->power_state != SNDRV_CTL_POWER_D3hot) { @@ -677,7 +678,7 @@ static int snd_omap_aic23_suspend(snd_ca */ static int snd_omap_aic23_resume(snd_card_t * card) { - struct snd_card_omap_aic23 *chip = card->pm_private_data; + struct snd_card_omap_aic23 *chip = card->private_data; ADEBUG(); if (chip->card->power_state != SNDRV_CTL_POWER_D0) { @@ -860,14 +861,13 @@ static int __init snd_omap_aic23_probe(s if ((err = snd_card_omap_aic23_pcm(omap_aic23, 0)) < 0) goto nodev; - snd_card_set_pm_callback(card, snd_omap_aic23_suspend, - snd_omap_aic23_resume, omap_aic23); - strcpy(card->driver, "AIC23"); strcpy(card->shortname, "OSK AIC23"); sprintf(card->longname, "OMAP OSK with AIC23"); snd_omap_init_mixer(); + + snd_card_set_dev(card, &pdev->dev); if ((err = snd_card_register(card)) == 0) { printk(KERN_INFO "OSK audio support initialized\n"); --------------010000070501050909050608 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --------------010000070501050909050608--