All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/2] ASoC/tda998x: Fix reporting of nonexistent capture streams
@ 2022-11-30 18:46 Mark Brown
  2022-11-30 18:46 ` [PATCH v1 1/2] ASoC: hdmi-codec: Allow playback and capture to be disabled Mark Brown
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Mark Brown @ 2022-11-30 18:46 UTC (permalink / raw)
  To: Liam Girdwood, Jaroslav Kysela, Russell King
  Cc: alsa-devel, Mark Brown, dri-devel

The recently added pcm-test selftest has pointed out that systems with
the tda998x driver end up advertising that they support capture when in
reality as far as I can see the tda998x devices are transmit only.  The
DAIs registered through hdmi-codec are bidirectional, meaning that for
I2S systems when combined with a typical bidrectional CPU DAI the
overall capability of the PCM is bidirectional.  In most cases the I2S
links will clock OK but no useful audio will be returned which isn't so
bad but we should still not advertise the useless capability, and some
systems may notice problems for example due to pinmux management.

This is happening due to the hdmi-codec helpers not providing any
mechanism for indicating unidirectional audio so add one and use it in
the tda998x driver.  It is likely other hdmi-codec users are also
affected but I don't have those systems to hand.

Mark Brown (2):
  ASoC: hdmi-codec: Allow playback and capture to be disabled
  drm: tda99x: Don't advertise non-existent capture support

 drivers/gpu/drm/i2c/tda998x_drv.c |  2 ++
 include/sound/hdmi-codec.h        |  4 ++++
 sound/soc/codecs/hdmi-codec.c     | 30 +++++++++++++++++++++++++-----
 3 files changed, 31 insertions(+), 5 deletions(-)


base-commit: f0c4d9fc9cc9462659728d168387191387e903cc
-- 
2.30.2


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-12-04 17:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-30 18:46 [PATCH v1 0/2] ASoC/tda998x: Fix reporting of nonexistent capture streams Mark Brown
2022-11-30 18:46 ` [PATCH v1 1/2] ASoC: hdmi-codec: Allow playback and capture to be disabled Mark Brown
2022-11-30 18:46 ` [PATCH v1 2/2] drm: tda99x: Don't advertise non-existent capture support Mark Brown
2022-12-02 13:55 ` [PATCH v1 0/2] ASoC/tda998x: Fix reporting of nonexistent capture streams Russell King (Oracle)
2022-12-02 13:55   ` Russell King (Oracle)
2022-12-04 17:04 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.