alsa-lib: Add htimestamp operation in plugin file
PATCH 1/1 alsa-lib: Add htimestamp operation in plugin file
From: Andreas Pape <[email protected]>
PCM operation htimestamp is not implemented in plugin file. Calling snd_pcm_htimestamp() on a plugin file crashes. This scenario is considered now.
---
src/pcm/pcm_file.c +1 -0
@@ -698,6 +698,7 @@ .readi = snd_pcm_file_readi, .readn = snd_pcm_file_readn, .avail_update = snd_pcm_generic_avail_update, + .htimestamp = snd_pcm_generic_htimestamp, .mmap_commit = snd_pcm_file_mmap_commit, .poll_descriptors_count = snd_pcm_generic_poll_descriptors_count, .poll_descriptors = snd_pcm_generic_poll_descriptors,
Takashi Iwai
AppliedQuoted 9 lines · On Fri, 25 Nov 2016 12:36:37 +0100, [email protected] wrote:
From: Andreas Pape <[email protected]>
PCM operation htimestamp is not implemented in plugin file. Calling
snd_pcm_htimestamp()on a plugin file crashes. This scenario is considered now.Signed-off-by Andreas Pape <[email protected]>Signed-off-by Joshua Frkuska <[email protected]>
Applied, thanks.
Takashi
Quoted 13 lines
---
src/pcm/pcm_file.c +1
-0@@ -698,6 +698,7 @@ .readi = snd_pcm_file_readi, .readn = snd_pcm_file_readn, .avail_update = snd_pcm_generic_avail_update, + .htimestamp = snd_pcm_generic_htimestamp, .mmap_commit = snd_pcm_file_mmap_commit, .poll_descriptors_count = snd_pcm_generic_poll_descriptors_count, .poll_descriptors = snd_pcm_generic_poll_descriptors,
Hi,
Quoted 19 lines · Takashi Iwai
Quoted 9 lines · On Fri, 25 Nov 2016 12:36:37 +0100, [email protected] wrote:
From: Andreas Pape <[email protected]>
PCM operation htimestamp is not implemented in plugin file. Calling
snd_pcm_htimestamp()on a plugin file crashes. This scenario is considered now.Signed-off-by Andreas Pape <[email protected]>Signed-off-by Joshua Frkuska <[email protected]>Applied, thanks.
Takashi
Quoted 2 lines
---
Quoted 10 lines
src/pcm/pcm_file.c line 704
Quoted 10 lines
src/pcm/pcm_file.c +1
-0@@ -698,6 +698,7 @@ .readi = snd_pcm_file_readi, .readn = snd_pcm_file_readn, .avail_update = snd_pcm_generic_avail_update, + .htimestamp = snd_pcm_generic_htimestamp, .mmap_commit = snd_pcm_file_mmap_commit, .poll_descriptors_count = snd_pcm_generic_poll_descriptors_count, .poll_descriptors = snd_pcm_generic_poll_descriptors,
I oppose this application, because designated initialization is already applied to the .htimestamp member.
...
.poll_descriptors = snd_pcm_generic_poll_descriptors, .poll_revents = snd_pcm_generic_poll_revents, .htimestamp = snd_pcm_generic_htimestamp,
};
Please see below commit:
pcm:file: add the missing htimestamp callback
http://git.alsa-project.org/?p=alsa-lib.git;a=commit;h=68ae0c72a53704d416fe77d4c612d1f88d791e02
This mistake causes below warning with -Woverride-init option. pcm_file.c:714:16: warning: initialized field overwritten [-Woverride-init]
.htimestamp = snd_pcm_generic_real_htimestamp,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I guess mentor/ADIT developers works for former snapshot, then missed to rebase to current mainline of alsa-lib. I suggest them to di re-evaluation with current mainline without this patch.
Regards
Takashi Sakamoto
Quoted 47 lines · Takashi Sakamoto
Hi,
Quoted 19 lines · Takashi Iwai
Quoted 9 lines · On Fri, 25 Nov 2016 12:36:37 +0100, [email protected] wrote:
From: Andreas Pape <[email protected]>
PCM operation htimestamp is not implemented in plugin file. Calling
snd_pcm_htimestamp()on a plugin file crashes. This scenario is considered now.Signed-off-by Andreas Pape <[email protected]>Signed-off-by Joshua Frkuska <[email protected]>Applied, thanks.
Takashi
Quoted 2 lines
---
Quoted 10 lines
src/pcm/pcm_file.c line 704
Quoted 10 lines
src/pcm/pcm_file.c +1
-0@@ -698,6 +698,7 @@ .readi = snd_pcm_file_readi, .readn = snd_pcm_file_readn, .avail_update = snd_pcm_generic_avail_update, + .htimestamp = snd_pcm_generic_htimestamp, .mmap_commit = snd_pcm_file_mmap_commit, .poll_descriptors_count = snd_pcm_generic_poll_descriptors_count, .poll_descriptors = snd_pcm_generic_poll_descriptors,I oppose this application, because designated initialization is already applied to the .htimestamp member.
...
.poll_descriptors =snd_pcm_generic_poll_descriptors, .poll_revents =snd_pcm_generic_poll_revents, .htimestamp =snd_pcm_generic_htimestamp,
};Please see below commit:
pcm:file: add the missing htimestamp callback
http://git.alsa-project.org/?p=alsa-lib.git;a=commit;h=68ae0c72a53704d416fe77d4c612d1f88d791e02
Quoted 8 lines
This mistake causes below warning with -Woverride-init option. pcm_file.c:714:16: warning: initialized field overwritten [-Woverride-init]
.htimestamp =snd_pcm_generic_real_htimestamp,^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~I guess mentor/ADIT developers works for former snapshot, then missed to rebase to current mainline of alsa-lib. I suggest them to di re-evaluation with current mainline without this patch.
I overlooked it, too. Now the commit got reverted.
Thanks!
Takashi
Quoted 19 lines · Takashi Iwai
On Tue, 29 Nov 2016 16:15:57 +0100,
Quoted 18 lines
Quoted 10 lines
src/pcm/pcm_file.c line 704
Quoted 10 lines
src/pcm/pcm_file.c +1
-0@@ -698,6 +698,7 @@ .readi = snd_pcm_file_readi, .readn = snd_pcm_file_readn, .avail_update = snd_pcm_generic_avail_update, + .htimestamp = snd_pcm_generic_htimestamp, .mmap_commit = snd_pcm_file_mmap_commit, .poll_descriptors_count = snd_pcm_generic_poll_descriptors_count, .poll_descriptors = snd_pcm_generic_poll_descriptors,I oppose this application, because designated initialization is already applied to the .htimestamp member.
...
.poll_descriptors =snd_pcm_generic_poll_descriptors, .poll_revents =snd_pcm_generic_poll_revents, .htimestamp =snd_pcm_generic_htimestamp,
Oops, 'snd_pcm_generic_real_htimestamp' is proper here...
Quoted 11 lines
Quoted 11 lines
};
Please see below commit:
pcm:file: add the missing htimestamp callback
http://git.alsa-project.org/?p=alsa-lib.git;a=commit;h=68ae0c72a53704d416fe77d4c612d1f88d791e02This mistake causes below warning with -Woverride-init option. pcm_file.c:714:16: warning: initialized field overwritten [-Woverride-init]
.htimestamp =snd_pcm_generic_real_htimestamp,^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Quoted 5 lines
Quoted 3 lines
I guess mentor/ADIT developers works for former snapshot, then missed to rebase to current mainline of alsa-lib. I suggest them to di re-evaluation with current mainline without this patch.
I overlooked it, too. Now the commit got reverted.
Thanks.
Takashi Sakamoto
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Hi,
I did rebase my repo before applying this patch. It applied without any conflicts.
commit 0d1d25f166a0294bf596dd2e6f55579e5e04186e
Author: Andreas Pape <[email protected]> Date: Wed Nov 30 12:06:14 2016 +0530
alsa-lib: Add htimestamp operation in plugin file
PCM operation htimestamp is not implemented in plugin file. Calling snd_pcm_htimestamp() on a plugin file crashes. This scenario is considered now.
M src/pcm/pcm_file.c
commit 2ef7a53c31de47f5f33127a89054a661a31bd310
Author: Mengdong Lin <[email protected]> Date: Fri Nov 25 13:20:02 2016 +0800
topology: Update physical link configurations in Broadwell text conf file
To make this conf file a better example, add configurations for the physical link "Codec", same as that defined by Intel Broadwell upstream machine driver.
M src/conf/topology/broadwell/broadwell.conf
It appears as, source changes are at different locations, it didn’t report any conflicts. Sorry for not observing this source changes, before applying the patch and pushing it to mailing list. And Thanks for pointing it to included fix commit.
Regards,
Mounesh
-----Original Message-----
From: Takashi Sakamoto [mailto:[email protected]]
Sent: 29 November 2016 21:04
To: Takashi Iwai <[email protected]>
Cc: [email protected]; [email protected]; Frkuska, Joshua <[email protected]>; Andreas Pape <[email protected]>; Sutar, Mounesh <[email protected]>
Subject: Re: [PATCH] alsa-lib: Add htimestamp operation in plugin file
Quoted 19 lines · Takashi Iwai
On Tue, 29 Nov 2016 16:15:57 +0100,
Quoted 18 lines
Quoted 10 lines
src/pcm/pcm_file.c line 704
Quoted 10 lines
src/pcm/pcm_file.c +1
-0@@ -698,6 +698,7 @@ .readi = snd_pcm_file_readi, .readn = snd_pcm_file_readn, .avail_update = snd_pcm_generic_avail_update, + .htimestamp = snd_pcm_generic_htimestamp, .mmap_commit = snd_pcm_file_mmap_commit, .poll_descriptors_count = snd_pcm_generic_poll_descriptors_count, .poll_descriptors = snd_pcm_generic_poll_descriptors,I oppose this application, because designated initialization is already applied to the .htimestamp member.
...
.poll_descriptors =snd_pcm_generic_poll_descriptors, .poll_revents =snd_pcm_generic_poll_revents, .htimestamp =snd_pcm_generic_htimestamp,
Oops, 'snd_pcm_generic_real_htimestamp' is proper here...
Quoted 12 lines
Quoted 12 lines
};
Please see below commit:
pcm:file: add the missing htimestamp callback
http://git.alsa-project.org/?p=alsa-lib.git;a=commit;h=68ae0c72a53704d416fe77d4c612d1f88d791e02This mistake causes below warning with -Woverride-init option. pcm_file.c:714:16: warning: initialized field overwritten [-Woverride-init]
.htimestamp =snd_pcm_generic_real_htimestamp,^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Quoted 5 lines
Quoted 3 lines
I guess mentor/ADIT developers works for former snapshot, then missed to rebase to current mainline of alsa-lib. I suggest them to di re-evaluation with current mainline without this patch.
I overlooked it, too. Now the commit got reverted.
Thanks.
Takashi Sakamoto
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Hi,
We had to re-look onto this change again for possible consideration.
The existing solution htimestamp (snd_pcm_generic_real_htimestamp) ALWAYS reads the current time, while snd_pcm_generic_htimestamp reads correct timestamp from slave including evaluation of TSTAMP_MODE.
From documentation of /src/pcm/pcm.c, we can see:
"""" \par Timestamp mode
The timestamp mode specifies, if timestamps are activated. Currently, only #SND_PCM_TSTAMP_NONE and #SND_PCM_TSTAMP_MMAP modes are known. The mmap mode means that timestamp is taken on every period time boundary. Corresponding position in the ring buffer assigned to timestamp can be obtained using #snd_pcm_htimestamp() function. """"
As snd_pcm_generic_htimestamp() internally calls snd_pcm_htimestamp() to read time, so accurate timestamp can be read from snd_pcm_generic_htimestamp().
Also, in case of pcm_file, if the underlying slave is hardware, then we would wish to read elapsed hardware time, as it will be the most accurate, as opposed to the elapsed wall time.
This will provide pcm_file with the most accurate timestamps.
Let us know, your opinion on this to re-consider this change.
Regards,
Mounesh
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Sutar, Mounesh
Sent: 30 November 2016 12:57
To: Takashi Sakamoto <[email protected]>; Takashi Iwai <[email protected]>
Cc: [email protected]; [email protected]; Andreas Pape <[email protected]>; Frkuska, Joshua <[email protected]>
Subject: Re: [alsa-devel] [PATCH] alsa-lib: Add htimestamp operation in plugin file
Hi,
I did rebase my repo before applying this patch. It applied without any conflicts.
commit 0d1d25f166a0294bf596dd2e6f55579e5e04186e
Author: Andreas Pape <[email protected]> Date: Wed Nov 30 12:06:14 2016 +0530
alsa-lib: Add htimestamp operation in plugin file
PCM operation htimestamp is not implemented in plugin file. Calling snd_pcm_htimestamp() on a plugin file crashes. This scenario is considered now.
M src/pcm/pcm_file.c
commit 2ef7a53c31de47f5f33127a89054a661a31bd310
Author: Mengdong Lin <[email protected]> Date: Fri Nov 25 13:20:02 2016 +0800
topology: Update physical link configurations in Broadwell text conf file
To make this conf file a better example, add configurations for the physical link "Codec", same as that defined by Intel Broadwell upstream machine driver.
M src/conf/topology/broadwell/broadwell.conf
It appears as, source changes are at different locations, it didn’t report any conflicts. Sorry for not observing this source changes, before applying the patch and pushing it to mailing list. And Thanks for pointing it to included fix commit.
Regards,
Mounesh
-----Original Message-----
From: Takashi Sakamoto [mailto:[email protected]]
Sent: 29 November 2016 21:04
To: Takashi Iwai <[email protected]>
Cc: [email protected]; [email protected]; Frkuska, Joshua <[email protected]>; Andreas Pape <[email protected]>; Sutar, Mounesh <[email protected]>
Subject: Re: [PATCH] alsa-lib: Add htimestamp operation in plugin file
Quoted 19 lines · Takashi Iwai
On Tue, 29 Nov 2016 16:15:57 +0100,
Quoted 18 lines
Quoted 10 lines
src/pcm/pcm_file.c line 704
Quoted 10 lines
src/pcm/pcm_file.c +1
-0@@ -698,6 +698,7 @@ .readi = snd_pcm_file_readi, .readn = snd_pcm_file_readn, .avail_update = snd_pcm_generic_avail_update, + .htimestamp = snd_pcm_generic_htimestamp, .mmap_commit = snd_pcm_file_mmap_commit, .poll_descriptors_count = snd_pcm_generic_poll_descriptors_count, .poll_descriptors = snd_pcm_generic_poll_descriptors,I oppose this application, because designated initialization is already applied to the .htimestamp member.
...
.poll_descriptors =snd_pcm_generic_poll_descriptors, .poll_revents =snd_pcm_generic_poll_revents, .htimestamp =snd_pcm_generic_htimestamp,
Oops, 'snd_pcm_generic_real_htimestamp' is proper here...
Quoted 12 lines
Quoted 12 lines
};
Please see below commit:
pcm:file: add the missing htimestamp callback
http://git.alsa-project.org/?p=alsa-lib.git;a=commit;h=68ae0c72a53704d416fe77d4c612d1f88d791e02This mistake causes below warning with -Woverride-init option. pcm_file.c:714:16: warning: initialized field overwritten [-Woverride-init]
.htimestamp =snd_pcm_generic_real_htimestamp,^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Quoted 5 lines
Quoted 3 lines
I guess mentor/ADIT developers works for former snapshot, then missed to rebase to current mainline of alsa-lib. I suggest them to di re-evaluation with current mainline without this patch.
I overlooked it, too. Now the commit got reverted.
Thanks.
Takashi Sakamoto
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
ping
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Sutar, Mounesh
Sent: 03 February 2017 16:28
To: Takashi Sakamoto <[email protected]>; Takashi Iwai <[email protected]>
Cc: [email protected]; [email protected]; Andreas Pape <[email protected]>; Frkuska, Joshua <[email protected]>
Subject: Re: [alsa-devel] [PATCH] alsa-lib: Add htimestamp operation in plugin file
Hi,
We had to re-look onto this change again for possible consideration.
The existing solution htimestamp (snd_pcm_generic_real_htimestamp) ALWAYS reads the current time, while snd_pcm_generic_htimestamp reads correct timestamp from slave including evaluation of TSTAMP_MODE.
From documentation of /src/pcm/pcm.c, we can see:
"""" \par Timestamp mode
The timestamp mode specifies, if timestamps are activated. Currently, only #SND_PCM_TSTAMP_NONE and #SND_PCM_TSTAMP_MMAP modes are known.
The mmap mode means that timestamp is taken on every period time boundary. Corresponding position in the ring buffer assigned to timestamp can be obtained using #snd_pcm_htimestamp() function. """"
As snd_pcm_generic_htimestamp() internally calls snd_pcm_htimestamp() to read time, so accurate timestamp can be read from snd_pcm_generic_htimestamp().
Also, in case of pcm_file, if the underlying slave is hardware, then we would wish to read elapsed hardware time, as it will be the most accurate, as opposed to the elapsed wall time. This will provide pcm_file with the most accurate timestamps.
Let us know, your opinion on this to re-consider this change.
Regards,
Mounesh
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Sutar, Mounesh
Sent: 30 November 2016 12:57
To: Takashi Sakamoto <[email protected]>; Takashi Iwai <[email protected]>
Cc: [email protected]; [email protected]; Andreas Pape <[email protected]>; Frkuska, Joshua <[email protected]>
Subject: Re: [alsa-devel] [PATCH] alsa-lib: Add htimestamp operation in plugin file
Hi,
I did rebase my repo before applying this patch. It applied without any conflicts.
commit 0d1d25f166a0294bf596dd2e6f55579e5e04186e
Author: Andreas Pape <[email protected]> Date: Wed Nov 30 12:06:14 2016 +0530
alsa-lib: Add htimestamp operation in plugin file
PCM operation htimestamp is not implemented in plugin file. Calling snd_pcm_htimestamp() on a plugin file crashes. This scenario is considered now.
M src/pcm/pcm_file.c
commit 2ef7a53c31de47f5f33127a89054a661a31bd310
Author: Mengdong Lin <[email protected]> Date: Fri Nov 25 13:20:02 2016 +0800
topology: Update physical link configurations in Broadwell text conf file
To make this conf file a better example, add configurations for the physical link "Codec", same as that defined by Intel Broadwell upstream machine driver.
M src/conf/topology/broadwell/broadwell.conf
It appears as, source changes are at different locations, it didn’t report any conflicts. Sorry for not observing this source changes, before applying the patch and pushing it to mailing list. And Thanks for pointing it to included fix commit.
Regards,
Mounesh
-----Original Message-----
From: Takashi Sakamoto [mailto:[email protected]]
Sent: 29 November 2016 21:04
To: Takashi Iwai <[email protected]>
Cc: [email protected]; [email protected]; Frkuska, Joshua <[email protected]>; Andreas Pape <[email protected]>; Sutar, Mounesh <[email protected]>
Subject: Re: [PATCH] alsa-lib: Add htimestamp operation in plugin file
Quoted 19 lines · Takashi Iwai
On Tue, 29 Nov 2016 16:15:57 +0100,
Quoted 18 lines
Quoted 10 lines
src/pcm/pcm_file.c line 704
Quoted 10 lines
src/pcm/pcm_file.c +1
-0@@ -698,6 +698,7 @@ .readi = snd_pcm_file_readi, .readn = snd_pcm_file_readn, .avail_update = snd_pcm_generic_avail_update, + .htimestamp = snd_pcm_generic_htimestamp, .mmap_commit = snd_pcm_file_mmap_commit, .poll_descriptors_count = snd_pcm_generic_poll_descriptors_count, .poll_descriptors = snd_pcm_generic_poll_descriptors,I oppose this application, because designated initialization is already applied to the .htimestamp member.
...
.poll_descriptors =snd_pcm_generic_poll_descriptors, .poll_revents =snd_pcm_generic_poll_revents, .htimestamp =snd_pcm_generic_htimestamp,
Oops, 'snd_pcm_generic_real_htimestamp' is proper here...
Quoted 12 lines
Quoted 12 lines
};
Please see below commit:
pcm:file: add the missing htimestamp callback
http://git.alsa-project.org/?p=alsa-lib.git;a=commit;h=68ae0c72a53704d416fe77d4c612d1f88d791e02This mistake causes below warning with -Woverride-init option. pcm_file.c:714:16: warning: initialized field overwritten [-Woverride-init]
.htimestamp =snd_pcm_generic_real_htimestamp,^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Quoted 5 lines
Quoted 3 lines
I guess mentor/ADIT developers works for former snapshot, then missed to rebase to current mainline of alsa-lib. I suggest them to di re-evaluation with current mainline without this patch.
I overlooked it, too. Now the commit got reverted.
Thanks.
Takashi Sakamoto
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Quoted 2 lines · Mounesh
ping
Better to check with the actual patch and experiment with various configurations. The result speaks clearer than words :)
Takashi
Quoted 131 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Sutar, Mounesh
Sent: 03 February 2017 16:28
To: Takashi Sakamoto <[email protected]>; Takashi Iwai <[email protected]>
Cc: [email protected]; [email protected]; Andreas Pape <[email protected]>; Frkuska, Joshua <[email protected]>
Subject: Re: [alsa-devel] [PATCH] alsa-lib: Add htimestamp operation in plugin fileHi,
We had to re-look onto this change again for possible consideration.
The existing solution htimestamp (
snd_pcm_generic_real_htimestamp) ALWAYS reads the current time, whilesnd_pcm_generic_htimestampreads correct timestamp from slave including evaluation ofTSTAMP_MODE.From documentation of /src/pcm/pcm.c, we can see:
"""" \par Timestamp modeThe timestamp mode specifies, if timestamps are activated. Currently, only #SND_PCM_TSTAMP_NONE and #SND_PCM_TSTAMP_MMAP modes are known.
The mmap mode means that timestamp is taken on every period time boundary. Corresponding position in the ring buffer assigned to timestamp can be obtained using #snd_pcm_htimestamp() function. """"As
snd_pcm_generic_htimestamp()internally callssnd_pcm_htimestamp()to read time, so accurate timestamp can be read fromsnd_pcm_generic_htimestamp().Also, in case of
pcm_file, if the underlying slave is hardware, then we would wish to read elapsed hardware time, as it will be the most accurate, as opposed to the elapsed wall time. This will providepcm_filewith the most accurate timestamps.Let us know, your opinion on this to re-consider this change.
Regards,
Mounesh-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Sutar, Mounesh
Sent: 30 November 2016 12:57
To: Takashi Sakamoto <[email protected]>; Takashi Iwai <[email protected]>
Cc: [email protected]; [email protected]; Andreas Pape <[email protected]>; Frkuska, Joshua <[email protected]>
Subject: Re: [alsa-devel] [PATCH] alsa-lib: Add htimestamp operation in plugin fileHi,
I did rebase my repo before applying this patch. It applied without any conflicts.commit
0d1d25f166a0294bf596dd2e6f55579e5e04186eAuthor: Andreas Pape <[email protected]> Date: Wed Nov 30 12:06:14 2016 +0530alsa-lib: Add htimestamp operation in plugin file
PCM operation htimestamp is not implemented in plugin file. Calling
snd_pcm_htimestamp()on a plugin file crashes. This scenario is considered now.Signed-off-by Andreas Pape <[email protected]>Signed-off-by Joshua Frkuska <[email protected]>M
src/pcm/pcm_file.ccommit
2ef7a53c31de47f5f33127a89054a661a31bd310Author: Mengdong Lin <[email protected]> Date: Fri Nov 25 13:20:02 2016 +0800topology: Update physical link configurations in Broadwell text conf file
To make this conf file a better example, add configurations for the physical link "Codec", same as that defined by Intel Broadwell upstream machine driver.
Signed-off-by Mengdong Lin <[email protected]>Signed-off-by Takashi Iwai <[email protected]>M
src/conf/topology/broadwell/broadwell.confIt appears as, source changes are at different locations, it didn’t report any conflicts. Sorry for not observing this source changes, before applying the patch and pushing it to mailing list. And Thanks for pointing it to included fix commit.
Regards,
Mounesh-----Original Message-----
From: Takashi Sakamoto [mailto:[email protected]]
Sent: 29 November 2016 21:04
To: Takashi Iwai <[email protected]>
Cc: [email protected]; [email protected]; Frkuska, Joshua <[email protected]>; Andreas Pape <[email protected]>; Sutar, Mounesh <[email protected]>
Subject: Re: [PATCH] alsa-lib: Add htimestamp operation in plugin fileQuoted 19 lines · Takashi Iwai
On Tue, 29 Nov 2016 16:15:57 +0100,
Quoted 18 lines
Quoted 10 lines
src/pcm/pcm_file.c line 704
Quoted 10 lines
src/pcm/pcm_file.c +1
-0@@ -698,6 +698,7 @@ .readi = snd_pcm_file_readi, .readn = snd_pcm_file_readn, .avail_update = snd_pcm_generic_avail_update, + .htimestamp = snd_pcm_generic_htimestamp, .mmap_commit = snd_pcm_file_mmap_commit, .poll_descriptors_count = snd_pcm_generic_poll_descriptors_count, .poll_descriptors = snd_pcm_generic_poll_descriptors,I oppose this application, because designated initialization is already applied to the .htimestamp member.
...
.poll_descriptors =snd_pcm_generic_poll_descriptors, .poll_revents =snd_pcm_generic_poll_revents, .htimestamp =snd_pcm_generic_htimestamp,Oops, '
snd_pcm_generic_real_htimestamp' is proper here...Quoted 12 lines
Quoted 12 lines
};
Please see below commit:
pcm:file: add the missing htimestamp callback
http://git.alsa-project.org/?p=alsa-lib.git;a=commit;h=68ae0c72a53704d416fe77d4c612d1f88d791e02This mistake causes below warning with -Woverride-init option. pcm_file.c:714:16: warning: initialized field overwritten [-Woverride-init]
.htimestamp =snd_pcm_generic_real_htimestamp,^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Quoted 5 lines
Quoted 3 lines
I guess mentor/ADIT developers works for former snapshot, then missed to rebase to current mainline of alsa-lib. I suggest them to di re-evaluation with current mainline without this patch.
I overlooked it, too. Now the commit got reverted.
Thanks.
Quoted 9 lines
Takashi Sakamoto
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel