diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-07-20 01:06:42 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-07-20 01:06:42 +0000 |
commit | 8a5ab21a90c37d4c3232da2816121ec8aebd42d7 (patch) | |
tree | dba9653c5ab26933a0a29a0a19f754f14e96fe89 | |
parent | c26a4f924218c68094e3c5664b779542f59a5b3a (diff) | |
parent | 48771eb6d2805e71c0656128778907486334b6a6 (diff) | |
download | tinyalsa_new-android12L-d2-s4-release.tar.gz |
Snap for 7562406 from 48771eb6d2805e71c0656128778907486334b6a6 to sc-d2-releaseandroid-12.1.0_r26android-12.1.0_r25android-12.1.0_r24android-12.1.0_r23android-12.1.0_r18android-12.1.0_r17android-12.1.0_r16android-12.1.0_r15android-12.1.0_r14android-12.1.0_r13android-12.1.0_r12android12L-d2-s8-releaseandroid12L-d2-s7-releaseandroid12L-d2-s6-releaseandroid12L-d2-s5-releaseandroid12L-d2-s4-releaseandroid12L-d2-s3-releaseandroid12L-d2-s2-releaseandroid12L-d2-s1-releaseandroid12L-d2-release
Change-Id: I16c46ea1d9560b706255304c25f3bb1da2768cbb
-rw-r--r-- | src/pcm_hw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pcm_hw.c b/src/pcm_hw.c index 4792895..e5588a0 100644 --- a/src/pcm_hw.c +++ b/src/pcm_hw.c @@ -50,7 +50,7 @@ struct pcm_hw_data { /** Device number for the pcm device */ unsigned int device; /** File descriptor to the pcm device file node */ - unsigned int fd; + int fd; /** Pointer to the pcm node from snd card definiton */ struct snd_node *node; }; @@ -59,7 +59,7 @@ static void pcm_hw_close(void *data) { struct pcm_hw_data *hw_data = data; - if (hw_data->fd > 0) + if (hw_data->fd >= 0) close(hw_data->fd); free(hw_data); |