-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic HDMI device selection #43
Conversation
2b0e5b4
to
772ee74
Compare
} | ||
} | ||
ALOGV("%s exit",__func__); | ||
return DEFAULT_DEVICE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be better to return -1 from here, and hardcode the default from the caller ?
hdmi/tinyaudio_hw.c
Outdated
ALOGV("ctl_name %s",ctl_name); | ||
ctl = mixer_get_ctl_by_name(mixer, ctl_name); | ||
if(ctl) { | ||
mixer_type = mixer_ctl_get_type(ctl); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since these variables are unused, should we remove these ?
hdmi/tinyaudio_hw.c
Outdated
return -1; | ||
} | ||
for(i=0; i < MAX_HDMI_DEVICES; i++ ) { | ||
char ctl_name[100] = "HDMI/DP,pcm="; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we do this instead :
sprintf(ctl_name, "HDMI/DP,pcm=%d Jack", i);
39df263
to
87ca340
Compare
34c29b8
to
680dbf9
Compare
3866bf7
to
fc55db6
Compare
Check for the HDMI device status and assign the device id Tracked-On: OAM-98156
fc55db6
to
91206b8
Compare
Check for the HDMI device status
and assign the device id
Tracked-On: