13 Nov, 2009

1 commit


07 Nov, 2009

1 commit


04 Nov, 2009

1 commit

  • snd_soc_init_card() is always called as the last part of the CODEC probe
    function so we can factor it out into the core card setup rather than
    have each CODEC replicate the code to do the initialiastation. This will
    be required to support multiple CODECs per card.

    Signed-off-by: Mark Brown

    Mark Brown
     

06 Aug, 2009

2 commits

  • This patch is a workaround for the problem of several subsequent control
    statements not being applied correctly to the codec controller (modem).

    In order to follow the hook switch state change from handset to handsfree
    while
    in full duplex mode, two consecutive +VLS control commands were sent to the
    modem. The first one was M1 (microphone only), the seconds one was M1S1 (both
    microphone and speaker). As there was no real modem handshaking procedure
    implemented, neither in the codec nor in the machine driver part of the line
    discipline, the modem was having the second command missed.

    Since a possibility to switch to microphone only mode (and speaker only mode
    as well) seams of no value, I have modified the code to issue single M1S1
    command only for any of those cases.

    Tested on my Amstrad Delta.

    Signed-off-by: Janusz Krzysztofik
    Signed-off-by: Mark Brown

    Janusz Krzysztofik
     
  • This patch adds debugging statement that can help in tracing
    how the driver is trying to control the codec device.

    Signed-off-by: Janusz Krzysztofik
    Signed-off-by: Mark Brown

    Janusz Krzysztofik
     

01 Aug, 2009

1 commit

  • This corrected patch adds machine independent line discipline code, prevoiusly
    exsiting inside my Amstrad Delta ASoC machine dirver, to the Conexant CX20442
    codec driver. The code can be used as a standalone line discipline, or as a
    set of codec specific functions called from machine's line discipline
    callbacks. Anyway, the line discipline itself must be registered by a machine
    driver.

    Applies on top of the followup to my initial driver version:
    http://mailman.alsa-project.org/pipermail/alsa-devel/2009-July/019757.html

    Suggested by ASoC manintainer Mark Brown

    Signed-off-by: Janusz Krzysztofik
    Signed-off-by: Mark Brown

    Janusz Krzysztofik
     

29 Jul, 2009

1 commit


23 Jul, 2009

1 commit

  • This patch adds support for Conexant CX20442-11 voice modem codec, suitable
    for use by the ASoC board driver for Amstrad E3 (Delta) videophone. Related
    sound card driver will follow.

    This codec is an optional part of the Conexant SmartV three chip modem design.
    As such, documentation for its proprietary digital audio interface is not
    available. However, on Amstrad Delta board, thanks to Mark Underwood who
    created an initial, omap-alsa based sound driver a few years ago[1], the codec
    has been discovered to be accessible not only from the modem side, but also
    over the OMAP McBSP based CPU DAI. Thus, the driver can be used by any sound
    card that can access the codec DAI directly. The DAI configuration parameters
    (sample rate and format, number of channels) has been selected out empirically
    for best user experience.

    The codec analogue interface consists of two pairs of analogue I/O pins:
    speakerphone interface or telephone handset/headset interface. Furthermore, it
    seams to provide two operation modes for speakerphone I/O: standard and
    advanced, with automatic gain control and echo cancelation. Even if the codec
    control interface is unknown and not available, all those interfaces and modes
    can be selected over the modem chip using V.253 commands. The driver is able
    to issue necessary commands over a suitable hw_write function if provided by a
    sound card driver. Otherwise, the codec can be controlled over the modem from
    userspace while inactive.

    Even if nothig is known about the codec internal power management
    capabilities, DAPM widgets has been used to model the codec audio map.
    Automatically performed powering up/down of those virtual widgets results in
    corresponding V.253 commands being issued.

    Some driver features/oddities may be board specific, but I have no way to
    verify that with any board other than Amstrad Delta.

    [1] http://www.earth.li/pipermail/e3-hacking/2006-April/000481.html

    Created and tested against linux-2.6.31-rc3.
    Applies and works with linux-omap-2.6 commit
    7c5cb7862d32cb344be7831d466535d5255e35ac as well.

    Signed-off-by: Janusz Krzysztofik
    Signed-off-by: Mark Brown

    Janusz Krzysztofik