Загрузка данных


static struct snd_kcontrol_new hdmi_codec_controls[] = {
#if 0
	{
		.access = SNDRV_CTL_ELEM_ACCESS_READ,
		.iface = SNDRV_CTL_ELEM_IFACE_PCM,
		.name = SNDRV_CTL_NAME_IEC958("", PLAYBACK, MASK),
		.info = hdmi_codec_iec958_info,
		.get = hdmi_codec_iec958_mask_get,
	},
	{
		.iface = SNDRV_CTL_ELEM_IFACE_PCM,
		.name = SNDRV_CTL_NAME_IEC958("", PLAYBACK, DEFAULT),
		.info = hdmi_codec_iec958_info,
		.get = hdmi_codec_iec958_default_get,
		.put = hdmi_codec_iec958_default_put,
	},
#endif
	{
		.access	= (SNDRV_CTL_ELEM_ACCESS_READ |
			   SNDRV_CTL_ELEM_ACCESS_VOLATILE),
		.iface	= SNDRV_CTL_ELEM_IFACE_PCM,
		.name	= "ELD",
		.info	= hdmi_eld_ctl_info,
		.get	= hdmi_eld_ctl_get,
	},
};

cat /proc/asound/cards 
 0 [lt9611audio    ]: simple-card - lt9611-audio
                      lt9611-audio
 1 [micfilaudio    ]: micfil-audio - micfil-audio
                      micfil-audio
 2 [btscoaudio     ]: simple-card - bt-sco-audio
                      bt-sco-audio

gst-launch-1.0 audiotestsrc freq=1000 ! audioresample ! audioconvert ! audio/x-raw, rate=8000, channels=2, format=S16LE 
! alsasink device=hw:lt9611audio

root@imx95-19x19-lpddr5-evk:~# gst-launch-1.0 audiotestsrc freq=1000 ! audioresample ! audioconvert ! audio/x-raw, rate=8000, channels=2, format=S16LE 
! alsasink device=hw:lt9611audio
Setting pipeline to PAUSED ...
ERROR: from element /GstPipeline:pipeline0/GstAlsaSink:alsasink0: Could not open audio device for playback.
Additional debug info:
/usr/src/debug/gstreamer1.0-plugins-base/1.26.0.imx/ext/alsa/gstalsasink.c(961): gst_alsasink_open (): /GstPipeline:pipeline0/GstAlsaSink:alsasink0:
Playback open error on device 'hw:lt9611audio': Invalid argument
ERROR: pipeline doesn't want to preroll.
Failed to set pipeline to PAUSED.
Setting pipeline to NULL ...
Freeing pipeline ...
root@imx95-19x19-lpddr5-evk:~# 
root@imx95-19x19-lpddr5-evk:~# 
root@imx95-19x19-lpddr5-evk:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: lt9611audio [lt9611-audio], device 0: 42680000.xcvr-spdif-hifi spdif-hifi-0 [42680000.xcvr-spdif-hifi spdif-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: btscoaudio [bt-sco-audio], device 0: sai-tx-rx-bt-sco-pcm-wb bt-sco-pcm-wb-0 [sai-tx-rx-bt-sco-pcm-wb bt-sco-pcm-wb-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@imx95-19x19-lpddr5-evk:~# aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pipewire
    PipeWire Sound Server
sysdefault:CARD=lt9611audio
    lt9611-audio, 42680000.xcvr-spdif-hifi spdif-hifi-0
    Default Audio Device
sysdefault:CARD=btscoaudio
    bt-sco-audio, sai-tx-rx-bt-sco-pcm-wb bt-sco-pcm-wb-0
    Default Audio Device