diff options
author | Emil Abildgaard Svendsen <EMAS@bang-olufsen.dk> | 2023-03-09 07:54:41 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-03-09 14:45:31 +0100 |
commit | e041a2a550582106cba6a7c862c90dfc2ad14492 (patch) | |
tree | a90ee93a18794a81d3b719fbcd87d8ddcaab2714 /net/ipv4/fou_nl.h | |
parent | ASoC: da7219: Initialize jack_det_mutex (diff) | |
download | linux-e041a2a550582106cba6a7c862c90dfc2ad14492.tar.xz linux-e041a2a550582106cba6a7c862c90dfc2ad14492.zip |
ASoC: hdmi-codec: only startup/shutdown on supported streams
Currently only one stream is supported. This isn't usally a problem
until you have a multi codec audio card. Because the audio card will run
startup and shutdown on both capture and playback streams. So if your
hdmi-codec only support either playback or capture. Then ALSA can't open
for playback and capture.
This patch will ignore if startup and shutdown are called with a non
supported stream. Thus, allowing an audio card like this:
+-+
cpu1 <--@-| |-> codec1 (HDMI-CODEC)
| |<- codec2 (NOT HDMI-CODEC)
+-+
Signed-off-by: Emil Svendsen <emas@bang-olufsen.dk>
Link: https://lore.kernel.org/r/20230309065432.4150700-2-emas@bang-olufsen.dk
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'net/ipv4/fou_nl.h')
0 files changed, 0 insertions, 0 deletions