[Letux-kernel] sound cards for GSM, FM. Bluetooth renamed

H. Nikolaus Schaller hns at goldelico.com
Thu Aug 23 23:46:34 CEST 2018


Hi,
I will rename the sound cards in 4.19-rc1 to
"Telephony", "Bluetooth" and "Tuner" because
this is what their function is, independent
of chip names.

The nice side-effect is that we can use the same
sound card names in the Pyra device tree, even
if there are other codecs (gtm601, none for
FM, WL183x for Bluetooth).

This is how it will look:

root at letux:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: gta04 [gta04], device 0: TWL4030 HiFi twl4030-hifi-0 []
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 1: Telephony [Telephony], device 0: 49026000.mcbsp-gtm601 gtm601-0 []
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 2: Bluetooth [Bluetooth], device 0: 49024000.mcbsp-W2CBW003 W2CBW003-0 []
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 3: Tuner [Tuner], device 0: 48074000.mcbsp-Si47xx Si47xx-0 []
 Subdevices: 1/1
 Subdevice #0: subdevice #0
root at letux:~#

These sound cards can be selected by aplay/arecord through

-Ddefault:CARD=${NAME}

e.g.

arecord -Ddefault:CARD=Tuner -c2 -fS16_LE -r48000 >file
arecord -Ddefault:CARD=Telephony -fS16_LE -r8000 >file

There are two things to consider:
a) state files are tied to the sound card name and have to be rebuilt/reinstalled
b) QtMoko sound will be broken when using this kernel (so we have to patch QtMoko)

BR,
Nikolaus



More information about the Letux-kernel mailing list