# US 2023/0418545 A1 · Electronic device and method for recognizing audio output device connected to usb type-c connector

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0418545 A1
- Document ID: US20230418545A1
- Status: Published application
- Kind: A1
- Application number: 18/243,431
- Filed: 2023-09-07
- Published: 2023-12-28
- Earliest claimed: 2020-02-10
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Wookwang LEE; Kyounghoon KIM; Hyungsik PARK; Dongrak SHIN; Youngjung YOON; Jaejin LEE
- Web page: https://patentgrep.com/patent/US20230418545A1

## CPC

- G06F 3/162: {Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs}
- G06F 3/165: {Management of the audio stream, e.g. setting of volume, audio stream path}
- G06F 9/4411: {Configuring for operating with peripheral devices; Loading of device drivers}
- G06F 13/102: {where the program performs an interfacing function, e.g. device driver (G06F13/105 takes precedence; contention policies within device drivers G06F9/4881; scheduling within device drivers G06F9/52)}
- G06F 13/4081: {Live connection to bus, e.g. hot-plugging (current or voltage limitation during live insertion H02H9/004)}
- G06F 13/4282: {on a serial bus, e.g. I2C bus, SPI bus (on daisy chain buses G06F13/4247)}
- H04R 3/00: Circuits for transducers (arrangements for producing a reverberation or echo sound G10K15/08; amplifiers H03F)
- G06F 2213/0042: Universal serial bus [USB]
- H04R 2420/05: Detection of connection of loudspeakers or headphones to amplifiers
- H04R 2420/09: Applications of special connectors, e.g. USB, XLR, in loudspeakers, microphones or headphones
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04R: LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; ELECTRIC HEARING AIDS; PUBLIC ADDRESS SYSTEMS (producing sounds with frequency not determined by supply frequency G10K)

## Abstract

Embodiments of an electronic device are disclosed. The electronic device may include a USB Type-C connector including at least one configuration channel (CC) pin and a processor operatively connected to the USB Type-C connector. The processor may be configured to: obtain first information of a connected audio output device by using a USB driver; transmit the first information and/or audio card information of the audio output device to an audio framework through a USB framework; control the audio framework to access an interface corresponding to the audio card information; and activate, when at least a portion of second information of the audio output device is obtained through the USB driver while accessing the interface, the interface by transmitting the at least a portion of the second information to the audio framework through the USB framework. Various additional embodiments in addition to the disclosed embodiments are possible.

## Claims

### Claim 1

An electronic device comprising:
a connector;
a processor operatively connected to the connector; and
a memory storing instructions that, when executed by the processor, cause the electronic device to:
obtain, in response to connection of an audio output device to the connector, first information related to identification information of the audio output device;
identify whether the audio output device corresponding to the obtained first information exists in the memory;
obtain, if the audio output device corresponding to the first information exists in the memory, second information related to an attribute of the audio output device and audio card information corresponding to the audio output device from the memory;
activate, based on the obtaining the second information and audio card information from the memory, an interface corresponding to the audio card information; and
transmit an audio signal to the audio output device through the activated interface.

### Claim 2 (depends on 1)

The electronic device of claim 1, wherein the first information related to the identification information of the audio output device includes a vendor identification (VID) indicating manufacturer information of the audio output device and a product identification (PID) indicating a product.

### Claim 3 (depends on 1)

The electronic device of claim 1, wherein the second information related to the attribute of the audio output device includes at least one of presence of a speaker, presence of a microphone, number of interfaces supported by the audio output device, sample rate for each interface, bit rate, channel information, or endpoint.

### Claim 4 (depends on 1)

The electronic device of claim 1, wherein the memory stores the instructions that, when executed by the processor, cause the electronic device to:
obtain, if the audio output device corresponding to the first information does not exist in the memory, the audio card information of the audio output device by using a USB driver;
transmit the first information and the audio card information of the audio output device to an audio framework through a USB framework;
control the audio framework to access the interface based on the first information and the audio card information of the audio output device; and
activate, when at least a portion of second information related to the attribute of the audio output device is obtained through the USB driver while accessing the interface, the interface by transmitting the at least a portion of the second information to the audio framework through the USB framework.

### Claim 5 (depends on 4)

The electronic device of claim 4, further comprising a speaker; and
wherein the memory stores the instructions that, when executed by the processor, cause the electronic device to:
detect connection of the audio output device to the connector while outputting the audio signal through the speaker.

### Claim 6 (depends on 5)

The electronic device of claim 5, wherein the memory stores the instructions that, when executed by the processor, cause the electronic device to:
block an output of the speaker after transmitting the first information and the audio card information to the audio framework through the USB framework.

### Claim 7 (depends on 6)

The electronic device of claim 6, wherein the memory stores the instructions that, when executed by the processor, cause the electronic device to: unblock the blocked output of the speaker in response to activation of the interface.

### Claim 8 (depends on 4)

The electronic device of claim 4, wherein the memory stores the instructions that, when executed by the processor, cause the electronic device to:
activate clock boosting upon connection of the audio output device to the connector.

### Claim 9 (depends on 8)

The electronic device of claim 8, wherein the memory stores the instructions that, when executed by the processor, cause the electronic device to: deactivate activated clock boosting upon activation of the interface.

### Claim 10 (depends on 4)

The electronic device of claim 4, wherein the connector comprising a USB Type C connector including at least one configuration channel (CC) pin.

### Claim 11 (depends on 10)

The electronic device of claim 10, wherein the memory stores the instructions that, when executed by the processor, cause the electronic device to:
set the electronic device to operate in a USB host mode;
check, upon connection of the audio output device to the connector, whether a resistance value detected at the CC pin is 5.1 k; and
obtain the first information of the audio output device while maintaining the USB host mode in response to the resistance value detected at the CC pin being 5.1 k.

### Claim 12

A method for an electronic device to recognize an audio output device, the method comprising:
obtaining first information related to identification information of the audio output device in response to connection of the audio output device to a connector;
identifying whether the audio output device corresponding to the obtained first information exists in a memory;
obtaining, if the audio output device corresponding to the first information exists in the memory, second information related to an attribute of the audio output device and audio card information corresponding to the audio output device from the memory;
activating, based on the obtaining the second information and audio card information from the memory, an interface corresponding to the audio card information; and
transmitting an audio signal to the audio output device through the activated interface.

### Claim 13 (depends on 12)

The method of claim 12, wherein the first information related to the identification information of the audio output device includes a vendor identification (VID) indicating manufacturer information of the audio output device and a product identification (PID) indicating a product, and
wherein the second information related to the attribute of the audio output device includes at least one of presence of a speaker, presence of a microphone, number of interfaces supported by the audio output device, sample rate for each interface, bit rate, channel information, or endpoint.

### Claim 14 (depends on 12)

The method of claim 12, further comprising:
obtaining, if the audio output device corresponding to the first information does not exist in the memory, the audio card information of the audio output device by using a USB driver;
transmitting the first information and the audio card information of the audio output device to an audio framework through a USB framework;
controlling the audio framework to access the interface based on the first information and the audio card information of the audio output device; and
activating, when at least a portion of second information related to the attribute of the audio output device is obtained through the USB driver while accessing the interface, the interface by transmitting the at least a portion of the second information to the audio framework through the USB framework.

### Claim 15 (depends on 14)

The method of claim 14, further comprising:
outputting the audio signal through a speaker of the electronic device before detecting connection of the audio output device to the connector.

### Claim 16 (depends on 15)

The method of claim 15, further comprising:
blocking an output of the speaker after transmitting the first information and the audio card information to the audio framework through the USB framework.

### Claim 17 (depends on 16)

The method of claim 16, further comprising:
unblocking the blocked output of the speaker upon activation of the interface.

### Claim 18 (depends on 14)

The method of claim 14, further comprising:
activating clock boosting in response to connection of the audio output device to the connector.

### Claim 19 (depends on 18)

The method of claim 18, further comprising:
deactivating activated clock boosting in response to activation of the interface.

### Claim 20 (depends on 14)

The method of claim 14, wherein the connector comprising a USB Type C connector including at least one configuration channel (CC) pin,
further comprising:
setting the electronic device to operate in a USB host mode; and wherein obtaining first information of the audio output device comprises:
checking whether a resistance value detected at the CC pin is 5.1 k; and
obtaining the first information of the audio output device while maintaining the USB host mode in response to the resistance value detected at the CC pin being 5.1 k.
