diff options
author | Jonathan Hunter <jonathanh@nvidia.com> | 2019-01-21 16:33:18 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2019-01-24 12:40:37 -0500 |
commit | 16d873be904463a2f837f54899cdcdce2f27afda (patch) | |
tree | 329dfb34b9990f0b77124893df6d78dd5a8502a3 /sound/pci/hda | |
parent | 8a155582bfb2347524430791dbf51ad9fbfda003 (diff) |
ALSA: hda/tegra: Silence error if switch name is not found
The sysfs entry 'hda_pcm_map' is only used for Android to describe
the mapping between display interfaces and hda interfaces.
With L4T due to the ordering which the display and hda devices are
probed the following errors message are seen on boot on the various
Jetson platforms ...
tegra-hda 3510000.hda: error in getting switch name for hda_pcm_id(3)
Even for Android the above error message is seen for any hda interfaces
that are not used on a given platform.
Ideally this should be fixed by ...
1. Disabling any unused hda interfaces in device-tree
2. Ensuring that the hda interfaces are probe deferred until all the
displays are registered.
Deferring the probe of the hda devices is a non-trivial to fix and
given that these error messages are not critical, silence them for now
by making them a dev_dbg() message.
Bug 200469524
Change-Id: I1d1f5b4e88d7a6f296010466805b85e44a15ae23
Signed-off-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2000402
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'sound/pci/hda')
-rw-r--r-- | sound/pci/hda/hda_tegra.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_tegra.c b/sound/pci/hda/hda_tegra.c index 0b18e5a2a..806a6e24b 100644 --- a/sound/pci/hda/hda_tegra.c +++ b/sound/pci/hda/hda_tegra.c | |||
@@ -721,7 +721,7 @@ static int hda_tegra_create_sysfs(struct hda_tegra *hda) | |||
721 | pcm_dev->dev_id = (apcm->codec->core.vendor_id) & 0xffff; | 721 | pcm_dev->dev_id = (apcm->codec->core.vendor_id) & 0xffff; |
722 | if (tegra_hda_get_switch_name(pcm_dev->dev_id, | 722 | if (tegra_hda_get_switch_name(pcm_dev->dev_id, |
723 | pcm_dev->switch_name) < 0) { | 723 | pcm_dev->switch_name) < 0) { |
724 | dev_info(hda->dev, "error in getting switch name" | 724 | dev_dbg(hda->dev, "error in getting switch name" |
725 | " for hda_pcm_id(%d)\n", apcm->info->device); | 725 | " for hda_pcm_id(%d)\n", apcm->info->device); |
726 | kobject_put(pcm_dev->kobj); | 726 | kobject_put(pcm_dev->kobj); |
727 | pcm_dev->kobj = NULL; | 727 | pcm_dev->kobj = NULL; |