Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1381603

[PATCH v2 0/3] Add support simple-card parse jack detection via external codec

From Xing Zheng <zhengxing@rock-chips.com>
Newsgroups linux.kernel
Subject [PATCH v2 0/3] Add support simple-card parse jack detection via external codec
Date 2016-04-18 13:30 +0200
Message-ID <rpfxo-4Gt-15@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,
    In most cases, many codecs already supports jack detection,
previouslly, we need to create a customized machine driver every time.

    In my opinion, the codec fill the detect_jack explicitly and tell
sound framework it supports the jack detection, the simple-card is
able to parse the dts file and call the export function to initialize
the jace detection via the codec.

    I think that it will bring better flexibility.

    Thanks.

Changes in v1:
- clean up the commit message and notes

Xing Zheng (3):
  ASoC: jack: Add an export of a function that calls the codec jack
    detection
  ASoC: simple-card: Add support call the codec jack detection after
    parse dts
  ASoC: da7219: Add detect_jack callback in the snd_soc_codec_driver

 .../devicetree/bindings/sound/simple-card.txt      |   17 +++
 include/sound/soc.h                                |    7 ++
 sound/soc/codecs/da7219.c                          |    2 +
 sound/soc/generic/simple-card.c                    |  126 +++++++++++++++++++-
 sound/soc/soc-jack.c                               |   17 +++
 5 files changed, 166 insertions(+), 3 deletions(-)

-- 
1.7.9.5

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/3] Add support simple-card parse jack detection via external codec Xing Zheng <zhengxing@rock-chips.com> - 2016-04-18 13:30 +0200
  [PATCH v2 2/3] ASoC: simple-card: Add support call the codec jack detection after parse dts Xing Zheng <zhengxing@rock-chips.com> - 2016-04-18 13:30 +0200
  [PATCH v2 1/3] ASoC: jack: Add an export of a function that calls the codec jack detection Xing Zheng <zhengxing@rock-chips.com> - 2016-04-18 13:30 +0200

csiph-web