/** *structsnd_soc_usb_device-SoCUSBrepresentationofaUSBsounddevice *@card_idx:soundcardindexassociatedwithUSBdevice *@chip_idx:USBsoundchiparrayindex *@cpcm_idx:capturePCMindexarrayassociatedwithUSBdevice *@ppcm_idx:playbackPCMindexarrayassociatedwithUSBdevice *@num_capture:numberofcapturestreams *@num_playback:numberofplaybackstreams *@list:listheadforSoCUSBdevices
**/ struct snd_soc_usb_device { int card_idx; int chip_idx;
/* PCM index arrays */ unsignedint *cpcm_idx; /* TODO: capture path is not tested yet */ unsignedint *ppcm_idx; int num_capture; /* TODO: capture path is not tested yet */ int num_playback;
struct list_head list;
};
/** *structsnd_soc_usb-representationofaSoCUSBbackendentity *@list:listheadforSNDSOCstructlist *@component:referencetoASoCcomponent *@connection_status_cb:callbacktonotifyconnectionevents *@update_offload_route_info:callbacktofetchmappedASoCcardandpcm *devicepair.Thisisunrelatedtotheconcept *ofDAPMroute.The"route"argumentcarries *anarrayusedforakcontroloutputforeither *thecardorpcmindex."path"determinesthe *whichentrytolookfor.(iemappedcardorpcm) *@priv_data:driverdata
**/ struct snd_soc_usb { struct list_head list; struct snd_soc_component *component; int (*connection_status_cb)(struct snd_soc_usb *usb, struct snd_soc_usb_device *sdev, bool connected); int (*update_offload_route_info)(struct snd_soc_component *component, int card, int pcm, int direction, enum snd_soc_usb_kctl path, long *route); void *priv_data;
};
#if IS_ENABLED(CONFIG_SND_SOC_USB) int snd_soc_usb_find_supported_format(int card_idx, struct snd_pcm_hw_params *params, int direction);
int snd_soc_usb_connect(struct device *usbdev, struct snd_soc_usb_device *sdev); int snd_soc_usb_disconnect(struct device *usbdev, struct snd_soc_usb_device *sdev); void *snd_soc_usb_find_priv_data(struct device *usbdev);
int snd_soc_usb_setup_offload_jack(struct snd_soc_component *component, struct snd_soc_jack *jack); int snd_soc_usb_update_offload_route(struct device *dev, int card, int pcm, int direction, enum snd_soc_usb_kctl path, long *route);
staticint snd_soc_usb_update_offload_route(struct device *dev, int card, int pcm, int direction, enum snd_soc_usb_kctl path, long *route)
{ return -ENODEV;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.