issue with TWL3040 audio driver

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

 



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

-------------------------------------------------------DISCLAIMER------------------------------------------------------
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

[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