File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -255,6 +255,7 @@ static int open_dev(struct cras_iodev* iodev) {
255
255
struct alsa_io * aio = (struct alsa_io * )iodev ;
256
256
const char * pcm_name = NULL ;
257
257
258
+ aio -> common .poll_fd = -1 ;
258
259
/* For DependentPCM usage in HiFi.conf only.
259
260
* Normally the pcm name should come from the alsa_io device, not from nodes.
260
261
*/
@@ -343,7 +344,6 @@ static int configure_dev(struct cras_iodev* iodev) {
343
344
// Initialize device settings.
344
345
init_device_settings (aio );
345
346
346
- aio -> common .poll_fd = -1 ;
347
347
if (iodev -> active_node -> type == CRAS_NODE_TYPE_HOTWORD ) {
348
348
struct pollfd * ufds ;
349
349
int count , i ;
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ static int usb_open_dev(struct cras_iodev* iodev) {
117
117
(struct alsa_common_node * )aio -> common .base .active_node ;
118
118
const char * pcm_name = anode -> pcm_name ;
119
119
120
+ aio -> common .poll_fd = -1 ;
120
121
audio_peripheral_info (aio -> common .vendor_id , aio -> common .product_id ,
121
122
CRAS_NODE_TYPE_USB );
122
123
@@ -178,8 +179,6 @@ static int usb_configure_dev(struct cras_iodev* iodev) {
178
179
// Initialize device settings.
179
180
usb_init_device_settings (aio );
180
181
181
- aio -> common .poll_fd = -1 ;
182
-
183
182
// Capture starts right away, playback will wait for samples.
184
183
if (aio -> common .alsa_stream == SND_PCM_STREAM_CAPTURE ) {
185
184
rc = cras_alsa_pcm_start (aio -> common .handle );
You can’t perform that action at this time.
0 commit comments