Driver support for Google voiceHAT soundcard.
authorPeter Malkin <petermalkin@google.com>
Mon, 27 Mar 2017 23:38:21 +0000 (16:38 -0700)
committerpopcornmix <popcornmix@gmail.com>
Mon, 13 May 2019 23:07:57 +0000 (00:07 +0100)
commit1545ebd3da300506da51af476c5b5914d5156267
treeb1a4e577c066804095452a5faf461b561d658f52
parentee5c2ea57a7d83fd4578ec14025fdcb37d9bbe97
Driver support for Google voiceHAT soundcard.

ASoC: googlevoicehat-codec: Use correct device when grabbing GPIO

The fixup for the VoiceHAT in 4.18 incorrectly tried to find the
sdmode GPIO pin under the card device, not the codec device.
This failed, and therefore caused the device probe to fail.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
ASoC: googlevoicehat-codec: Reformat for kernel coding standards

Fix all whitespace, indentation, and bracing errors.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
ASoC: googlevoicehat-codec: Make driver function structure const

Make voicehat_component_driver a const structure.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
ASoC: googlevoicehat-codec: Only convert from ms to jiffies once

Minor optimisation and allows to become checkpatch clean.
A msec value is read out of DT or from a define, and convert once to
jiffies, rather than every time that it is used.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
sound/soc/bcm/googlevoicehat-codec.c [new file with mode: 0644]