RE: issue with TWL3040 audio driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 
Arun,

	We have tested mcbsp with alsa framework. 
your configuration seems correct. 
As far as configuratiosn are concerned, you are trying to play 16 bit audio data in stereo mode.
As I havent seen the twl4030 audio code, I cannot comment on that.

Regards
Chandra Shekhar
 
> -----Original Message-----
> From: linux-omap-owner@xxxxxxxxxxxxxxx 
> [mailto:linux-omap-owner@xxxxxxxxxxxxxxx] On Behalf Of Arun K S
> Sent: Wednesday, January 16, 2008 9:07 PM
> To: linux-omap@xxxxxxxxxxxxxxx
> Subject: issue with TWL3040 audio driver
> 
> Hi,
> 
>         I am working on OSS audio dirver on linux-2.6.22 with 
> OMAP2430 based EVM from Mistral. I used the new mcbsp dirver  
> driver from 
> http://marc.info/?l=linux-omap&m=119816615115863&w=2. TWL4030 
> is my codec, which is a master. I have changed my twl4030 
> codec driver accordingly and got the audio working, but the 
> audio play is not continuous. Audio breaks (and there is some 
> noise). Has anybody on the list faced this issue. Please see 
> if you can help me with some suggestions.
> 
> I am also wondering if there are any issues due to the new 
> mcbsp driver.
> 
> The values assigned for mcbsp structures are :
> 
> static struct omap_mcbsp_cfg_param plat_omap_mcbsp_config_rx_param = {
> 
> #ifdef TWL_MASTER
>         .clk_mode               = OMAP_MCBSP_CLKRXSRC_EXTERNAL,
>         .fsync_src              = OMAP_MCBSP_RXFSYNC_EXTERNAL,
> 
> #else
>         .clk_mode               = OMAP_MCBSP_CLKRXSRC_INTERNAL,
>         .fsync_src              = OMAP_MCBSP_RXFSYNC_INTERNAL, #endif
>         .fs_polarity            = OMAP_MCBSP_FS_ACTIVE_HIGH,
>         .clk_polarity           = OMAP_MCBSP_CLKR_POLARITY_RISING,
>         .phase                  = OMAP_MCBSP_FRAME_SINGLEPHASE,
>         .data_delay             = OMAP_MCBSP_DATADELAY1,
>         .reverse_compand        = OMAP_MCBSP_MSBFIRST,
>         .word_length1           = OMAP_MCBSP_WORD_32,
>         .frame_length1          = OMAP_MCBSP_FRAMELEN_N(1),
>         .justification          = OMAP_MCBSP_RJUST_ZEROMSB };
> 
> static struct omap_mcbsp_cfg_param 
> plat_omap_mcbsp_config_tx_param = { 
#ifdef TWL_MASTER
>         .clk_mode               = OMAP_MCBSP_CLKTXSRC_EXTERNAL,
>         .fsync_src              = OMAP_MCBSP_TXFSYNC_EXTERNAL,
 #else
>         .clk_mode               = OMAP_MCBSP_CLKTXSRC_INTERNAL,
>         .fsync_src              = OMAP_MCBSP_TXFSYNC_INTERNAL,
 #endif
>         .fs_polarity            = OMAP_MCBSP_FS_ACTIVE_HIGH,
>         .clk_polarity           = OMAP_MCBSP_CLKX_POLARITY_RISING,
>         .phase                  = OMAP_MCBSP_FRAME_SINGLEPHASE,
>         .data_delay             = OMAP_MCBSP_DATADELAY1,
>         .reverse_compand        = OMAP_MCBSP_MSBFIRST,
>         .word_length1           = OMAP_MCBSP_WORD_32,
>         .frame_length1          = OMAP_MCBSP_FRAMELEN_N(1),
>         .justification          = OMAP_MCBSP_RJUST_ZEROMSB, };
> 
> static struct omap_mcbsp_srg_fsg_cfg plat_omap_mcbsp_srg_fsg_cfg = {
> 
>         .srg_src                = OMAP_MCBSP_SRGCLKSRC_CLKX, 
> #ifdef TWL_MASTER
>         .sync_mode              = OMAP_MCBSP_SRG_FREERUNNING, #elif
>         .sync_mode              = OMAP_MCBSP_SRG_RUNNING, #endif
>         .polarity               = OMAP_MCBSP_CLKX_POLARITY_FALLING,
>         .sample_rate            = AUDIO_RATE_DEFAULT,
>         .bits_per_sample        = AUDIO_SAMPLE_DATA_WIDTH_16 };
> 
> static struct omap_mcbsp_dma_transfer_params 
> plat_omap_mcbsp_dma_tx_transfer_params = {
>         .skip_alt               = OMAP_MCBSP_SKIP_NONE,
>         .auto_reset             = OMAP_MCBSP_AUTO_XRST,
>         .callback               = twl4030_mcbsp_dma_cb,
>         .word_length1           = OMAP_MCBSP_WORD_32 }; 
> static struct omap_mcbsp_dma_transfer_params 
> plat_omap_mcbsp_dma_rx_transfer_params = {
>         .skip_alt               = OMAP_MCBSP_SKIP_NONE,
>         .auto_reset             = OMAP_MCBSP_AUTO_RRST,
>         .callback               = twl4030_mcbsp_dma_cb,
>         .word_length1           = OMAP_MCBSP_WORD_32 };
> 
> Thank in advance
> Arun K S
> 
> -------------------------------------------------------DISCLAI
> MER------------------------------------------------------
> The information transmitted herewith is confidential and 
> proprietary information intended only for use by the 
> individual or entity to which it is addressed. If the reader 
> of this message is not the intended recipient, you are hereby 
> notified that any review, retransmission, dissemination, 
> distribution, copying or other use of, or taking of any 
> action in reliance upon this information is strictly 
> prohibited. If you have received this communication in error, 
> please contact the sender and delete the material from your computer.
> --------------------------------------------------------------
> ------------------------------------------------------------------
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe 
> linux-omap" in the body of a message to 
> majordomo@xxxxxxxxxxxxxxx More majordomo info at  
> http://vger.kernel.org/majordomo-info.html
> 
> 

-
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux