Skip to content

Is there any way to enable/disable UAC1 when headset plugin/plugout? #5

@ranbochen

Description

@ranbochen

我在DIY一个USB手机底座,底座上有3.5寸耳机转接插口
底座USB上用UAC1获取手机音频,现在可以用耳机听音乐了
但是手机插上底座后,如果不插耳机,声音也是传给USB底座了,没法从手机中直接播放
有没有办法做到插上耳机后才让手机把音频数据传过来?
也就是插上耳机的时候,底座播放;没插耳机的时候就禁用UAC手机自己播放音频?
目前想到断开USB重连,重新发一个新的Descriptor可以实现,但这样断开重连会打乱其他interface的数据传输。不知道UAC层面是否有方法实现这个功能?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions