Hi,

I'm almost done with transition to linux-2.6.25, but I can't find a
way to convert this snippet from sound/soc/pxa/ezx.c:

 static int ezx_machine_prepare(struct snd_pcm_substream *substream)
 {
   struct snd_soc_pcm_runtime *rtd = substream->private_data;
   struct snd_soc_codec_dai *codec_dai = rtd->dai->codec_dai;
   struct snd_soc_cpu_dai *cpu_dai = rtd->dai->cpu_dai;  

   if (codec_dai->id == PCAP2_STEREO_DAI) {
     /* override pxa2xx-ssp sample size for stereo/network mode */
     SSCR0_P(cpu_dai->id+1) &= ~(SSCR0_DSS | SSCR0_EDSS);
     SSCR0_P(cpu_dai->id+1) |= (SSCR0_EDSS | SSCR0_DataSize (16));
   }
   return 0;
 }

SSCR0_P() macro is no longer available.

Philipp Zabel told me that SSCR0 changes should happen only in
pxa2xx-ssp.c but I can't find a way to invoke changes to cpu_dai
hw_params from a machine file.

Does it have any sense to call cpu_dai->ops.hw_params() directly from
ezx_machine_prepare? I expect this call to invoke pxa2xx_ssp_hw_params
in our case, which should do the initialization we want if it finds
SNDRV_PCM_FORMAT_S32_LE in the params argument. But how to setup the
params argument?

Thanks,
   Antonio

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

  Web site: http://www.studenti.unina.it/~ospite
Public key: http://www.studenti.unina.it/~ospite/aopubkey.asc

Attachment: pgpQJpzXa48nT.pgp
Description: PGP signature

Reply via email to