audio: Fix HDMI playback by checking cardname
On AM62X and AM62PX, we have 2 possible sound cards:
- The default one, for jack playback/capture
- A HDMI specific one, which only supports playback
As per the documentation [1], these sound cards are mutually exclusive.
Whenever we use the HDMI sound card, the alsa mixer names changes. We can no longer do volume control and the routing knobs don't exist.
Because of this, the ModulePrimary::createOutputStream()
fails when
calling primary::PrimaryMixer::getInstance().setVolumes({1.0f, 1.0f})
.
Check our sound card name. If it is HDMI, stub all the normal mixer control operations.
This fixes playback over HDMI.
[1] https://software-dl.ti.com/processor-sdk-linux/esd/AM62X/10_00_07_04/exports/docs/linux/How_to_Guides/Target/How_to_playback_audio_over_HDMI.html Signed-off-by: Mattijs Korpershoek mkorpershoek@baylibre.com
Edited by Mattijs Korpershoek