Hi Liu,

I am making driver for TechWell TW2835 chip. It is a audio/video mux.



2009/3/4 Liu Yebo <[email protected]>

>  Are you working with AIC33 on your daughter sound board ?
>
>
> ----- Original Message -----
> *From:* Azam Ansari <[email protected]>
> *To:* [email protected] ; [email protected]
> *Sent:* Wednesday, March 04, 2009 4:34 PM
> *Subject:* Re: DM355 daughter sound card problem
>
> Hi,
>
> I tried your suggestion. Still recording doesn't work. Anything else that I
> need to try?
>
> 2009/3/4 <[email protected]>
>
>>  Try the following to set  CLKX PIN as CLKS PIN for recoding.
>>              initial_config.srgr2 = initial_config.srgr2 | CLKSM;
>>              initial_config.pcr0 = (initial_config.pcr0 | SCLKME);
>>
>> SCLKME CLKSM     Input Clock For Sample Rate Generator
>> 0     0         Signal on CLKS pin
>> 0     1         ASP internal input clock
>> 1     0         Signal on CLKR pin
>> 1     1         Signal on CLKX pin
>>
>>  ----- Original Message -----
>> *From:* Azam Ansari <[email protected]>
>> *To:* [email protected] ; [email protected]
>>   *Sent:* Wednesday, March 04, 2009 2:28 PM
>> *Subject:* Re: DM355 daughter sound card problem
>>
>> DM355 is slave. below is configuration done for pcr0 and srgr2:
>>
>> pcr0 = CLKXP | CLKRP
>> srgr2 = FSGM | FPER(DEFAULT_BITPERSAMPLE * 2 - 1)
>>
>>
>> 2009/3/4 <[email protected]>
>>
>>>  Hi,
>>> Does DM355 is the master ?
>>> You should to do some settings for srgr2 and pcr0 because MCBSP0 has no
>>> CLKS PIN.
>>>
>>> SCLKME CLKSM     Input Clock For Sample Rate Generator
>>> 0     0         Signal on CLKS pin
>>> 0     1         ASP internal input clock
>>> 1     0         Signal on CLKR pin
>>> 1     1         Signal on CLKX pin
>>>
>>>
>>>
>>>  ----- Original Message -----
>>> *From:* Azam Ansari <[email protected]>
>>>   *To:* [email protected] ;
>>> [email protected]
>>> *Sent:* Wednesday, March 04, 2009 1:22 PM
>>> *Subject:* Re: DM355 daughter sound card problem
>>>
>>> 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 <[email protected]>
>>>
>>>>  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, <[email protected]> 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 <[email protected]>
>>>> >> *To:* [email protected] ;
>>>> [email protected]
>>>> >> *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 <[email protected]>
>>>> >>
>>>> >>> 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
>>>> >>> [email protected]
>>>> >>>
>>>> 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....."
>>
>>
>
>
> --
> "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
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to