Fixed the audio problem in 2.6.37-rc8

Dear All,

   Today I made my beagleboard Xm successfully play audio using the
2.6.37-rc8 Linux-omap kernel.
  The problem you will face is "interface hw_params not set" when you
play any audio file using aplay or mplayer.

  The fix is really simple. The condition "cpu_is_omap34xx" fails in
the function hw_params in file "sound/soc/omap/snd-omapmcbsp.c".
   Just make the condition true and you are all set to play :slight_smile:

Thanks
Ashok

Hi Ashok,

Do you have a patch for the exact "cpu_is_omap34xx" reference that you changed?

Regards,

Hi Robert,

Find the patch here :

--- sound/soc/omap/omap-mcbsp.c.org 2011-01-13 20:06:24.009495000
+0530
+++ sound/soc/omap/omap-mcbsp.c 2011-01-13 20:07:33.224085027 +0530
@@ -333,7 +333,10 @@
     dma = omap24xx_dma_reqs[bus_id][substream->stream];
     port = omap34xx_mcbsp_port[bus_id][substream->stream];
   } else {
- return -ENODEV;
+ /* Fix for no device in BeagleBoard XM */
+ dma = omap24xx_dma_reqs[bus_id][substream->stream];
+ port = omap34xx_mcbsp_port[bus_id][substream->stream];
+ //return -ENODEV;
   }
   switch (params_format(params)) {
   case SNDRV_PCM_FORMAT_S16_LE:

Regards
Ashok