Hi,

I missed to say about one more setting that I am using

#define MCBSP_DXR   0x01E02004
#define MCBSP_DRR   0x01E02000


2009/3/4 Azam Ansari <aazamans...@gmail.com>

> Hi,
>
> I am sorry I didn't say this before. I am already using the setting
> suggested by you.
>
> Below is the detailed setting that I am using for configuring MCBSP0:
>
> #define MCLK  27
> #define DAVINCI_DMA_MCBSP_TX              2
> #define DAVINCI_DMA_MCBSP_RX              3
>
> #define DEFAULT_BITPERSAMPLE          256
> #define AUDIO_RATE_DEFAULT            8000
>
>
> output_stream.dma_dev = DAVINCI_DMA_MCBSP_TX
> input_stream.dma_dev = DAVINCI_DMA_MCBSP_RX
>
>
> /* MCBSP register settings for I2S */
>     spcr2 = FREE | XINTM(3),
>     spcr1 = RINTM(3),
>     rcr2 = RWDLEN2(DAVINCI_MCBSP_WORD_16) | RDATDLY(1),
>     rcr1 = RFRLEN1(1) | RWDLEN1(DAVINCI_MCBSP_WORD_16),
>     xcr2 = XWDLEN2(DAVINCI_MCBSP_WORD_16) | XDATDLY(1) | XFIG,
>     xcr1 = XFRLEN1(1) | XWDLEN1(DAVINCI_MCBSP_WORD_16),
>     srgr1 = FWID(DEFAULT_BITPERSAMPLE - 1),
>     srgr2 = FSGM | FPER(DEFAULT_BITPERSAMPLE * 2 - 1),
>     /* configure McBSP to be the I2S slave */
>     pcr0 = CLKXP | CLKRP,
>
>
>     /* MCBSP0 information */
>     struct davinci_mcbsp_info mcbsp_davinci = {
>            .virt_base = IO_ADDRESS(DAVINCI_MCBSP0_BASE),
>            .dma_rx_sync = DM355_DMA_MCBSP0_RX,
>            .dma_tx_sync = DM355_DMA_MCBSP0_TX,
>            .rx_irq = IRQ_MBRINT,
>            .tx_irq = IRQ_MBXINT
>       },
>
> Is there any thing else that I will have to do?
>
> Please help...
>
>
>
> 2009/3/3 <liuy...@covond.com>
>
>  Hi,
>>   I know your means.
>>   Following codes are used for configuaring MCBSP0 on my board:
>>
>>                 input_stream.dma_dev = DM355_DMA_MCBSP0_RX;
>>                 output_stream.dma_dev = DM355_DMA_MCBSP0_TX;
>>
>>
>>  #define MCBSP_DXR   (cpu_is_davinci_dm355() ? 0x01E02004:0x01E04004)
>>  #define MCBSP_DRR   (cpu_is_davinci_dm355() ? 0x01E02000:0x01E04000)
>>
>>
>>
>> > Hi,
>> >
>> > I am using MCBSP0 for I2S data transfer. The daughter sound is connected
>> to
>> > MCBSP0 through DC3. Also for recoding the daughter card works in Master
>> > mode. The default code is already configured for using MCBSP1.
>> Configuration
>> > suggested by you are used for configuring MCBSP1 and not MCBSP0. I am
>> using
>> > MCBSP0 for I2S.
>> >
>> >
>> > On Tue, Mar 3, 2009 at 3:04 PM, <liuy...@covond.com> wrote:
>> >
>> >>  Step 1: modify the following code with McBSP1 DMA params (
>> >> DM355_DMA_MCBSP0_RX, DM355_DMA_MCBSP1_TX)in file davinci-audio-aic33.c.
>> >>
>> >>                 input_stream.dma_dev = DM355_DMA_MCBSP1_RX;
>> >>                 output_stream.dma_dev = DM355_DMA_MCBSP1_TX;
>> >>
>> >>
>> >> Step 2 : modefy the following code in file davinci-audio-dma-intfc.c
>> >>         #define MCBSP_DXR   (cpu_is_davinci_dm355() ? 0x01E04004 :
>> >> 0x01E02004)
>> >>         #define MCBSP_DRR   (cpu_is_davinci_dm355() ? 0x01E04000 :
>> >> 0x01E02000)
>> >>         like this
>> >>         #define MCBSP_DXR   (cpu_is_davinci_dm355() ?
>> >> 0x01E02004:0x01E04004)
>> >>         #define MCBSP_DRR   (cpu_is_davinci_dm355() ?
>> >> 0x01E02000:0x01E04000)
>> >>
>> >> I do it so , GOOD LUCK!
>> >>
>> >>
>> >> ----- Original Message -----
>> >> *From:* Azam Ansari <aazamans...@gmail.com>
>> >> *To:* Davinci-linux-open-source@linux.davincidsp.com ;
>> liuy...@covond.com
>> >> *Sent:* Tuesday, March 03, 2009 4:53 PM
>> >> *Subject:* Re: DM355 daughter sound card problem
>> >>
>> >> Please can you provide some more details....
>> >> Which clock to configure?
>> >> How to configure the clock?
>> >>
>> >> 2009/3/3 Kapil Pendse <kapil.pen...@gmail.com>
>> >>
>> >>> Hi All,
>> >>>
>> >>>
>> >>> I am developing driver for daughter sound card on DM355 by modifying
>> the
>> >>> AIC33 driver.
>> >>>
>> >>>
>> >>>
>> >>> I2C is working fine and the ioctl's are working fine but recording is
>> not
>> >>> working.
>> >>>
>> >>>
>> >>>
>> >>> There are 2 McBSP bus (McBSP1 and McBSP2) used for DMA transfer out of
>> >>> which McBSP1 is used for the sound daughter card.
>> >>>
>> >>> Audio format is I2S.
>> >>>
>> >>> Following is the configuration that I tried:
>> >>>
>> >>> #define DEFAULT_BITPERSAMPLE         256
>> >>>
>> >>> #define AUDIO_RATE_DEFAULT              8000
>> >>>
>> >>> #define    AUDIO_MCBSP              DAVINCI_MCBSP1
>> >>>
>> >>> McBSP1 is configured as slave for recording.
>> >>>
>> >>> Below is configuration for McBSP1:
>> >>>
>> >>>     .spcr2 = FREE | XINTM(3),
>> >>>     .spcr1 = RINTM(3),
>> >>>     .rcr2 = RWDLEN2(DAVINCI_MCBSP_WORD_16) | RDATDLY(1),
>> >>>     .rcr1 = RFRLEN1(1) | RWDLEN1(DAVINCI_MCBSP_WORD_16),
>> >>>     .xcr2 = XWDLEN2(DAVINCI_MCBSP_WORD_16) | XDATDLY(1) | XFIG,
>> >>>     .xcr1 = XFRLEN1(1) | XWDLEN1(DAVINCI_MCBSP_WORD_16),
>> >>>     .srgr1 = FWID(DEFAULT_BITPERSAMPLE - 1),
>> >>>     .srgr2 = FSGM | FPER(DEFAULT_BITPERSAMPLE * 2 - 1),
>> >>>     /* configure McBSP to be the I2S master */
>> >>>     .pcr0 = FSXM | FSRM | CLKXM | CLKRM | CLKXP | CLKRP,
>> >>>
>> >>>
>> >>>
>> >>> Daughter card is configured for 16bit word, 8000KHz and 256bits per
>> >>> sample.
>> >>>
>> >>>
>> >>> AIC33 uses McBSP2 while my audio daughter card uses McBSP1. Also, the
>> >>> default bits per sample for AIC33 is 16, I've changed it to 256.
>> >>>
>> >>>
>> >>> But I don't get any interrupt for recording.
>> >>>
>> >>> Please can anyone help to sort out the problem.
>> >>>
>> >>>
>> >>>
>> >>> Thanks,
>> >>>
>> >>> Azam.
>> >>>
>> >>> _______________________________________________
>> >>> Davinci-linux-open-source mailing list
>> >>> Davinci-linux-open-source@linux.davincidsp.com
>> >>>
>> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
>> >>>
>> >>>
>> >>
>> >>
>> >> --
>> >> "Happiness keeps u Sweet, Trials keep u Strong, Sorrow keeps u Human,
>> >> Failure Keeps u Humble, Success keeps u Glowing, But only GOD Keeps u
>> >> Going....."
>> >>
>> >>
>> >
>> >
>> > --
>> > "Happiness keeps u Sweet, Trials keep u Strong, Sorrow keeps u Human,
>> > Failure Keeps u Humble, Success keeps u Glowing, But only GOD Keeps u
>> > Going....."
>> >
>>
>>
>
>
> --
> "Happiness keeps u Sweet, Trials keep u Strong, Sorrow keeps u Human,
> Failure Keeps u Humble, Success keeps u Glowing, But only GOD Keeps u
> Going....."
>



-- 
"Happiness keeps u Sweet, Trials keep u Strong, Sorrow keeps u Human,
Failure Keeps u Humble, Success keeps u Glowing, But only GOD Keeps u
Going....."
_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to