-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: ShivamKumarJha <[email protected]>
- Loading branch information
1 parent
4465be3
commit f5afc9d
Showing
2 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
* soc-dapm.c -- ALSA SoC Dynamic Audio Power Management | ||
* | ||
* Copyright 2005 Wolfson Microelectronics PLC. | ||
* Copyright (C) 2021 XiaoMi, Inc. | ||
* Author: Liam Girdwood <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
|
@@ -1164,6 +1165,10 @@ static __always_inline int is_connected_ep(struct snd_soc_dapm_widget *widget, | |
struct snd_soc_dapm_path *path; | ||
int con = 0; | ||
|
||
if (NULL == widget) { | ||
printk("is_connected_input_ep: widget is null"); | ||
return 0; | ||
} | ||
if (widget->endpoints[dir] >= 0) | ||
return widget->endpoints[dir]; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters