• Sameer Pujar's avatar
    ALSA: hda/tegra: sound card name from device tree · c0bde003
    Sameer Pujar authored
    A platform can have multiple sound cards for different audio paths.
    Following is the print seen duirng device boot for jetson-xavier,
      ALSA device list:
        #0: nvidia,p2972-0000 at 0x3518000 irq 17
    By looking at above, it is not very clear if the sound card is for
    HDA. It becomes confusing when platform has registered multiple cards,
    and platform model name is used for card.
    
    This patch uses "nvidia,model" property mentioned in hda device tree
    to get the card name. Since property is optional, legacy boards will
    continue to use "tegra-hda". Custom name can be passed wherever needed.
    This naming convention is conistent with the way sound cards are named
    in general.
    Signed-off-by: default avatarSameer Pujar <spujar@nvidia.com>
    Reviewed-by: default avatarJonathan Hunter <jonathanh@nvidia.com>
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    c0bde003
hda_tegra.c 14.7 KB